• 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: Enabled Binding and Array Controllers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Enabled Binding and Array Controllers


  • Subject: Re: Enabled Binding and Array Controllers
  • From: Mike Abdullah <email@hidden>
  • Date: Thu, 7 Feb 2008 11:41:56 +0000

I believe the keypath you're after would be @count

Mike.

On 7 Feb 2008, at 07:43, Steve Cronin wrote:

Folks;

I would like to set some UI widget's enabled binding to whether or not an array controller has any arrangedObjects.

If the arrayController has no current data then the widgets should not be enabled.
Once the arrayController has some arrangedObjects then these widgets should be enabled.


I can't seem to get the right settings for this in IB.
Do I have to create a method that returns a boolean or is there some syntax for this directly in IB?


Bind to: ArrayController
Controller Key: arrangedObjects
Model Key Path:  ???

Thanks for your help!
Steve
_______________________________________________

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

_______________________________________________

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


References: 
 >Enabled Binding and Array Controllers (From: Steve Cronin <email@hidden>)

  • Prev by Date: Re: Using "convert" from iTunes with ScriptingBridge
  • Next by Date: Re: Using "convert" from iTunes with ScriptingBridge
  • Previous by thread: Enabled Binding and Array Controllers
  • Next by thread: Re: Enabled Binding and Array Controllers
  • Index(es):
    • Date
    • Thread