Re: wasting space?
Re: wasting space?
- Subject: Re: wasting space?
- From: Erik Buck <email@hidden>
- Date: Mon, 6 Oct 2008 13:56:39 -0700 (PDT)
--- On Mon, 10/6/08, I. Savant <email@hidden> wrote:
What of the "Graphics Bindings" example mmalc has on his examples
page? Here:
http://homepage.mac.com/mmalc/CocoaExamples/controllers.html
I am not sure what Mmalc was attempting in his example. I looked at it again just now.It seems to me to be a very old example. He uses the deprecated method + (void)setKeys:(NSArray *)keys triggerChangeNotificationsForDependentKey:(NSString *)dependentKey.I think that NSArrayController can do everything his GraphicsArrayController is doing without requiring any application specific code.I think Mmacl's implementation of GraphicsView is sub-optimal unless I am just not understanding what he was trying to do.Chapter 29, Controllers, in the forthcoming "Cocoa Design Patterns" book coincidentally implements a simple drawing program. I wish I had thought to review Mmalc's example while I was writing.Chapter 29 takes the reader on a journey to discover why NSArrayController and other NSController classes exist. The chapter starts with a simple problem, solves it, and the evolves the solution to be general and reusable.
_______________________________________________
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