• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Why would sheet's default button not respond to return key?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: [Q] IB 2.3 (v283) and 10.2 crashes
  • Next by Date: Re: IB bug? - copyWithZone: selector not recognized
  • Previous by thread: Re: Why would sheet's default button not respond to return key?
  • Next by thread: Mouse entered and exited events
  • Index(es):
    • Date
    • Thread