• 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: Master-Detail interfaces, Multiple Documents, and floating windows
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Master-Detail interfaces, Multiple Documents, and floating windows


  • Subject: Re: Master-Detail interfaces, Multiple Documents, and floating windows
  • From: George Orthwein <email@hidden>
  • Date: Sat, 9 Sep 2006 23:50:10 -0400

Not sure exactly why what you have isn't working but typically inspectors bind via Shared App -> mainWindow.windowController.document.xxx.

e.g:
Bind To: Shared Application
Controller Key:
Model Key Path: mainWindow.windowController.document.transformationController.selectionI ndexes


This is mentioned once in the docs but not in an obvious place. Bottom of:
http://developer.apple.com/documentation/Cocoa/Conceptual/ CocoaBindings/Concepts/CntrlSelection.html



On Sep 8, 2006, at 6:17 PM, Ron Aldrich wrote:
In both cases, the Controller Key field is disabled within Interface Builder.

I think that field is only used when binding to an NSObjectController or its subclasses. It's really just a convenience and when you "close" the binding you see a larger key path is formed anyway, e.g. "selection.xxx.xxx". It just shows the valid keys for a controller and thus requires that you use one of them as the first part of the key path. That's my read of it anyway.



Hope that works for you! George

_______________________________________________
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: Master-Detail interfaces, Multiple Documents, and floating windows
      • From: Ron Aldrich <email@hidden>
References: 
 >Master-Detail interfaces, Multiple Documents, and floating windows (From: Ron Aldrich <email@hidden>)

  • Prev by Date: QTRecorder Sample Code
  • Next by Date: Re: NSTableView using Square Button for image
  • Previous by thread: Master-Detail interfaces, Multiple Documents, and floating windows
  • Next by thread: Re: Master-Detail interfaces, Multiple Documents, and floating windows
  • Index(es):
    • Date
    • Thread