Re: Cmd+key shortcuts not being sent to NSWindow on Tiger

2009-08-11 Thread Uli Kusterer
On Aug 8, 2009, at 3:30 AM, Kirk Swenson wrote: - (id) windowWillReturnFieldEditor: (NSWindow*) aWindow toObject: (id) anObject { // myTextFieldEditor is a member variable, so there will only be one of them. if( myTextFieldEditor == nil) { myTextFieldEditor =

Re: Cmd+key shortcuts not being sent to NSWindow on Tiger

2009-08-11 Thread Kirk Swenson
On Aug 10, 2009, at 11:04 PM, Uli Kusterer wrote: On Aug 8, 2009, at 3:30 AM, Kirk Swenson wrote: - (id) windowWillReturnFieldEditor: (NSWindow*) aWindow toObject: (id) anObject { // myTextFieldEditor is a member variable, so there will only be one of them. if(

Re: Cmd+key shortcuts not being sent to NSWindow on Tiger

2009-08-11 Thread Uli Kusterer
On Aug 11, 2009, at 8:47 AM, Kirk Swenson wrote: As the comment suggests, myTextFieldEditor is an instance variable. It's released in the dealloc method. It's worth pointing out that according to the documentation, This method may be called multiple times while a control is first responder.

RE: Cmd+key shortcuts not being sent to NSWindow on Tiger

2009-08-10 Thread Dimcho Balev
Thanks! I will try it out. Dimcho -Original Message- From: cocoa-dev-bounces+dbalev=adobe@lists.apple.com [mailto:cocoa-dev-bounces+dbalev=adobe@lists.apple.com] On Behalf Of Kirk Swenson Sent: Friday, August 07, 2009 6:30 PM To: cocoa-dev@lists.apple.com Subject: Re: Cmd+key

Re: Cmd+key shortcuts not being sent to NSWindow on Tiger

2009-08-08 Thread Ken Thomases
On Aug 6, 2009, at 7:03 PM, Dimcho Balev wrote: I have a trouble with a piece of code which behaves differently on Tiger (Mactel) in comparison to Leopard. It is pretty simple case: our cocoa app is interested in cmd+key shortcuts and we have overriden the keyDown and keyUp methods in our

Cmd+key shortcuts not being sent to NSWindow on Tiger

2009-08-07 Thread Dimcho Balev
Hi, I have a trouble with a piece of code which behaves differently on Tiger (Mactel) in comparison to Leopard. It is pretty simple case: our cocoa app is interested in cmd+key shortcuts and we have overriden the keyDown and keyUp methods in our NSWindow inherited class. On Leopard we receive

Re: Cmd+key shortcuts not being sent to NSWindow on Tiger

2009-08-07 Thread Kirk Swenson
On Aug 7, 2009, at 5:55 PM, Dimcho Balev dba...@adobe.com wrote: I have a trouble with a piece of code which behaves differently on Tiger (Mactel) in comparison to Leopard. It is pretty simple case: our cocoa app is interested in cmd+key shortcuts and we have overriden the keyDown and keyUp