Objective-C: drawing a custom class to a custom view

Member
Posts: 34
Joined: 2004.07
Post: #1
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
Quote this message in a reply
Member
Posts: 34
Joined: 2004.07
Post: #2
Never mind i got it to work with the help of crackbunny Smile

ss2cire
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Drawing into a custom view from another object? hypnotx 10 4,080 Jun 15, 2007 05:36 PM
Last Post: hypnotx
  Custom Primatives... faster? KiroNeem 26 7,065 Jan 8, 2006 12:52 PM
Last Post: akb825
  Trouble With Class in Custom Framework Nick 8 3,466 Nov 26, 2005 01:11 PM
Last Post: Nick
  A Custom Window for a Game Jordan 2 3,257 Nov 9, 2005 11:31 AM
Last Post: Jordan
  How to write a custom memory manager Malarkey 3 3,550 Oct 27, 2005 09:52 AM
Last Post: aqua_scummm