• 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
Problem with NSOpenPanel's runModalForDirectory:file:types: method
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Finding the parent of an outline view item
  • Next by Date: Re: Plugging into iSync?
  • Previous by thread: Re: Finding the parent of an outline view item
  • Next by thread: Apple and Cocoa (why don't they eat their own dog food?)
  • Index(es):
    • Date
    • Thread