Bindings&Actions on Document-based Applications
Bindings&Actions on Document-based Applications
- Subject: Bindings&Actions on Document-based Applications
- From: Kris Gybels <email@hidden>
- Date: Sun, 18 Sep 2005 15:49:46 +0200
Hi all,
I have made a basic document-based application with each document
showing a table which is linked using cocoa bindings to an
NSArrayController. Now, I want the "Add new element to table" menu
item to invoke the "add:" action of NSArrayController, on the
controller for the currently active document. I have some trouble
figuring out how to do this since the main menu and the document
window/controllers are specified in two separate nibs. So can anyone
explain to me or point me to the right documentation on how you do
this in IB without writing a single line of code?
It seems like a very, very basic question, so I would be surprised if
itsn't explained somewhere already, but so far, all of the examples
I've seen of Cocoa bindings were not document-based. And the one
example I saw (unfortunately don't remember which) didn't do it
without implementing extra code (by linking the menu item to a main
application controller, which then forwarded the message to the
currently active document).
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden