• 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
Bindings&Actions on Document-based Applications
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Bindings&Actions on Document-based Applications
      • From: Michael Clark <email@hidden>
    • Re: Bindings&Actions on Document-based Applications
      • From: mmalcolm crawford <email@hidden>
  • Prev by Date: Re: NSImageView and CoreData entity creation
  • Next by Date: Re: Bindings&Actions on Document-based Applications
  • Previous by thread: Re: How to customize NSDocument's error message 'The document ... could not be opened'
  • Next by thread: Re: Bindings&Actions on Document-based Applications
  • Index(es):
    • Date
    • Thread