Re: NSView / NSControl / NSCell drawing question
Re: NSView / NSControl / NSCell drawing question
- Subject: Re: NSView / NSControl / NSCell drawing question
- From: aaron smith <email@hidden>
- Date: Fri, 18 Sep 2009 01:27:23 -0700
nvmind. I got it all figured out. Just by adding the control the a
view, it automatically calls the drawing methods. Thanks.
On Thu, Sep 17, 2009 at 11:04 PM, aaron smith
<email@hidden> wrote:
> Hey All, quick question. I think this is straight forward, but just
> wanted some verification before I move forward too far.
>
> To keep a long story somewhat short - I have a custom view, which I am
> placing a custom control into, and am curious if it's proper to
> specifically be calling the drawRect method of a control from my
> subclassed NSView.
>
> Here are the classes:
>
> http://pastebin.com/m4fb2d114 (a base view)
> http://pastebin.com/m2835d3f6 (subclassed view)
> http://pastebin.com/m6ab006a6 (the control)
> http://pastebin.com/m4ded8d96 (the cell)
>
> Like I said, I'm not very far, but wanted to verify the explicit call
> to the control draw method. Is this the correct way?
>
> Thanks much!
>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden