On 22 May 2014, at 2:20 pm, Kyle Sluder <[email protected]> wrote:

> On May 22, 2014, at 12:15 AM, Graham Cox <[email protected]> wrote:
>> 
>> So I want to use a custom subclass of NSTableRowView so I can use an 
>> in-house UI highlighting style. It's far from obvious how to do this, even 
>> though other documentation states that this is the 'correct' approach to 
>> customising the row highlight of a view-based table. The docs only have the 
>> text above, providing a glimmer of hope.
> 
> Drag an NSTableRowView instance onto the table view, and assign it the 
> "NSTableViewRowViewKey" identifier on the identity tab.
> 
> You should watch the WWDC video where they introduce view-based NSTableViews.
> 
> --Kyle Sluder


Thanks Kyle, the video does clear up a lot of confusion.

I still have a problem doing this though. In the video, a custom table row view 
is shown as a subview of the table, and sure enough, the identifier and class 
can be set there. But when I try it, there is no such view available, neither 
already part of the table, nor as a 'table row view' type I can drag in from 
the palette (there are table cells, but not rows). If I attempt to just drag a 
plain custom view, it's not possible to drop it onto the table view - it 
refuses the drop, or else it incorrectly ends up as a subview of the custom 
cell view there. The video clearly shows this should be seen as a separate 
second row in the table. This is with IB in XCode 5.1.1. Am I missing 
something, or has IB forgotten to include this feature?

From the video, I can also see that there is a way to do this in code, so I may 
attempt that instead.

--Graham



_______________________________________________

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to