NSOpenPanel isn't listening to me? I told it to only allow .zip and .xml!
NSOpenPanel isn't listening to me? I told it to only allow .zip and .xml!
- Subject: NSOpenPanel isn't listening to me? I told it to only allow .zip and .xml!
- From: "Theodore H. Smith" <email@hidden>
- Date: Fri, 23 Jun 2006 13:04:52 +0100
if ( [ op respondsToSelector : @selector(setAllowedFileTypes:) ] ) {
// I verified that this branch is being called!
[op setAllowedFileTypes: aTypes]; // contains @"zip" and @"xml".
[op setAllowsOtherFileTypes:false];
}
runResult = [op runModalForDirectory:StartPath file: nil ];
And guess what? The open panel allows me to open EVERY type :(
Why? Why isn't NSOpenPanel listening to me? I told it to do something
and it just ignored me despite that it says that it does respond to
that selector.
--
http://elfdata.com/plugin/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden