On 15/12/2005, Koen wrote in message <koen-
E5D0C2.10541315122005@news1.east.earthlink.net>:
> NSArray *fileTypes = [NSArray arrayWithObject: @"conf"];
>
[quoted text clipped - 5 lines]
> So I was wondering is this is a good approach, or that I am overseeing
> something and need to use another method
Well, that's what the code you wrote does: see the line I quoted. If you
don't want to have the dialog restricted to one file type, change what you
put in the array. To find out what to put in if you want files of all
types, read the documentation for NSOpenPanel. If you can't work out
where it is in your Xcode documentation, try here:
http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Obj
C_classic/Classes/NSOpenPanel.html
By the way, I think there's something left out of your quoted code, since
you define fileTypes without uses.
Simon.

Signature
http://www.hearsay.demon.co.uk
Koen - 26 Dec 2005 03:22 GMT
In article <donmh1$764$3$8302bc10@news.demon.co.uk>,
Simon Slavin <slavins.delete.these.four.words@hearsay.demon.co.uk>
wrote:
> By the way, I think there's something left out of your quoted code, since
> you define fileTypes without uses.
Yep - the following line needs to be added before the first if:
result = [oPanel runModalForDirectory: nil file: nil types: fileTypes];
Found that a few days ago :)
- Koen.