Re: keyUp falling through to window when sheet dismissed

2008-10-21 Thread Ken Worley
On Oct 21, 2008, at 4:03 PM, Kyle Sluder wrote: On Tue, Oct 21, 2008 at 5:35 PM, Ken Worley <[EMAIL PROTECTED]> wrote: This, by the way, is a constant source of confusion for me in Cocoa. Why is a delegate method specific to NSTextView listed under NSControl which is the parent class? Y

Re: keyUp falling through to window when sheet dismissed

2008-10-21 Thread Ken Worley
On Oct 21, 2008, at 4:17 PM, Ken Worley wrote: On Oct 21, 2008, at 4:03 PM, Kyle Sluder wrote: On Tue, Oct 21, 2008 at 5:35 PM, Ken Worley <[EMAIL PROTECTED]> wrote: This, by the way, is a constant source of confusion for me in Cocoa. Why is a delegate method specific to NSTextView listed

Re: keyUp falling through to window when sheet dismissed

2008-10-21 Thread Ken Worley
On Oct 21, 2008, at 3:20 PM, Ken Worley wrote: On Oct 21, 2008, at 1:36 PM, Kyle Sluder wrote: On Tue, Oct 21, 2008 at 1:43 PM, Ken Worley <[EMAIL PROTECTED]> wrote: It seems like the correct solution is to somehow avoid the keyUp being sent to the window/edit field after the sheet is dis

Re: keyUp falling through to window when sheet dismissed

2008-10-21 Thread Kyle Sluder
On Tue, Oct 21, 2008 at 5:35 PM, Ken Worley <[EMAIL PROTECTED]> wrote: > This, by the way, is a constant source of confusion for me in Cocoa. Why is > a delegate method specific to NSTextView listed under NSControl which is the > parent class? You seem to be misunderstanding a bit. The field edit

Re: keyUp falling through to window when sheet dismissed

2008-10-21 Thread Ken Worley
On Oct 21, 2008, at 1:36 PM, Kyle Sluder wrote: On Tue, Oct 21, 2008 at 1:43 PM, Ken Worley <[EMAIL PROTECTED]> wrote: It seems like the correct solution is to somehow avoid the keyUp being sent to the window/edit field after the sheet is dismissed, but I also wonder if I'm catching the r

Re: keyUp falling through to window when sheet dismissed

2008-10-21 Thread Kyle Sluder
On Tue, Oct 21, 2008 at 1:43 PM, Ken Worley <[EMAIL PROTECTED]> wrote: > It seems like the correct solution is to somehow avoid the keyUp being sent > to the window/edit field after the sheet is dismissed, but I also wonder if > I'm catching the right event in the edit field. Have you read the Tex

keyUp falling through to window when sheet dismissed

2008-10-21 Thread Ken Worley
Hi all, Tried searching for answers to this and haven't come up with anything yet... I'm displaying a sheet which has a default button. The default button dismisses the sheet. When the user presses Return to dismiss the sheet via the default button, the keyUp event for the Return key is s