FROM : Pierre Molinaro
DATE : Thu Feb 07 19:12:15 2008
I think you can bind to canRemove controller key, leaving model key
path empty.
Bind to: ArrayController
Controller Key: canRemove
Model Key Path: (empty)
Pierre
Le 7 févr. 08 à 08:43, Steve Cronin a écrit :
> 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_removed>)
>
> 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:
> http://lists.apple.com/mailman/options/cocoa-dev/<email_removed>
>
> This email sent to <email_removed>
>
DATE : Thu Feb 07 19:12:15 2008
I think you can bind to canRemove controller key, leaving model key
path empty.
Bind to: ArrayController
Controller Key: canRemove
Model Key Path: (empty)
Pierre
Le 7 févr. 08 à 08:43, Steve Cronin a écrit :
> 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_removed>)
>
> 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:
> http://lists.apple.com/mailman/options/cocoa-dev/<email_removed>
>
> This email sent to <email_removed>
>
| Related mails | Author | Date |
|---|---|---|
| Steve Cronin | Feb 7, 08:43 | |
| Mike Abdullah | Feb 7, 12:41 | |
| Pierre Molinaro | Feb 7, 19:12 |






Cocoa mail archive

