Re: NSOutlineView: what does this even mean?
Re: NSOutlineView: what does this even mean?
- Subject: Re: NSOutlineView: what does this even mean?
- From: Graham Cox <email@hidden>
- Date: Fri, 23 May 2014 12:00:22 +1000
On 22 May 2014, at 2:20 pm, Kyle Sluder <email@hidden> wrote:
> On May 22, 2014, at 12:15 AM, Graham Cox <email@hidden> 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@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