On Dec 18, 2008, at 11:52 AM, Corbin Dunn wrote:


On Dec 18, 2008, at 7: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.


You will have more problems and trouble attempting to get an NSView
inside of a cell. I suggest subclassing NSTextFieldCell. Please do log
a bug requesting the ability to easily put views into cells.

Thanks for the advice.

Searching more through the archives, I did find:

http://www.joar.com/code/body.html

which seems to do what I want and subclasses a NSCell.

Could you provide some information on what problems I will run into going the route suggested by joar?


I filed the bug - rdar://6455493


_______________________________________________

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