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

Re: Where was the mouse clicked????


  • Subject: Re: Where was the mouse clicked????
  • From: Stephane Sudre <email@hidden>
  • Date: Mon, 25 Apr 2005 18:32:45 +0200


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];


	[...]
}

_______________________________________________
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: 
 >Where was the mouse clicked???? (From: "Brian O'Brien" <email@hidden>)

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