• 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: opening 'greyed out' files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: opening 'greyed out' files


  • Subject: Re: opening 'greyed out' files
  • From: Uli Kusterer <email@hidden>
  • Date: Mon, 7 Nov 2005 00:20:37 +0100

Am 05.11.2005 um 13:04 schrieb Koen van der Drift:
I am writing an app that requires to open files that are not always owned by the user. If I select Open File from the menu I can navigate to the directory, but all files are greyed out. Is there a way I can make those files clickable, so they can be opened? Of course I will put up a dialog that asks the user for a password. I looked through the examples in /Developer but didn't see anything that may look like it does this. Any pointers?

Hey Koen,

you'll have to authorize your app before showing the open file panel. Check out the Authorization Services docs for details. IIRC there's also an NSAuthorization class (or something like that) in later MacOS X versions to let you do this directly from Cocoa instead of having to use a C API.

Cheers,
-- M. Uli Kusterer
http://www.zathras.de


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: opening 'greyed out' files
      • From: Koen van der Drift <email@hidden>
References: 
 >opening 'greyed out' files (From: Koen van der Drift <email@hidden>)

  • Prev by Date: Re: obj-c on linux and Cocoa on linux, where can reach them ?
  • Next by Date: Re: Registering file types...
  • Previous by thread: opening 'greyed out' files
  • Next by thread: Re: opening 'greyed out' files
  • Index(es):
    • Date
    • Thread