NSOpenPanel ignoring its directory.
NSOpenPanel ignoring its directory.
- Subject: NSOpenPanel ignoring its directory.
- From: David Burnett <email@hidden>
- Date: Mon, 12 May 2003 20:14:24 +0100
Hi, I appear to have a problem with
NSOpenPanel runModalForDirectory:file:types:
It appears to be ignoring the path used for runModalForDirectory.
This happens in my application and a testbed I knocked up which
is a window with a single button and one action. The source for
the action is...
- (IBAction)open:(id)sender
{
int result;
NSOpenPanel *oPanel = [NSOpenPanel openPanel];
result = [oPanel runModalForDirectory:NSHomeDirectory()
file:nil types:[NSImage imageFileTypes]];
}
This is the only human generated code in the testbed app.
The rest is IB generated.
Apart from home directory function I've tried @"/Users/vargol"
and @"Macintosh HD:Users:vargol" but the NSOpenPanel
always opens in Macintosh HD.
Am I doing something painfully stupid??
Dave
_______________________________________________
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.