Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSOutlineView vertical cell alignments



Hello,

Is there still no way under Tiger to set the
alignments of cells without subclassing them? Two
linked questions on this topic:

1) I have an outline view with multiple row heights.
Because it is an outliner, it would look best if the
disclosure triangles were at the top. This is how
things were under Panther, but under Tiger, disclosure
triangles are centered vertically. Does anybody know
how I to get the disclosure triangles drawn at the top
of the view? The drawing methods for the disclosure
triangles all seem to be private, unless I've missed
something...

1) On a related note, my outline view contains text
cells and popup button cells. Given that the row
heights are determined by the cell with the most text
in it, by default all other cells have their contents
centered vertically, which looks ugly - they would
look far better aligned to the top of the cells. Do I
need to go to the effort of subclassing
NSPopUpButtonCell and NSTextFieldCell just to get the
alignment I want? It seems silly that there is *still*
no setting for vertical alignment, especially given
that the behaviour changed between Panther and Tiger,
so it shouldn't have been too hard to put a flag in
there and let developers choose between old (top
aligned) and new (centre-aligned) behaviour.

Any help much appreciated.

Thanks in advance,
Keith

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.