Created
September 1, 2011 19:32
-
-
Save TooTallNate/1187046 to your computer and use it in GitHub Desktop.
Creating a Plist file with NodObjC
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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