Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Authorisation catch-22 with NSOpenPanel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Authorisation catch-22 with NSOpenPanel




On Nov 25, 2004, at 9:03 AM, Tim Hewett wrote:

I need to find some way of intercepting the mechanism NSOpenPanel
uses to get the file list for its displayed folder... is this possible?

The engineer responsible for NSOpenPanel tells me that this is an often-requested feature, but unfortunately it's not currently possible, as it's a completely internal data model. :-(


Maybe there's an alternative solution to the underlying problem of
access to privileged folders in NSOpenPanel?

It doesn't look like you'll be able to use NSOpenPanel to display directories which the user can't access. You could write your own custom file selection dialog, using a NSBrowser view to display data you provide. You might be able to grab code from the SimpleBrowser example application (in /Developer/Examples/AppKit/SimpleBrowser) to get started.


-ken

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Apple-cdsa mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Authorisation catch-22 with NSOpenPanel (From: Tim Hewett <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.