• 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: Bindings / NSTableView (limitation ?)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Bindings / NSTableView (limitation ?)
      • From: "Daniel Angermeier" <email@hidden>
References: 
 >Bindings / NSTableView (limitation ?) (From: "Daniel Angermeier" <email@hidden>)
 >Re: Bindings / NSTableView (limitation ?) (From: "I. Savant" <email@hidden>)
 >Re: Bindings / NSTableView (limitation ?) (From: "Daniel Angermeier" <email@hidden>)

  • Prev by Date: Re: didFinishPlaying NSSound
  • Next by Date: Re: Error and Exception Handling: When to use
  • Previous by thread: Re: Bindings / NSTableView (limitation ?)
  • Next by thread: Re: Bindings / NSTableView (limitation ?)
  • Index(es):
    • Date
    • Thread