• 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: NSOutlineView Row Heights
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSOutlineView Row Heights


  • Subject: Re: NSOutlineView Row Heights
  • From: "I. Savant" <email@hidden>
  • Date: Tue, 17 Oct 2006 11:10:57 -0400


If you know NSOutlineView supports this, why not look in NSOutlineView's documentation? :-)


What you're looking for is the delegate method: - outlineView:heightOfRowByItem: ... NSTableView has a similar delegate method.

  I hope this helps.

--
I.S.


On Oct 17, 2006, at 10:59 AM, Dan Donaldson wrote:

in 10.4, NSOutlineView has support for varying row heights.

question is, how are row heights set? If I subclass NSCell (or NSTextCell) and manipulate the value returned by cellSize, is that all there is to it?

I've looked at the RowResizeableOutlineView project and used some ideas in it to get where I am, but I'm not clear on the issue above. In case it's relevant, this is a Core Data Document Based project

The second part of the question would be, what do I use to calculate the height required for a textcell with an arbitrary amount of text in it, for a given width?

Many thanks in advance from a perma-newbie for any help...

Dan Donaldson
dan[at]omnivore[dot]ca



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40gmail.com


This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >NSOutlineView Row Heights (From: Dan Donaldson <email@hidden>)

  • Prev by Date: How to make my application open file directly from Finder?
  • Next by Date: Re: How to make my application open file directly from Finder?
  • Previous by thread: NSOutlineView Row Heights
  • Next by thread: Re: NSOutlineView Row Heights
  • Index(es):
    • Date
    • Thread