• 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: NSController, currentDocument
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSController, currentDocument


  • Subject: Re: NSController, currentDocument
  • From: Marco Binder <email@hidden>
  • Date: Sun, 9 Nov 2003 19:00:39 +0100

OK, sorry, i m answering my own post again.

The solution to the problem described below: in mainMenu.nib (or whatever you call it), add another NSArrayController to which you will bind you inspector table view. it has been ask before on this list, what controllers got bindings for. well, this now comes into play: set the contentArray binding of your new NSArrayController to NSApplications mainWindow.document.arrayController.selectedObjects! Now, this app-wide controler will automatically be populated with the objects you have selected in your documents table view. Cool, isnt it?!

Marco


Am 09.11.2003 um 18:24 schrieb Marco Binder:

Scott, would something like this work: bind the palette Ui items to the shared app with a keypath of mainWindow.document.arrayController.selection.desiredProperty?

Yes, this is an easy way to do inspectors...

Still, if I have an NSArrayController in my document, managing an NSTableView, I can not figure out, how to display the same array of objects / only the selected objects in an app-wide inspector. I set the columns4bindings in the inspector4s tableview to something like mainWindow.document.myArrayController.selection.propertyName and it just wont work. I ve tried many ways, just havent found the right one. Have you done anything like this? Any pointer appreciated!

Marco
_______________________________________________
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.
_______________________________________________
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.

References: 
 >NSController, currentDocument (From: Raphael Sebbe <email@hidden>)
 >Re: NSController, currentDocument (From: Scott Anguish <email@hidden>)
 >Re: NSController, currentDocument (From: Marco Binder <email@hidden>)
 >Re: NSController, currentDocument (From: mmalcolm crawford <email@hidden>)
 >Re: NSController, currentDocument (From: Marco Binder <email@hidden>)

  • Prev by Date: Re: Getting started with XML and XMLParser
  • Next by Date: NSValue, Drag & Drop
  • Previous by thread: Re: NSController, currentDocument
  • Next by thread: Re: NSController, currentDocument
  • Index(es):
    • Date
    • Thread