• 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
Actions and MVC
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Actions and MVC


  • Subject: Actions and MVC
  • From: Björn Carlström <email@hidden>
  • Date: Thu, 27 May 2004 17:26:02 +0200

I'm just beginning to realize the beauty of the MVC design, but I can't figure out the right way to have my controller objects taking care of action messages.
Do you make your controllers inherit from NSResponder and insert them into the responder chain. Or is there a way to have your views pass on any actions messages to its delegate?

For instance. I have an NSOutlineView. I want to be able to delete a row in it.
I would like my controller (delegate/dataSource) to receive the delete message somehow. And preferably validate the menu item as well.

How would you set this up?

Bjvrn Carlstrvm
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Prev by Date: Re: Flattening Mac resource files?
  • Next by Date: Re: Flattening Mac resource files?
  • Previous by thread: Re: Applet HighLevel Events and NSApplications
  • Next by thread: Re: Retaining NSInputStream working with NSStream
  • Index(es):
    • Date
    • Thread