Re: Dynamically update drawRect
Re: Dynamically update drawRect
- Subject: Re: Dynamically update drawRect
- From: Sherm Pendley <email@hidden>
- Date: Sun, 27 Dec 2009 05:07:04 -0500
On Sun, Dec 27, 2009 at 4:51 AM, proger proger <email@hidden> wrote:
> 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]' ?
I suggest reviewing the docs concerning the design patterns used in
Cocoa - you're not going to figure this out by making assumptions
based on how libSDL or some other toolkit works. When in Rome, do as
the Romans do.
<http://developer.apple.com/mac/library/DOCUMENTATION/Cocoa/Conceptual/CocoaFundamentals/CocoaDesignPatterns/CocoaDesignPatterns.html#//apple_ref/doc/uid/TP40002974-CH6-SW1>
sherm--
--
Cocoa programming in Perl:
http://www.camelbones.org
_______________________________________________
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