• 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
NSTableView/NSOutlineView variable row height
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTableView/NSOutlineView variable row height


  • Subject: NSTableView/NSOutlineView variable row height
  • From: Kevin Meaney <email@hidden>
  • Date: Mon, 1 Sep 2008 18:58:06 +0100

Hi,

I'm new to NSTableView and more specifically NSOutlineView. I want to have variable height rows in the outline view, and I need to keep Tiger compatibility.

Tiger provides the informal protocol method heightOfRowByItem that looks like it can do the job I want. However it does not seem to provide a way of obtaining the cell for the item. I would like to ask the cell (NSTextFieldCell) what its cell size is by calling cellSize or cellSizeForBounds since it should know how big it needs to be when I have set the text for the text field cell.

Since I could not find a way to make this work I've been looking for a workaround. I have come across RowResizableViews which looks like it might be able to do what I want, however when I ran the sample app it looks quite buggy running in Leopard.

I feel like I am missing something that should be obvious. Pointers would be helpful or a suggestion for something else to try.

Many thanks.

Kevin
_______________________________________________

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: NSTableView/NSOutlineView variable row height
      • From: "Chris Suter" <email@hidden>
    • Re: NSTableView/NSOutlineView variable row height
      • From: Graham Cox <email@hidden>
  • Prev by Date: Re: NSArray as a static
  • Next by Date: CGEventTap locks up entire system
  • Previous by thread: Re: CoreData, SQLite and GUID
  • Next by thread: Re: NSTableView/NSOutlineView variable row height
  • Index(es):
    • Date
    • Thread