• 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: bind imageView data to NSArrayController objectAtIndex:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: bind imageView data to NSArrayController objectAtIndex:
      • From: mmalc crawford <email@hidden>
References: 
 >bind imageView data to NSArrayController objectAtIndex: (From: "ad veloper" <email@hidden>)
 >Re: bind imageView data to NSArrayController objectAtIndex: (From: mmalc crawford <email@hidden>)

  • Prev by Date: Re: How to force a control to validate ?
  • Next by Date: Re: bind imageView data to NSArrayController objectAtIndex:
  • Previous by thread: Re: bind imageView data to NSArrayController objectAtIndex:
  • Next by thread: Re: bind imageView data to NSArrayController objectAtIndex:
  • Index(es):
    • Date
    • Thread