mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-30 03:48:49 +00:00
Fix local hidding global variable in CPOutlineViewCibTest
This commit is contained in:
1 parent
3aadc958eb
commit
899cd22999
1 file changed
+7
-6
@@ -10,21 +10,21 @@
|
||||
|
||||
@implementation AppController : CPObject
|
||||
{
|
||||
CPWindow theWindow;
|
||||
CPOutlineView outlineView;
|
||||
@outlet CPWindow theWindow;
|
||||
@outlet CPOutlineView outlineView;
|
||||
|
||||
CPDictionary rootItem;
|
||||
}
|
||||
|
||||
- (void)awakeFromCib
|
||||
{
|
||||
rootItem = nil;
|
||||
|
||||
var path = [[CPBundle mainBundle] pathForResource:@"InitInfo.dict"],
|
||||
request = [CPURLRequest requestWithURL:path],
|
||||
connection = [CPURLConnection connectionWithRequest:request delegate:self];
|
||||
|
||||
rootItem = nil;
|
||||
[theWindow setFullPlatformWindow:YES];
|
||||
|
||||
}
|
||||
|
||||
- (void)connection:(CPURLConnection)connection didReceiveData:(CPString)dataString
|
||||
@@ -32,8 +32,9 @@
|
||||
if (!dataString)
|
||||
return;
|
||||
|
||||
var data = [[CPData alloc] initWithRawString:dataString],
|
||||
rootItem = [CPPropertyListSerialization propertyListFromData:data format:CPPropertyListXMLFormat_v1_0];
|
||||
var data = [[CPData alloc] initWithRawString:dataString];
|
||||
|
||||
rootItem = [CPPropertyListSerialization propertyListFromData:data format:CPPropertyListXMLFormat_v1_0];
|
||||
|
||||
[outlineView reloadData];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user