Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



On Fri, 19 Oct 2007 09:23:43 +0200, Andre Schnoor <email@hidden>
said:
>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.

What keys are you pressing that it is "donking" on?

m.

-- 
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
One of the 2007 MacTech Top 25: <http://tinyurl.com/2rh4pf>
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>



_______________________________________________

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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.