• 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: Event handling and tracking rect question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Event handling and tracking rect question


  • Subject: Re: Event handling and tracking rect question
  • From: "John C. Randolph" <email@hidden>
  • Date: Sun, 18 Mar 2007 10:41:18 -0700


On Mar 17, 2007, at 10:01 AM, Christian Moen wrote:

My question is: How should I handle the case when my window with the
custom view is being opened under the mouse pointer?  My custom view
doesn't seem get an initial mouseEntered: call.  Is there a way to get
this?

Several ways... First, you can implement -awakeFromNib in your custom view, and check for where the mouse is immediately using [NSEvent mouseLocation] or a -mouseLocationOutsideOfEventStream message to your window. You can also have your window's delegate listen for various windowDid... messages.


-jcr


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Event handling and tracking rect question (From: "Christian Moen" <email@hidden>)

  • Prev by Date: NSDatePicker behaviour is odd when typing date
  • Next by Date: Re: NSDatePicker behaviour is odd when typing date
  • Previous by thread: Event handling and tracking rect question
  • Next by thread: Preventing default drawing of slider bar in custom NSSlider class
  • Index(es):
    • Date
    • Thread