mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-25 16:05:52 +00:00
NSNib.j : use a UUID to create the temp nib file (for safety). Remove ref to NSTableCellView in info message
This commit is contained in:
1 parent
d2848fc519
commit
8a3d832b4c
1 file changed
+5
-3
@@ -2,7 +2,9 @@
|
||||
@import <AppKit/CPCib.j>
|
||||
@import "Converter.j"
|
||||
|
||||
var FILE = require("file");
|
||||
var FILE = require("file"),
|
||||
OS = require("os"),
|
||||
UUID = require("uuid");
|
||||
|
||||
@implementation CPCib (NSCoding)
|
||||
|
||||
@@ -10,7 +12,7 @@ var FILE = require("file");
|
||||
{
|
||||
self = [super init];
|
||||
|
||||
var nibPath = @"/tmp/NSTableCellView.nib",
|
||||
var nibPath = @"/tmp/" + UUID.uuid() + ".nib",
|
||||
data = [aCoder decodeObjectForKey:@"NSNibFileData"],
|
||||
sharedConverter = [Converter sharedConverter];
|
||||
|
||||
@@ -21,7 +23,7 @@ var FILE = require("file");
|
||||
themes:[sharedConverter themes]];
|
||||
[converter setCompileNib:NO];
|
||||
|
||||
CPLog.info("Converting NSTableCellView nib to plist...");
|
||||
CPLog.info("Converting sub nib to plist...");
|
||||
|
||||
var nibData = [converter CPCompliantNibDataAtFilePath:nibPath];
|
||||
_data = [converter convertedDataFromMacData:nibData resourcesPath:[sharedConverter resourcesPath]];
|
||||
|
||||
Reference in new issue
Block a user