Re: NSOpenPanel isn't listening to me? I told it to only allow .zip and .xml!
Re: NSOpenPanel isn't listening to me? I told it to only allow .zip and .xml!
- Subject: Re: NSOpenPanel isn't listening to me? I told it to only allow .zip and .xml!
- From: Ryan Britton <email@hidden>
- Date: Fri, 23 Jun 2006 06:07:07 -0700
Did you pass it the same types array in runModalForTypes: or
whichever of the sheet/modal methods you used?
On Jun 23, 2006, at 5:04 AM, Theodore H. Smith wrote:
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
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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