• 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
Panels do not respond to keyboard (NSOpenPanel, NSSavePanel)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Panels do not respond to keyboard (NSOpenPanel, NSSavePanel)


  • Subject: Panels do not respond to keyboard (NSOpenPanel, NSSavePanel)
  • From: Andre Schnoor <email@hidden>
  • Date: Wed, 17 Oct 2007 18:54:44 +0200

Hi all,

there's an extremely mysterious issue bugging me and I can't seem to find the cause for it: When running NSOpenPanel or NSSavePanel (or any other sheet or panel, e.g. a print dialog), it works nicely, except the panels don't accept keyboard input. All I get is a "DONK!" and the input field loses focus. This makes entering filenames impossible.

Pushing #runModal to the main thread didn't help.

Am I missing something? Is my NSApp blocking the keyboard events from the panel? Isn't the panel receiving its keyboard input independently?

The NSApp needs to intercept and handle keyboard events in a rather non-standard way (its a ported application). Hence, I assume the issue must be related to this. How can I (temporarily) tell the application to pass-through keyboard events to the sheet/panel? Is there perhaps a possibility to provide the panel with an independent keyboard responder?

Any hint is appreciated.

Cheers
Andre

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Panels do not respond to keyboard (NSOpenPanel, NSSavePanel)
      • From: Andre Schnoor <email@hidden>
  • Prev by Date: Re: bitwise operations in obj C
  • Next by Date: Re: bitwise operations in obj C
  • Previous by thread: Re: bitwise operations in obj C
  • Next by thread: Re: Panels do not respond to keyboard (NSOpenPanel, NSSavePanel)
  • Index(es):
    • Date
    • Thread