• 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
Re: NSOpenPanel -runModalForDirectory:file:types: won't select file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSOpenPanel -runModalForDirectory:file:types: won't select file


  • Subject: Re: NSOpenPanel -runModalForDirectory:file:types: won't select file
  • From: Roland Torres <email@hidden>
  • Date: Mon, 23 Apr 2007 17:12:59 -0700

On Apr 22, 2007, at 9:59 AM, Johan Kool wrote:

Roland,

It does work for me this way without a problem. The open panel has the specified path preselected.

Yes, the open panel does preselect (show) the correct directory, but the file within the directory is not preselected.


Are you sure you have the path correct? Does it work if you specify the types to be able to select "dat" files only? It should work with nil, though I haven't tested it. It works for me when I have the selectable types specified.

Well, I've tried every combination of parameters I can think of, but I have never been able to get the open panel to preselect a file like the documentation suggests is possible.


Roland


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >NSOpenPanel -runModalForDirectory:file:types: won't select file (From: Roland Torres <email@hidden>)
 >Re: NSOpenPanel -runModalForDirectory:file:types: won't select file (From: Johan Kool <email@hidden>)
 >Re: NSOpenPanel -runModalForDirectory:file:types: won't select file (From: Roland Torres <email@hidden>)
 >Re: NSOpenPanel -runModalForDirectory:file:types: won't select file (From: Johan Kool <email@hidden>)

  • Prev by Date: Re: Request for Authors: Focused Cocoa Topic Books
  • Next by Date: Re: Best format and method for very fast CGImage resizing [Solved]
  • Previous by thread: Re: NSOpenPanel -runModalForDirectory:file:types: won't select file
  • Next by thread: Framework versioning in OS X
  • Index(es):
    • Date
    • Thread