• 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: simple file browser
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: simple file browser


  • Subject: Re: simple file browser
  • From: Corbin Dunn <email@hidden>
  • Date: Mon, 25 Jan 2010 15:17:08 -0800

On Jan 25, 2010, at 2:22 PM, Jens Alfke wrote:

>
> On Jan 25, 2010, at 2:12 PM, Ariel Feinerman wrote:
>
>> I want to implement file browser in my app to allow to see hidden
>> files / other. Can you suggest me code examples of cocoa file browser?
>
> Use an NSOpenPanel, set an instance of your class as its delegate, and implement the panel:shouldShowFilename: method to always return YES, even for hidden files.

That won't work -- by default the open/save panel doesn't call it for hidden files.

Instead, just call: [savePanel setShowsHiddenFiles:YES].

--corbin


_______________________________________________

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

  • Follow-Ups:
    • Re: simple file browser
      • From: Jens Alfke <email@hidden>
References: 
 >simple file browser (From: Ariel Feinerman <email@hidden>)
 >Re: simple file browser (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: Garbage Collection Docs Puzzle
  • Next by Date: another responder chain docs bug (validateUserInterfaceItem:)
  • Previous by thread: Re: simple file browser
  • Next by thread: Re: simple file browser
  • Index(es):
    • Date
    • Thread