On Mon, Jun 2, 2008 at 12:08 PM, Christian Isaacs <[EMAIL PROTECTED]> wrote: > 1) How do I get the title value from my Events NSArrayController Object? > I've tried [eventTableView valueForKey:@"Events.arrangedObjects.title"] and > different variations of it.
There are a few problem here. 1) You're asking the wrong object. Why are you sending messages to the table view to get things from the array controller? 2) The name of an object in the NIB is absolutely and totally meaningless. It's just a label for you when you use IB. The only way to access an object inside a NIB is to wire it up to an outlet that you can somehow reach from the code in question. So your attempts to use a keypath to get at the array controller are misguided. 3) You don't understand how NSTableColumns use their cells. You provide an NSCell to the table column. The column reuses that cell for every row by calling -setObjectValue: with the proper object for the row and then -drawWithFrame:inView:. You might want to override -setObjectValue: to invoke -setTitle: with the string you wish to display. HTH, --Kyle Sluder _______________________________________________ Cocoa-dev mailing list ([email protected]) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
