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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to