Re: bind imageView data to NSArrayController objectAtIndex:
Re: bind imageView data to NSArrayController objectAtIndex:
- Subject: Re: bind imageView data to NSArrayController objectAtIndex:
- From: "Cathy Shive" <email@hidden>
- Date: Tue, 14 Aug 2007 13:31:44 -0400
How about using key value observing instead?
You probably have some 'controller' class that's managing your views,
right? Add that class as an observer to the array controller's
@"arrangedObjects" key path. Then implement
observeValueForKeyPath:ofObject:change:context. In that method you
can update the content of your views to reflect changes in the array
controller's arranged objects.
Not quite bindings, but close.
Cathy
On 8/14/07, mmalc crawford <email@hidden> wrote:
>
> On Aug 14, 2007, at 9:41 AM, ad veloper wrote:
>
> > I have a number of imageView's (10 for arguments sake) in my Nib and
> > would like to bind their data values to my:
> > [[NSArrayControllers arrangedObjects] objectAtIndex:anIndex] for each
> > of the 10 imageView's
> > Is this possible with IB, or must it be done programmatically?
> >
> Neither.
> You cannot bind to the n'th element in an array.
>
> mmalc
>
> _______________________________________________
>
> 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