Re: Using a NSCollectionView in a table cell.
Re: Using a NSCollectionView in a table cell.
- Subject: Re: Using a NSCollectionView in a table cell.
- From: Kevin Gessner <email@hidden>
- Date: Thu, 18 Dec 2008 12:23:10 -0500
An alternative route: you could use an NSCollectionView in place of
your NSOutlineView, and populate it with more NSCollectionViews. Then
you'd be imitating the outline view's behavior (essentially just
collapsing), which might be simpler than trying to mimic NSView with
NSTextFieldCell.
HTH,
-- Kevin
Kevin Gessner
http://kevingessner.com
email@hidden
On Dec 18, 2008, at 10:28 AM, Eric Gorr wrote:
I need to be able to use a NSCollectionView inside of a cell for a
NSOutlineView.
The outline view will have only a single column and look like:
> Collapsible Row 1
NSCollectionView 1
> Collapsible Row 2
NSCollectionView 2
and so on.
What I am uncertain about is just how to get the NSCollectionView
inside of a table cell and be able to select an item inside of the
collection view.
The NSCollectionView will contain a set of images with labels.
Of course, I could probably subclass a NSTextFieldCell and draw this
all myself, but I would prefer to use the NSCollectionView which has
all of the behaviors I want already done.
Any thoughts, comment and especially pointers to sample code would
be appreciated.
_______________________________________________
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
_______________________________________________
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