Skip navigation.
 
mlProblem with NSOpenPanel's runModalForDirectory:file:types: method
FROM : Matthew Lehrian
DATE : Fri Jan 10 20:14:05 2003

Hello all,

I'm having a problem with NSOpenPanel's
runModalForDirectory:file:types: method.  Specifically, with the open
panel (sheet) is created, the selected folder is not the currently
logged in user's home directory, but rather, no directory is selected. 
All I see is the first column in the browser control the contains the
mounted disk partitions and "Network".

When I run the application on a second test machine, it works properly.

Both machines are running Mac OS X 10.2.3.  The only difference I see
between the two machines is that the machine that fails has the primary
harddrive split into two partitions, while the working machine has a
single primary partition.

It doesn't seem to be a code issue.  Maybe a bug?  Any ideas?  Could it
be a "trash the preferences" fix?  Any help would be most appreciated.

Matthew


<code snippet>

...
NSOpenPanel *openPanel = [NSOpenPanel openPanel];

if ([openPanel runModalForDirectory: NSHomeDirectory()
   file: nil
   types: [NSArray arrayWithObject: @"mp3"]] == NSOKButton)
{
   ...

</code snippet>

Related mailsAuthorDate
No related mails found.