• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Using a NSCollectionView in a table cell.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using a NSCollectionView in a table cell.


  • Subject: Re: Using a NSCollectionView in a table cell.
  • From: Corbin Dunn <email@hidden>
  • Date: Thu, 18 Dec 2008 08:52:39 -0800


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.


corbin


_______________________________________________

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


  • Follow-Ups:
    • Re: Using a NSCollectionView in a table cell.
      • From: Randall Meadows <email@hidden>
References: 
 >Using a NSCollectionView in a table cell. (From: Eric Gorr <email@hidden>)

  • Prev by Date: [Q] What type the Final Cut Pro expect when a file is drag&dropped to its project?
  • Next by Date: Re: Using a NSCollectionView in a table cell.
  • Previous by thread: Using a NSCollectionView in a table cell.
  • Next by thread: Re: Using a NSCollectionView in a table cell.
  • Index(es):
    • Date
    • Thread