Problem with NSOpenPanel's runModalForDirectory:file:types: method
Problem with NSOpenPanel's runModalForDirectory:file:types: method
- Subject: Problem with NSOpenPanel's runModalForDirectory:file:types: method
- From: Matthew Lehrian <email@hidden>
- Date: Fri, 10 Jan 2003 23:13:27 -0500
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>
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.