Skip to content

Instantly share code, notes, and snippets.

@TooTallNate
Created September 1, 2011 19:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TooTallNate/1187046 to your computer and use it in GitHub Desktop.
Save TooTallNate/1187046 to your computer and use it in GitHub Desktop.
Creating a Plist file with NodObjC
var $ = require('./')
$.import('Foundation')
var pool = $.NSAutoreleasePool('alloc')('init')
var plist = $.NSMutableDictionary('alloc')('init')
plist('setValue', $._('val'), 'forKey', $._('key'))
// write out to a plist file
plist('writeToFile', $._('filepath.plist'), 'atomically', true)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment