Re: Using bindings to trigger observer when contents of array change
Re: Using bindings to trigger observer when contents of array change
- Subject: Re: Using bindings to trigger observer when contents of array change
- From: Bill Cheeseman <email@hidden>
- Date: Sat, 25 Jun 2005 10:29:43 -0400
on 2005-06-25 6:08 AM, Bill Cheeseman at email@hidden wrote:
> I want to trigger an observer when an element is added to or removed from an
> array controller.
A friend suggested offlist:
> if you always maintain a selection, you could enable/disable the
> popup on the canRemove: being true on the array controller.
and it worked!
The more obvious suggestion to base enable/disable on the array's
arrangedObjects.@count keypath does not work, and I can't figure out why.
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com
PreFab Software - http://www.prefab.com/scripting.html
The AppleScript Sourcebook - http://www.AppleScriptSourcebook.com
Vermont Recipes - http://www.stepwise.com/Articles/VermontRecipes
_______________________________________________
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