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

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


References: 
 >Obtaining the NSGraphicsContext for custom NSView (From: Damien Sorresso <email@hidden>)

  • Prev by Date: Re: Obtaining the NSGraphicsContext for custom NSView
  • Next by Date: multidimensional arrays
  • Previous by thread: Re: Obtaining the NSGraphicsContext for custom NSView
  • Next by thread: How to drag move an object?
  • Index(es):
    • Date
    • Thread