Skip navigation.
 
mlRe: [Q] NSOpenPanel / NSSavePanel customization
FROM : glenn andreas
DATE : Wed Jun 21 15:45:38 2006

On Jun 21, 2006, at 8:28 AM, JongAm Park wrote:

> Hello.
>
> After reading the Apple's document, I found out that an accessory 
> view could be attached to NSOpenPanel/SavePanel to customize it.
>
> So, I would like to implement NSOpenPanel like this.
>
>  1. It should have a pop-up list which contains ".txt", ".c", 
> "cpp", "h", and so on.
>      - By choosing one among them, only files with the chosen 
> extension is shown.
>
>  2. Hide other files which don't have the chosen extension.



What are you trying to accomplish that can't just be done by letting 
all of the possible valid extensions be selectable?

i.e., from the user point of view, if they want to open a ".c" file, 
they should be able to just select it without having to say "I want 
a .c file" in the popup - after all, your program will know what they 
wanted by what they've chosen.  It would be extremely frustrating to 
them if they wanted to open a "source file" and have to switch 
between ".c" and ".cpp" (or ".cp", etc...).

It would make the UI cleaner and easier to use (as well as easier to 
implement).


Glenn Andreas                      <email_removed>
  <http://www.gandreas.com/> wicked fun!
quadrium2 | build, mutate, evolve, animate  | images, textures, 
fractals, art

Related mailsAuthorDate
ml[Q] NSOpenPanel / NSSavePanel customization JongAm Park Jun 21, 15:28
mlRe: [Q] NSOpenPanel / NSSavePanel customization glenn andreas Jun 21, 15:45
mlRe: [Q] NSOpenPanel / NSSavePanel customization glenn andreas Jun 21, 18:21