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

Re: Panels do not respond to keyboard (NSOpenPanel, NSSavePanel)


  • Subject: Re: Panels do not respond to keyboard (NSOpenPanel, NSSavePanel)
  • From: Corbin Dunn <email@hidden>
  • Date: Fri, 19 Oct 2007 15:00:22 -0700


On Oct 19, 2007, at 12:23 AM, Andre Schnoor wrote:

A few days ago I had a question about panels blocking keyboard input. I admit the question was probably a bit misleading and unfocussed. Hence I'd like to ask again, more focussed this time:

Any ideas why an NSOpenPanel/NSSavePanel rejects keyboard input? The "donk!" clearly indicates there is no responder found. But why? Isn't the panel a responder on its own?

panel = [NSOpenPanel openPanel];
[panel setAllowsMultipleSelection: NO];
[panel setCanChooseDirectories: NO];
[panel setCanChooseFiles: YES];
[panel setResolvesAliases: YES];

if ( [panel runModalForTypes: [NSArray arrayWithObject: @"html"]] == NSOKButton )
filename = [panel filename];


The above code is run on the main thread, but to no avail.

If someone could point me to any direction, that'd be extremely helpful.
Thanks.

Run it under gdb, and break on all keyDowns:

'b keyDown:'
(choose all)

...then....go from there.

--corbin
_______________________________________________

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


References: 
 >Panels do not respond to keyboard (NSOpenPanel, NSSavePanel) (From: Andre Schnoor <email@hidden>)
 >Re: Panels do not respond to keyboard (NSOpenPanel, NSSavePanel) (From: Andre Schnoor <email@hidden>)

  • Prev by Date: Re: Question Mark Cursor
  • Next by Date: Re: Getting list of classes inside NSBundle
  • Previous by thread: Re: Panels do not respond to keyboard (NSOpenPanel, NSSavePanel)
  • Next by thread: Re: Panels do not respond to keyboard (NSOpenPanel, NSSavePanel)
  • Index(es):
    • Date
    • Thread