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
ke...@kevingessner.com





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 (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:
http://lists.apple.com/mailman/options/cocoa-dev/kevin%40kevingessner.com

This email sent to ke...@kevingessner.com

_______________________________________________

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

This email sent to arch...@mail-archive.com

Reply via email to