FROM : Shawn Erickson
DATE : Fri Apr 08 21:45:01 2005
On Apr 8, 2005, at 12:35 PM, Luc Vandal wrote:
> Hi,
>
> I managed to get it to work by changing NSPostASAP to NSPostNow
> (hoping that this is ok).
It could be ok depending on what you are doing when you get the event
notification (recall the notification is being sent while your window
is in the process of handling a change in first responder). Not sure we
can answer fully for ya without knowing more and/or testing things.
> One last thing, how can I get information about the control from
> NSResponder?
What firstResponder gets you is the control itself (note that NSControl
is a subclass of NSView and NSView is a subclass or NSResponder).
-Shawn
DATE : Fri Apr 08 21:45:01 2005
On Apr 8, 2005, at 12:35 PM, Luc Vandal wrote:
> Hi,
>
> I managed to get it to work by changing NSPostASAP to NSPostNow
> (hoping that this is ok).
It could be ok depending on what you are doing when you get the event
notification (recall the notification is being sent while your window
is in the process of handling a change in first responder). Not sure we
can answer fully for ya without knowing more and/or testing things.
> One last thing, how can I get information about the control from
> NSResponder?
What firstResponder gets you is the control itself (note that NSControl
is a subclass of NSView and NSView is a subclass or NSResponder).
-Shawn






Cocoa mail archive

