• 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: Rosyna <email@hidden>
  • Date: Wed, 15 Feb 2006 00:41:53 -0700

I also need to do this. I need to convert a window relative HIPoint into a global point so I can call CGPostMouseEvent() on the correct point on my window.

Ack, at 2/10/06, Dave MacLachlan said:

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.

--


Sincerely, Rosyna Keller Technical Support/Holy Knight/Always needs a hug

Unsanity: Unsane Tools for Insanely Great People

It's either this, or imagining Phil Schiller in a thong.
_______________________________________________
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


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

  • Prev by Date: Re: Best way to customize Cocoa
  • Next by Date: Re: nsarraycontroller, bindings and big databases
  • Previous by thread: Re: Converting HIPoints to CGPoints/NSPoints in global space?
  • Next by thread: Re: Converting HIPoints to CGPoints/NSPoints in global space?
  • Index(es):
    • Date
    • Thread