• 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
Enabled Binding bound to NSArrayController won't disable view.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Enabled Binding bound to NSArrayController won't disable view.


  • Subject: Enabled Binding bound to NSArrayController won't disable view.
  • From: Ben Lachman <email@hidden>
  • Date: Sun, 17 Feb 2008 03:10:28 -0500

I have a tableview who's enabled binding is bound to a NSArrayController (not the one that feeds it via its content binding). I'd like to be enabled when something is selected and disabled when it is not. So far I've been unable to find a suitable key to bind to on the array controller. It seems like you should just be able to bind to selection with the NSIsNotNil value transformer and set the correct placeholder options, but apparently this doesn't work. I've tried various combinations of selection and selectedObject with and without the NSIsNotNil value transformer, but they don't change the view's state at all and most of the combinations kick back nasty bindings error. I should also note that the array controller that feeds the data to this tableview is itself fed from coredata.

Anyone gotten something like this to work?

->Ben

--
Ben Lachman
Acacia Tree Software

http://acaciatreesoftware.com

email@hidden


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Enabled Binding bound to NSArrayController won't disable view.
      • From: Jeff Johnson <email@hidden>
  • Prev by Date: Re: NSTextTab at the rightmost edge of view
  • Next by Date: NSPopupButton & lazy menu construction ->crashing
  • Previous by thread: Re: Binding to NSTextView, works on 10.5 but not 10.4
  • Next by thread: Re: Enabled Binding bound to NSArrayController won't disable view.
  • Index(es):
    • Date
    • Thread