• 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
Help getting custom cell layout in NSOutlineView column
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Help getting custom cell layout in NSOutlineView column


  • Subject: Help getting custom cell layout in NSOutlineView column
  • From: Sebastian Nowicki <email@hidden>
  • Date: Fri, 27 Jun 2008 23:55:59 +0800

Hi,
I'd like to make an NSOutlineView have a (perceptually) single column, with 2 labels and an image. The image isn't really important at the moment, as I can't implement that part yet. At the moment I just want to have two labels within a column, one above the other. I've been trying to find some documentation as to how to do this, and as far as I can tell I'm supposed to subclass NSCell and somehow draw both labels. I'm completely new to creating views and such, and I'm unable to find any good sample code as how to do it. The layout I want looks something like this:


+---------------+
| | Foobar
| (Image) |
| | Some description that can be quite long, but should never
| | exceed the height of the image...
+--------------+


I hope that doesn't come out too mangled, but you get the picture. I'm mostly worried about the two text fields, since the image could probably go in a separate column.

How do I go about this?

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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: Help getting custom cell layout in NSOutlineView column
      • From: j o a r <email@hidden>
  • Prev by Date: [Moderator] Re: [Moderator] List Guidelines - Must Read
  • Next by Date: Re: Help getting custom cell layout in NSOutlineView column
  • Previous by thread: Re: Catching the delegate message in a subclass
  • Next by thread: Re: Help getting custom cell layout in NSOutlineView column
  • Index(es):
    • Date
    • Thread