PDA

View Full Version : Objective-C: drawing a custom class to a custom view


ss2 cire
2004.12.10, 05:52 AM
i have a custom class that i want to have "draw" itself to a custom view
by doing something like this

(in my custom view- drawRect method
[myObject draw];

i've tried using [self lockFocus] (in the view) then calling
[myObject draw]

and putting the object drawing specific code in that
but it doesn't want to work

let me know if you need more info to help me

ss2cire

ss2 cire
2004.12.10, 06:32 AM
Never mind i got it to work with the help of crackbunny :)

ss2cire