• 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
Obtaining the NSGraphicsContext for custom NSView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Obtaining the NSGraphicsContext for custom NSView
      • From: Henry McGilton <email@hidden>
    • Re: Obtaining the NSGraphicsContext for custom NSView
      • From: Chris Eplett <email@hidden>
  • Prev by Date: Re: Handle keyboard events
  • Next by Date: How to drag move an object?
  • Previous by thread: Moderator: Re: multidimensional arrays
  • Next by thread: Re: Obtaining the NSGraphicsContext for custom NSView
  • Index(es):
    • Date
    • Thread