• 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: Mouse click inside NSView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mouse click inside NSView


  • Subject: Re: Mouse click inside NSView
  • From: "Erik M. Buck" <email@hidden>
  • Date: Wed, 10 Dec 2003 22:23:38 -0500

See NSView's convertPoint:fromView: method or something similar.

----- Original Message -----
From: "Aaron Boothello" <email@hidden>
To: <email@hidden>
Cc: <email@hidden>
Sent: Tuesday, December 09, 2003 1:55 PM
Subject: Mouse click inside NSView


> I have a window. on the righthalf is an NSTabView. within the tabView
there is a 'CustomView' (that im drawing OpenGL content into).
> When i click in the customView, i use NSRect, [NSEvent locationInWindow],
and NSPoint to figure outthe coordinates of the mouse click.
>
> The [NSEvent locationInWindow], gives me the coordinate of the click
within the entire window. the NSRect gives me the values(origin) of the
TabView. i need to either:
> 1. get the location In NSTabView
> or
> 2. get the NSRect values of the window itself.
>
> cause i need to get the same reference point in order to calculate the
location in the custom view ive clicked on.
>
> Any help would be great.
> Cheers,
> Aaron.
> _______________________________________________
> mac-opengl mailing list | email@hidden
> Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/mac-opengl
> Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Mouse click inside NSView (From: Aaron Boothello <email@hidden>)

  • Prev by Date: Re: reading XML in Cocoa ?
  • Next by Date: Re: [Q] Cocoa newbie question
  • Previous by thread: Re: Mouse click inside NSView
  • Next by thread: accessibility vs dock
  • Index(es):
    • Date
    • Thread