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

Re: coordinate transformation


  • Subject: Re: coordinate transformation
  • From: p3consulting <email@hidden>
  • Date: Mon, 27 Dec 2004 15:40:42 +0100

- (void)mouseDown:(NSEvent *)theEvent
{
NSPoint currentLocation = [self convertBaseToScreen:[theEvent locationInWindow]]
...

}

works for me...


Pascal Pochet
email@hidden
----------------------------------
PGP
KeyID: 0x208C5DBF
Fingerprint: 9BFB 245C 5BFE 7F1D 64B7 C473 ABB3 4E83 208C 5DBF



Le déc. 27, 2004, à 06:19, Frank Fenn a écrit :

Hi all,

this problem bugs me now for several hours and I hope somebody here can point me
into the right direction:

I would like to open a small window under some NSButton when they are pressed. The
buttons id is passed to the class that handles all the window related stuff. The
problem is now that these buttons can be in panels, groups, or the applications main
window. I tried several combinations of convertPoint:toView: and convertBaseToScreen:
without any luck. The window is never directly under the control on the screen.

Sincerely,
Frank Fenn

--

Bright Light Software - http://www.brightlightsoftware.com
_______________________________________________
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
 _______________________________________________
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: coordinate transformation
      • From: Frank Fenn <email@hidden>
References: 
 >coordinate transformation (From: Frank Fenn <email@hidden>)

  • Prev by Date: Re: NSApplicationSupportFolder
  • Next by Date: Re: NSApplicationSupportFolder
  • Previous by thread: coordinate transformation
  • Next by thread: Re: coordinate transformation
  • Index(es):
    • Date
    • Thread