Re: creating a controller class
Re: creating a controller class
- Subject: Re: creating a controller class
- From: Hal Mueller <email@hidden>
- Date: Tue, 17 Jul 2007 23:54:31 -0700
GUIController.h includes ImageMaker.h includes GUIController.h ...
(fix with @class)
GUIController is defined twice, once in GUIController.h as a subclass
of NSWindowController and once in ImageMaker.h as a subclass of
NSObject. I don't see an interface definition for ImageMaker.
I think you'd do well to take another shot at your role-splitting
(MVC). These two statements in particular make me think that
ImageMaker is not just model, and could not exist without a UI.
At 1:14 AM -0400 7/18/07, Jeremy Rotsztain wrote:
ImageMaker tells GUIController to display the images in the GUI
whenever the composition process is complete using a method called
displayPainting.
i recently added a button to the GUI (and another IBOutlet -
ImageMaker *mainApplication) to communicate to the ImageMaker class
(see the savePainting methods in both classes), prompting the
ImageMaker class to save the current image to disk.
--
Hal Mueller email@hidden
My Treo beat up your iPhone.
_______________________________________________
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