mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-18 12:39:22 +00:00
Fix for using unicode characters with capp config.
Reviewed by me.
This commit is contained in:
1 parent
6829d502d7
commit
48cd362015
2 files changed
+14
-12
No files matched your search
@@ -845,7 +845,7 @@ CPRunContinuesResponse = -1002;
|
||||
if (_delegate && [_delegate respondsToSelector:@selector(application:openURL:)])
|
||||
return [_delegate application:self openURL:aURL];
|
||||
|
||||
return [_documentController openDocumentWithContentsOfURL:aURL display:YES error:NULL];
|
||||
return !![_documentController openDocumentWithContentsOfURL:aURL display:YES error:NULL];
|
||||
}
|
||||
|
||||
- (void)_didResignActive
|
||||
|
||||
@@ -1,15 +1,17 @@
|
||||
var file = require("file"),
|
||||
objj = require("objective-j"),
|
||||
CPPropertyListCreateData = objj.CPPropertyListCreateData,
|
||||
kCFPropertyListXMLFormat_v1_0 = objj.kCFPropertyListXMLFormat_v1_0;
|
||||
var FILE = require("file"),
|
||||
OBJJ = require("objective-j"),
|
||||
CPPropertyListCreateData = OBJJ.CPPropertyListCreateData,
|
||||
kCFPropertyListXMLFormat_v1_0 = OBJJ.kCFPropertyListXMLFormat_v1_0;
|
||||
|
||||
exports.readPlist = function(path) {
|
||||
var plistData = new objj.objj_data();
|
||||
plistData.string = file.read(path);
|
||||
return objj.CPPropertyListCreateFromData(plistData);
|
||||
exports.readPlist = function(aPath)
|
||||
{
|
||||
var plistData = new OBJJ.objj_data();
|
||||
plistData.string = FILE.read(aPath, { charset:"UTF-8" });
|
||||
return OBJJ.CPPropertyListCreateFromData(plistData);
|
||||
}
|
||||
|
||||
exports.writePlist = function(path, plist, format) {
|
||||
format = format || objj.kCFPropertyListXMLFormat_v1_0;
|
||||
file.write(path, objj.CPPropertyListCreateData(plist, format).string);
|
||||
exports.writePlist = function(aPath, plist, format)
|
||||
{
|
||||
format = format || OBJJ.kCFPropertyListXMLFormat_v1_0;
|
||||
FILE.write(aPath, OBJJ.CPPropertyListCreateData(plist, format).string, { charset:"UTF-8" });
|
||||
}
|
||||
Reference in new issue
Block a user