• 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: Binding TableColumn Programatically
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Binding TableColumn Programatically


  • Subject: Re: Binding TableColumn Programatically
  • From: Marco Masser <email@hidden>
  • Date: Tue, 22 Jul 2008 19:26:26 +0200

but in the above added tableColumn data is not populated and an opening brace is shown in each row of that column.

To me, this sounds like some data is being read and displayed in the table, but it's not quite what you want. If you do an NSLog(@"%@", someArray), the -description method will be called on someArray. NSArray displays an opening bracket, a description of every single object, and then a closing bracket. NSDictionary does something similar. Are you sure the "title" property is an NSString or NSNumber?


Try something like this in your code and see what you really got in there:

id obj = [[arrayController arrangedObjects] objectAtIndex:0];
NSLog(@"object: %@ class: %@", obj, NSStringFromClass([obj class]));

Look whether obj is the thing you want to display in every row, and whether it really does have a -title property of type NSString or NSNumber.
_______________________________________________


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


References: 
 >Binding TableColumn Programatically (From: kiran Sanka <email@hidden>)

  • Prev by Date: name and email address parsing
  • Next by Date: Re: name and email address parsing
  • Previous by thread: Binding TableColumn Programatically
  • Next by thread: Re: Binding TableColumn Programatically
  • Index(es):
    • Date
    • Thread