On Jan 7, 2014, at 9:40 AM, Peter wrote: > > Am 07.01.2014 um 17:32 schrieb Jens Alfke <j...@mooseyard.com>: > >> >> On Jan 7, 2014, at 7:52 AM, Peter <magn...@web.de> wrote: >> >>> I’d be very happy if somebody could point me to an example of an editable >>> NSTableView set up programmatically. >> >> It sounds like you just mean using a custom data source rather than relying >> on bindings to provide the data? That’s very easy to do. Just look at the >> docs for NSTableViewDataSource — you just need to implement the three >> methods to provide the row count, get a cell value, and set a cell value. >> >> —Jens > > Oops, sorry, the crucial info is only in the subject line: I meant a view > based NSTableView. Which as far as I could find out does not make use of the > NSTableViewDataSource protocol. I seems that you have to have to use delegate > methods to make it work.
Umm, in the documentation for NSTableCellView it sats: objectValue The object that represents the cell data. @property(retain) id objectValue Discussion The objectValue is automatically set by the table when using bindings or is the object returned by the NSTableViewDataSource protocol method tableView:objectValueForTableColumn:row:. Not to mention that I have used view-based table views with data sources... Keary Suska Esoteritech, Inc. "Demystifying technology for your home or business" _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com