As you can see on this page (http://stackoverflow.com/a/19219705), an 
NSTableView determines whether to be cell or view based based on the 
implemented delegate methods. Specifically, if 
tableView:objectValueForTableColumn:tableColumn:row is implemented, it is cell 
based; if tableView:viewForTableColumn:tableColumn:row is implemented, than it 
is view based. If this assumption is incorrect, I’d appreciate a correction.

But is it possible to use one object as a delegate for both a cell based and 
view based table view? Each of the methods has a tableView parameter that can 
be queued to determine which NSTableView is being referenced, but since the 
table type appears to be set by implemented methods, and not a property, I am 
not sure how to do this.

I don’t want to use a separate view controller for one of my tables as this 
will massively complicate what I am trying to do. Anyone have any easy 
suggestions?

— SevenBits

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

_______________________________________________

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

Reply via email to