• 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: NSOpenPanel isn't listening to me? I told it to only allow .zip and .xml!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >NSOpenPanel isn't listening to me? I told it to only allow .zip and .xml! (From: "Theodore H. Smith" <email@hidden>)

  • Prev by Date: Re: Converting from Unicode UTF-16 to 8bit MacCyrillic
  • Next by Date: Re: Help with NSArrayController, NSTableView and NSOpenPanel
  • Previous by thread: NSOpenPanel isn't listening to me? I told it to only allow .zip and .xml!
  • Next by thread: Re: NSOpenPanel isn't listening to me? I told it to only allow .zip and .xml!
  • Index(es):
    • Date
    • Thread