Re: opening 'greyed out' files
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