• 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 indentation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSOutlineView indentation


  • Subject: Re: NSOutlineView indentation
  • From: James Walker <email@hidden>
  • Date: Thu, 08 Jan 2009 11:14:17 -0800

Bill Monk wrote:

On Jan 7, 2009, James Walker wrote:

  Having the indentation affect the top level may be technically
consistent, but I don't know why anyone would want it to work that way.


Yes, I agree. Top-level items should stay near the left margin, and setting the indent to 0 should not cause top-level disclosure controls to impinge on neighboring columns. The following fixed it for my purposes.

(snip)

Thanks, but your solution won't work for me. The frameOfOutlineCellAtRow: method was introduced in Leopard, and I still need to support Tiger.

But then I had the idea of changing the frame rectangle of outline view when it awakes from the nib, this sort of thing:

	NSRect outlineFrame = [mOutlineView frame];
	outlineFrame.origin.x -= frameAdjust;
	outlineFrame.size.width += frameAdjust;
	[mOutlineView setFrame: outlineFrame];

It actually seems to work! I guess it would be more complicated if the view were resizable, but my current case is not.

--
  James W. Walker, Innoventive Software LLC
  <http://www.frameforge3d.com/>
_______________________________________________

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


References: 
 >Re: NSOutlineView indentation (From: Bill Monk <email@hidden>)

  • Prev by Date: Re: [NSOutlineView reloadData]
  • Next by Date: Re: App Listener
  • Previous by thread: Re: NSOutlineView indentation
  • Next by thread: a kind of auto complete behavior of NSTextview: how to do that?
  • Index(es):
    • Date
    • Thread