On Jul 10, 2014, at 9:03 AM, Keary Suska <cocoa-...@esoteritech.com> wrote:

> On Jul 10, 2014, at 2:02 AM, Aandi Inston wrote:
> 
>> Suppose a dialog is to contain a line with multiple controls like
>> 
>> [ ] Add ________ seconds [before/after]

>> Each of these controls contains text, and the aim here is to align the text
>> so it does not jump up and down - to align the text baseline.
> 
> Umm, Auto Layout? You can easily align elements by baseline...

And even if you don't use auto layout as such, there were methods introduced to 
support it that you can use anyway.  In particular, -[NSView 
alignmentRectForFrame:] to get the alignment rectangle and 
-baselineOffsetFromBottom to find the baseline relative to that alignment 
rectangle.

Regards,
Ken


_______________________________________________

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

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

Reply via email to