Re: Why would sheet's default button not respond to return key?
Re: Why would sheet's default button not respond to return key?
- Subject: Re: Why would sheet's default button not respond to return key?
- From: Andrew Merenbach <email@hidden>
- Date: Tue, 27 Aug 2002 18:46:04 -0700
Oddly enough, I have a similar problem, though it's the opposite of the
original poster's problem. In my program, I have several sheets that
open at different times. All are configured similarly--they have a
default button and a cancel button. All of them automatically make
their default button glow--except for one. I can hit return, and the
default button is pressed, so that's not a big deal. But if I click in
the sheet, the buttons starts to pulsate. It's as if it hasn't been
ordered to the front yet--which is very strange, considering that
there's already a text field in the sheet that's the first responder.
I've used the same code to activate all of my sheets, so I'm stumped as
to what the problem here could be:
[NSApp beginSheet:gasWindow
modalForWindow:mainWindow
modalDelegate:nil
didEndSelector:nil
contextInfo:nil];
[NSApp runModalForWindow:gasWindow];
[NSApp endSheet:gasWindow];
[gasWindow orderOut:self];
Take care,
Andrew Merenbach
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.