On Sun, Dec 27, 2009 at 4:51 AM, proger proger <pprog...@gmail.com> 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 (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com