• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSOpenPanel ignoring its directory.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: self release
  • Next by Date: Re: self release
  • Previous by thread: NSView, NSImage, and flipped text?
  • Next by thread: Why is the controller in my NSMovieView grayed out?
  • Index(es):
    • Date
    • Thread