• 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
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]

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


  • Follow-Ups:
    • Re: NSOpenPanel isn't listening to me? I told it to only allow .zip and .xml!
      • From: Andy Lee <email@hidden>
    • Re: NSOpenPanel isn't listening to me? I told it to only allow .zip and .xml!
      • From: Ryan Britton <email@hidden>
  • Prev by Date: Converting from Unicode UTF-16 to 8bit MacCyrillic
  • Next by Date: Re: Converting from Unicode UTF-16 to 8bit MacCyrillic
  • Previous by thread: [SOVLED] Re: Converting from Unicode UTF-16 to 8bit MacCyrillic
  • Next by thread: Re: NSOpenPanel isn't listening to me? I told it to only allow .zip and .xml!
  • Index(es):
    • Date
    • Thread