> On Feb 23, 2015, at 8:49 AM, sqwarqDev <[email protected]> wrote: > > How do I programmatically tell each NSControl to increase its text size > proportionally as its bounds increase?
You’ll have to do it manually. Observe the control’s frame, then when it changes compute a new font size and update the control’s font. (The easy way is to assume that text width scales linearly with font size; strictly speaking this isn’t always true, but it’s probably true of any standard system font like Helvetica that you’d be displaying in a control.) —Jens _______________________________________________ Cocoa-dev mailing list ([email protected]) 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 [email protected]
