Re: Bindings / NSTableView (limitation ?)
Re: Bindings / NSTableView (limitation ?)
- Subject: Re: Bindings / NSTableView (limitation ?)
- From: mmalc Crawford <email@hidden>
- Date: Wed, 27 Jun 2007 11:13:27 -0700
On Jun 27, 2007, at 10:42 AM, Daniel Angermeier wrote:
- (void)tableView:(NSTableView *)aTableView willDisplayCell:(id)aCell
forTableColumn:(NSTableColumn *)aTableColumn row:(int)rowIndex
{
id item= [myArray objectAtIndex:rowIndex];
if([[item objectForKey:@"mark"] boolValue])
No, this is wrong.
An array controller's arrangedObjects may not be in the same order as
your array...
For alternative approaches, please check existing examples -- e.g. To
Dos at <http://homepage.mac.com/mmalc/CocoaExamples/controllers.html>.
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