• 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
Fwd: Where was the mouse clicked????
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fwd: Where was the mouse clicked????


  • Subject: Fwd: Where was the mouse clicked????
  • From: "Brian O'Brien" <email@hidden>
  • Date: Mon, 25 Apr 2005 10:45:30 -0600



Begin forwarded message:

From: Brian O'Brien <email@hidden>
Date: April 25, 2005 10:39:54 AM MDT
To: Stephane Sudre <email@hidden>
Subject: Re: Where was the mouse clicked????


On Apr 25, 2005, at 10:32 AM, Stephane Sudre wrote:

On 25 avr. 05, at 18:32, Brian O'Brien wrote:

I've read this document but cannot figure out what I need to know and cant' find any other document or
posting that explains this simple concept.
http://developer.apple.com/documentation/Cocoa/Conceptual/BasicEventHandling/index.html

I get a mouseDown event in my NSImageView subclass, but the coordinates that it is giving me
seem to have nothing to do with the location I clicked on within the image...
The image being displayed is 256x256 pixels.

- (void) mouseDown:(NSEvent *) theEvent
{
NSPoint mouseLoc=[self convertPoint:[theEvent locationInWindow] fromView:nil];

[...]
}



Ahhh fromView not toView!

 _______________________________________________
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

  • Prev by Date: Re: Where was the mouse clicked????
  • Next by Date: Fwd: Where was the mouse clicked????
  • Previous by thread: Re: Where was the mouse clicked????
  • Next by thread: Fwd: Where was the mouse clicked????
  • Index(es):
    • Date
    • Thread