• 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
Inspects, Bindings over keyPaths and the Not Applicable placeholder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Inspects, Bindings over keyPaths and the Not Applicable placeholder


  • Subject: Inspects, Bindings over keyPaths and the Not Applicable placeholder
  • From: Jim Correia <email@hidden>
  • Date: Wed, 20 Jul 2005 20:24:31 -0400

I have a window, controlled by a subclass of NSWindowController. The window has a property called inspectorValue.

In an inspector panel, I have an edit field bound to NSApplication- >mainWindow.windowController.inspectorValue.

As I switch among windows which have both a windowController and an inspectorValue property, everything behaves correctly.

If I switch to a window that has a windowController, but doesn't have an inspectorValue property, the UI disables (because I've checked "Conditionally Sets Enabled" and unchecked "Raises For Not Applicable Keys") and the edit field fills in with the not applicable placeholder.

However, if I switch to a window without a window controller, the field doesn't disable, nor does it get its not applicable placeholder.

Is it possible to do what I am doing with bindings (bind across a keyPath where part of the path may not be an applicable key sometimes) *and* get the UI to disable/enable dynamically as appropriate?

Or am I going to have to write some code to make this work? :-)

Thanks,
Jim
_______________________________________________
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


  • Prev by Date: NSScrollView setDocumentView: problem with NSView subclass
  • Next by Date: Re: NSScrollView setDocumentView: problem with NSView subclass
  • Previous by thread: Re: NSScrollView setDocumentView: problem with NSView subclass
  • Next by thread: NSOutlineView and outlineViewSelectionIsChanging
  • Index(es):
    • Date
    • Thread