• 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: Determining width of a cell in an NSOutlineView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Determining width of a cell in an NSOutlineView


  • Subject: Re: Determining width of a cell in an NSOutlineView
  • From: Eric Gorr <email@hidden>
  • Date: Mon, 5 Jan 2009 10:28:36 -0500


On Dec 19, 2008, at 6:03 PM, Corbin Dunn wrote:


For that, you want to use -cellSizeForBounds: -- pass in a large height, but a constrained width. Use a width that is equal to the [tableColumn width] minus indentation * (level + 1) ---- although, the actual value that outlineview uses for indentation is dependent on some internal logic (ie: if you are using "group rows", or the "source list highlighting style"). But, this should give you a value that is fairly close to what you want.

Vacation got in the way of replying sooner...

Thanks for the information.

While I believe this will work in my specific situation, I have filed a bug (rdar://6472757) requesting that a method be added which can simply return the width, taking into account things like "group rows" and "source list highlighting style".


_______________________________________________

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


  • Prev by Date: Re: alloc init thread safe?
  • Next by Date: [MEET] Minnesota CocoaHeads 1/8/09
  • Previous by thread: Re: alloc init thread safe?
  • Next by thread: Re: Determining width of a cell in an NSOutlineView
  • Index(es):
    • Date
    • Thread