Re: Dynamically update drawRect
Re: Dynamically update drawRect
- Subject: Re: Dynamically update drawRect
- From: proger proger <email@hidden>
- Date: Sun, 27 Dec 2009 11:51:57 +0200
So now i don't see how to solve this problem. I thought it's not very hard
problem - get data and paint it. Maybe i need to use other tools ? I think
with libSDL framework it's very simple to solve such thing. I'm wanted to
learn more about CG but seems even simple problem is too hard for me.
Maybe i need to MyView constructor add my program logic and invoke '[self
setNeedsDisplayInRect: suppliedRect]' ?
On Sun, Dec 27, 2009 at 11:37 AM, Andrew Farmer <email@hidden> wrote:
> 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