• 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
scale text proportionally as bounds increase
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

scale text proportionally as bounds increase


  • Subject: scale text proportionally as bounds increase
  • From: sqwarqDev <email@hidden>
  • Date: Mon, 23 Feb 2015 23:49:36 +0700

Hi folks

I need some advice on how to approach a particular problem (OS X),

I have a basic window with a couple of NSTextFields and Labels. What I want to do is have the user able to drag the window frame and have the text in the fields increase proportionally. I know I can get the frame of each NSControl within the superview to scale with AutoLayout, but that won't increase the text size within the NSControl.

How do I programmatically tell each NSControl to increase its text size proportionally as its bounds increase?



Best

Phil

DisplayDroid beta (a lightweight script editor and automation tool) is now available for free download. More info on sqwarq.com/displaydroid
OSXClock - big, beautiful alarm clock and timer for your mac. More info on sqwarq.com/osxclock

http://applehelpwriter.com
http://sqwarq.com - apps for OS X & iOS










_______________________________________________

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


  • Follow-Ups:
    • Re: scale text proportionally as bounds increase
      • From: Jens Alfke <email@hidden>
    • Re: scale text proportionally as bounds increase
      • From: Steve Mills <email@hidden>
  • Prev by Date: Re: Instantiate NSString from NSURL in Swift
  • Next by Date: Re: scale text proportionally as bounds increase
  • Previous by thread: Re: How to translate this form objc to swift? (__unsafe_unretained)
  • Next by thread: Re: scale text proportionally as bounds increase
  • Index(es):
    • Date
    • Thread