Obtaining the NSGraphicsContext for custom NSView
Obtaining the NSGraphicsContext for custom NSView
- Subject: Obtaining the NSGraphicsContext for custom NSView
- From: Damien Sorresso <email@hidden>
- Date: Mon, 14 Mar 2005 08:42:00 -0600
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
NotDashEscaped: You need GnuPG to verify this message
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?
--
Damien Sorresso
Macintosh Developer
Computer Infrastructure Support Services
Illinois State University
email@hidden
309.438.5777
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)
iD8DBQFCNaK4M4NYyqeoGX8RAmzeAJ9JyJZ5yi2rqqBdMSYyBr6Q+AGD/ACgnNLT
g7OBoxtFP3+Dx/T7U4NPcfg=
=LTdu
-----END PGP SIGNATURE-----
_______________________________________________
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