• 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
converting rects between coordinate systems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

converting rects between coordinate systems


  • Subject: converting rects between coordinate systems
  • From: email@hidden
  • Date: Wed, 4 Jun 2003 17:35:25 -0400

I need to be able to convert the size of a frame of a subview to its final size as represented in a superview. Since the bounds of the superview is generally much larger than that of the subview, the resulting image of the subview is scaled down. The width of this scaled down version is what is important. I have tried the NS View methods:

convertRect:fromView:
convertRect:toView:
convertSize:fromView:
convertSize:toView

but they down take scaling into account. I'm probably missing something simple, so please clue me in. Thanks.
_______________________________________________
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.
  • Follow-Ups:
    • Re: converting rects between coordinate systems
      • From: j o a r <email@hidden>
  • Prev by Date: Re: How to determine if a view is active
  • Next by Date: Re: How to determine if a view is active
  • Previous by thread: Re: How to determine if a view is active
  • Next by thread: Re: converting rects between coordinate systems
  • Index(es):
    • Date
    • Thread