Created
May 2, 2013 07:14
-
-
Save nakiwo/5500639 to your computer and use it in GitHub Desktop.
rubycocoaでplist生成
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
require 'osx/cocoa' | |
data = OSX::NSPropertyListSerialization.dataWithPropertyList_format_options_error_(obj, OSX::NSPropertyListBinaryFormat_v1_0, 0, nil) | |
data.writeToFile_atomically_(path, true) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment