Re: Obtaining the NSGraphicsContext for custom NSView
Re: Obtaining the NSGraphicsContext for custom NSView
- Subject: Re: Obtaining the NSGraphicsContext for custom NSView
- From: Henry McGilton <email@hidden>
- Date: Mon, 14 Mar 2005 07:00:06 -0800
On Mar 14, 2005, at 6:42 AM, Damien Sorresso wrote:
I've got a custom NSView inside a window that acts as first responder
for mouse clicks. I've got it set up right now so that whenever the
user clicks inside the view, an image is drawn at the mouse
coordinates by calling a method. The image draws, but relative to the
containing window, not the view. So it's using the window's coordinate
system.
How can I obtain the view's coordinate system explicitly?
Take a look at the Converting coordinates section of the
NSView documentation.
Cheers,
........ Henry
===============================+============================
Henry McGilton, Boulevardier | Trilithon Software
Objective-C/Java Composer | Seroia Research
-------------------------------+----------------------------
mailto:email@hidden | http://www.trilithon.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