Re: Event handling and tracking rect question
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