Re: Dynamically update drawRect
Re: Dynamically update drawRect
- Subject: Re: Dynamically update drawRect
- From: Andrew Farmer <email@hidden>
- Date: Sun, 27 Dec 2009 01:37:15 -0800
On 27 Dec 2009, at 01:18, proger proger wrote:
> I'm still don't know how to do it. As solution i see programmically create
> MyView class and call drawRect function as i needed.
There is rarely any good reason to call drawRect yourself. It should only be called by the AppKit drawing internals.
> Because now MyView(NSView) is created by nib. And i can't call MyView class instance methods.
Why not? This is the basis of most (non-KVO) view programming._______________________________________________
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