• 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
using OpenPanel to select volumes?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

using OpenPanel to select volumes?


  • Subject: using OpenPanel to select volumes?
  • From: Angelo Chen <email@hidden>
  • Date: Sat, 23 Aug 2008 23:07:21 -0700 (PDT)

Hi,

I use following code to select a volume, it works, but it also give the user chance to select directory as well, how to disable selection of directories, only allow volumes?
thanks,


NSOpenPanel *oPanel = [OpenPanel openPanel];
[oPanel setCanChooseFiles:NO];
[oPanel setCanChooseDirectories:YES];
[oPanel setCanCreateDirectories:NO];


      為了不斷提升Yahoo! Mail,雅虎香港誠邀你參與意見調查。請前往http://surveylink.yahoo.com/wix/p5429076.aspx 發表你的意見!
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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

  • Prev by Date: Re: Implementing isEqual: and hash
  • Next by Date: Re: textfield not updating with bindings - Whats wrong?
  • Previous by thread: Re: specify a NSPredicate for jpeg file names?
  • Next by thread: Core data entity creation design
  • Index(es):
    • Date
    • Thread