• 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: Matt Neuburg <email@hidden>
  • Date: Fri, 23 Jun 2006 12:00:56 -0700
  • Thread-topic: NSOpenPanel isn't listening to me? I told it to only allow .zip and .xml!

On Fri, 23 Jun 2006 10:19:54 -0400, Andy Lee <email@hidden> said:
>The semantics of -setAllowedFileTypes: is presumably different in the
>two classes.  For NSSavePanel it means "only allow the user to
>*create* files with these extensions."  For NSOpenPanel I would have
>assumed it means "only allow the user to *select* files with these
>extensions," but apparently that is incorrect.

Saying -setAllowedFileTypes: to an NSOpenPanel while the panel is showing
causes no change in what's selectable. Evidently you're supposed to specify
the allowed file types when you start running the panel. Thus it appears
that -setAllowedFileTypes: is useless, which is weird, because in that case,
why does it exist? That, at least, is the conclusion reached during a
discussion of this issue at a different venue (a newsgroup). I myself am
just confused and would like to know how this is supposed to work. I would
think that being able to change the allowed file types while the panel is
open would be useful. m.

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



 _______________________________________________
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>
  • Prev by Date: Re: Nib files in memory
  • Next by Date: Re: Problem with NSWindowController subclass
  • Previous by thread: Re: Problem with NSWindowController subclass
  • Next by thread: Re: NSOpenPanel isn't listening to me? I told it to only allow .zip and .xml!
  • Index(es):
    • Date
    • Thread