• 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: Add item to NSSavePanel sidebar
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Add item to NSSavePanel sidebar


  • Subject: Re: Add item to NSSavePanel sidebar
  • From: Omar Qazi <email@hidden>
  • Date: Thu, 19 Jun 2008 18:22:31 -0700


On Jun 19, 2008, at 7:57 AM, Fedor Larin wrote:

I need to allow user to save some data to a file or a recordable cd ( dvd ),
using NSSavePanel. Is it possible to programmatically add an icon
representing recordable media to NSSavePanel's sidebar? Writing will be
performed on-fly, so standard way used in Finder with 'untitled cd' icon and
'burn' button is unsuitable.


Fedor:

The finder has to save the sidebar state to disk somewhere. I image that it would be possible to read that file and change the place where it mentions all the items in the sidebar to include your directory. If I had to guess I would probably say that sidebar data is stored in ~/ Library/Preferenced/com.apple.finder.plist. If this is true, you can read all of the data into a NSDictionary, which will make the file very easy to edit make it very easy to edit.

You also might need to restart finder after you make the change using something like "killall finder".

Omar Qazi
Hello, Galaxy!
1.310.294.1593

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

_______________________________________________

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: Add item to NSSavePanel sidebar
      • From: Jens Alfke <email@hidden>
References: 
 >Add item to NSSavePanel sidebar (From: "Fedor Larin" <email@hidden>)

  • Prev by Date: Re: File System Notifications
  • Next by Date: Re: PDFKit guidance
  • Previous by thread: Re: Add item to NSSavePanel sidebar
  • Next by thread: Re: Add item to NSSavePanel sidebar
  • Index(es):
    • Date
    • Thread