• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: creating a controller class
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >creating a controller class (From: Jeremy Rotsztain <email@hidden>)
 >Re: creating a controller class (From: "I. Savant" <email@hidden>)
 >Re: creating a controller class (From: Jeremy Rotsztain <email@hidden>)

  • Prev by Date: Re: creating a controller class
  • Next by Date: Re: creating a controller class
  • Previous by thread: Re: creating a controller class
  • Next by thread: Re: creating a controller class
  • Index(es):
    • Date
    • Thread