Re: Binding questions
Re: Binding questions
- Subject: Re: Binding questions
- From: Tim Lucas <email@hidden>
- Date: Thu, 11 Nov 2004 13:33:17 +1100
On 11/11/2004, at 9:31 AM, mmalcolm crawford wrote:
Umm, actually you can bind the value of a single check box to
[Controller].arrangedObjects.<checkAttribute> and when you click it it
will do the Right Thing.
Great! I didn't know you could do this.
Attach it to an action that loops through your array of objects and
sets the checked state on each.
You can do this in one line with KVC:
[theArray setValue:aNumber forKey:@"<checkAttribute>"];
Again, great stuff! Wasn't aware KVC calls acted upon an entire
collections of objects.
I'm guessing this functionality is provided in NSArray (and
NSMutableArray) in their setValue methods?
-- tim lucas
http://www.toolmantim.com
_______________________________________________
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