Actions and MVC
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.