• 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
Re: scaleUnitSquareToSize
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: scaleUnitSquareToSize


  • Subject: Re: scaleUnitSquareToSize
  • From: John Randolph <email@hidden>
  • Date: Fri, 8 Aug 2003 12:03:33 -0700

On Friday, August 8, 2003, at 10:44 AM, Greg Titus wrote:

On Friday, August 8, 2003, at 08:46 AM, Neil Earnshaw wrote:

NSView lets you scaleits unit square using scaleUnitSquareToSize:(NSSize)size.

Is there anyway to read the current unit square size?

The result of [view convertSize:NSMakeSize(1,1) fromView:nil] will give you the current scaling for the view...

Woah! Thanks, Greg. I hadn't thought of that. The last time I needed to do this, I did it the hard way by extracting it from the current transformation matrix.

There's always something to learn from this list ;-)

-jcr


John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: scaleUnitSquareToSize (From: Greg Titus <email@hidden>)

  • Prev by Date: Re: duplicate preference keys
  • Next by Date: NSShortTimeDateFormatString still supported?
  • Previous by thread: Re: scaleUnitSquareToSize
  • Next by thread: Re: scaleUnitSquareToSize
  • Index(es):
    • Date
    • Thread