Re: Binding TableColumn Programatically
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