• 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
NSOpenPanel - disabling the "Open" button for certain folders.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSOpenPanel - disabling the "Open" button for certain folders.


  • Subject: NSOpenPanel - disabling the "Open" button for certain folders.
  • From: Ron Aldrich <email@hidden>
  • Date: Thu, 29 Jan 2009 17:18:22 -0800

Hello,

I'm trying to filter the contents of a standard NSOpenPanel dialog such that only certain folders can be opened.

If I implement - (BOOL) panel:(id)sender shouldShowFilename:(NSString *) fileName; such that it returns true for the folders that I want to allow, and false for others, it prevents the user from navigating their hard drive.

The problem is, that the result of panel:shouldShowFilename: controls both the the ability to navigate within a folder, and whether or not the "Open" button is enabled.

So, is there a way to control the enable state of the "Open" button for a folder, without preventing the user from navigating into that folder?

Thanks for your time,

Ron Aldrich
Software Architects, Inc.

_______________________________________________

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: Query on CrashReporter
  • Next by Date: Is the NSData used to create a NSImage copied or retained?
  • Previous by thread: viewDidLoad called after viewWillAppear:
  • Next by thread: Is the NSData used to create a NSImage copied or retained?
  • Index(es):
    • Date
    • Thread