• 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: CFPrefDockItems sample code. Where did it go?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CFPrefDockItems sample code. Where did it go?


  • Subject: Re: CFPrefDockItems sample code. Where did it go?
  • From: Omar Qazi <email@hidden>
  • Date: Wed, 22 Feb 2006 11:58:26 -0800

NSDictionary can initialize with the contents of a binary plist, so you could create and NSDictionary from ~/Library/Preferences/ com.apple.dock.plist
And add a new Dictionary with your applications information to the persistant-apps array, then write the dictionary back to the file.


Open com.apple.dock.plist in Property List Editor for information about how your application's dictionary should look
On Feb 2, 2006, at 10:22 AM, Allan Dushan wrote:


Is there still a way to programmatically add an application icon to the Dock? If so, how would this be done?

_______________________________________________ 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
References: 
 >CFPrefDockItems sample code. Where did it go? (From: Allan Dushan <email@hidden>)
 >Re: CFPrefDockItems sample code. Where did it go? (From: Eric Schlegel <email@hidden>)
 >Re: CFPrefDockItems sample code. Where did it go? (From: Allan Dushan <email@hidden>)

  • Prev by Date: Re: NSTableView and background color
  • Next by Date: Re: NSUserDefaults for portable applications
  • Previous by thread: Re: CFPrefDockItems sample code. Where did it go?
  • Next by thread: NSScriptCoercionHandler ?
  • Index(es):
    • Date
    • Thread