• 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: Converting HIPoints to CGPoints/NSPoints in global space?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Converting HIPoints to CGPoints/NSPoints in global space?


  • Subject: Re: Converting HIPoints to CGPoints/NSPoints in global space?
  • From: Scott Thompson <email@hidden>
  • Date: Sat, 11 Feb 2006 11:31:06 -0600


On Feb 10, 2006, at 4:50 PM, Dave MacLachlan wrote:

Is there a good way to convert NSPoints to HIPoints and back again safely?

I see HIPointConvert, but there doesn't seem to be a "cocoa" coordinate space. I can write a routine iterating through all the displays, and finding the lowest left hand corner, but was wondering if anyone knew of a better way.

I'm afraid I don't understand your question. NSPoints and HIPoints are both "just points with floating point components".


I presume that you are trying to convert points between two coordinate spaces, but it's not clear exactly which two coordinate spaces you are interested in.

Scott

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Converting HIPoints to CGPoints/NSPoints in global space?
      • From: Dave MacLachlan <email@hidden>
References: 
 >Converting HIPoints to CGPoints/NSPoints in global space? (From: Dave MacLachlan <email@hidden>)

  • Prev by Date: Re: Multiple shortcuts for one button
  • Next by Date: Re: Modifying Info.plist at runtime
  • Previous by thread: Converting HIPoints to CGPoints/NSPoints in global space?
  • Next by thread: Re: Converting HIPoints to CGPoints/NSPoints in global space?
  • Index(es):
    • Date
    • Thread