Change setFullBridge to setFullPlatformWindow

This commit is contained in:
Aparajita Fishman
2013-01-27 10:31:17 +08:00
parent 0b865da3be
commit 7e635fb4ea
12 changed files with 24 additions and 24 deletions
@@ -68,7 +68,7 @@ CPLogRegister(CPLogConsole);
//order front window
[theWindow setFullBridge:YES];
[theWindow setFullPlatformWindow:YES];
[theWindow orderFront:self];
}
/*
@@ -23,7 +23,7 @@
connection = [CPURLConnection connectionWithRequest:request delegate:self];
rootItem = nil;
[theWindow setFullBridge:YES];
[theWindow setFullPlatformWindow:YES];
}
@@ -38,9 +38,9 @@
[outlineView reloadData];
}
// ==========================
// ! CPOutlineView Delegate
// ==========================
// ==========================
// ! CPOutlineView Delegate
// ==========================
- (int)outlineView:(CPOutlineView)theOutlineView numberOfChildrenOfItem:(id)theItem
{
@@ -29,7 +29,7 @@
[array addObject:[CPDictionary dictionaryWithObjectsAndKeys:@"Barack",@"name",@"President",@"job",@"barack@whitehouse.gov",@"email", 1, @"tag", @"Resources/Jakabos4.jpg", @"image"]];
[self setPeople:array];
// Setup tags for the second popup
var items = [tagPopUp itemArray];
[items enumerateObjectsUsingBlock:function(item, idx)
@@ -37,8 +37,8 @@
[item setTag:idx];
[item setTitle:([item title] + " Tag:" + idx)];
}];
[mainWindow setFullBridge:YES];
[mainWindow setFullPlatformWindow:YES];
}
@@ -53,4 +53,4 @@
return "transformed " + aValue;
}
@end
@end
@@ -27,7 +27,7 @@ var THEME_ATTRIBUTES = [@"slice-top-border-color", @"slice-bottom-border-color",
- (void)awakeFromCib
{
var contentView = [theWindow contentView];
[theWindow setFullBridge:YES];
[theWindow setFullPlatformWindow:YES];
[contentView setBackgroundColor:[CPColor colorWithHexString:@"f3f4f5"]];
var animationClass = (CPBrowserIsEngine(CPWebKitBrowserEngine)) ? [CPViewAnimationTransition class] : [CPViewAnimation class];
+1 -1
View File
@@ -88,7 +88,7 @@ var categories = ["firstName", "lastName"],
- (void)awakeFromCib
{
[theWindow setBackgroundColor:[CPColor colorWithHexString:@"f3f4f5"]];
[theWindow setFullBridge:YES];
[theWindow setFullPlatformWindow:YES];
}
- (IBAction)sendsWholeSearchString:(id)sender
+4 -4
View File
@@ -28,13 +28,13 @@
{
var item = [[CPTabViewItem alloc] initWithIdentifier:@"item"],
view = [[CPView alloc] initWithFrame:CGRectMakeZero()];
[item setView:view];
[item setLabel:@"item"];
[nibTabViewEmpty addTabViewItem:item];
[theWindow setFullBridge:YES];
[theWindow setFullPlatformWindow:YES];
}
- (void)tabView:(CPTabView)aTabView didSelectTabViewItem:(CPTabViewItem)tabViewItem
+1 -1
View File
@@ -23,7 +23,7 @@
- (void)awakeFromCib
{
[[self mainWindow] setFullBridge:YES];
[[self mainWindow] setFullPlatformWindow:YES];
orders = [];
[orders addObject:[Order orderWithCustomer:[Customer customerWithName:@"Klaas Pieter" email:@"klaaspieter@madebysofa.com" job:@"Programmer"]]];
+1 -1
View File
@@ -52,7 +52,7 @@
[theWindow orderOut:self];
[theWindow setPlatformWindow:platformWindow];
[theWindow orderFront:self];
[theWindow setFullBridge:YES];
[theWindow setFullPlatformWindow:YES];
var button = [[theWindow contentView] subviews][2];
[button setTarget:self];
@@ -20,13 +20,13 @@
var headerView = [[CPView alloc] initWithFrame:CGRectMakeZero()];
[headerView setBackgroundColor:[CPColor blueColor]];
[[self window] setFullBridge:YES];
[[self window] setFullPlatformWindow:YES];
}
- (@action)changeBorderType:(id)aSender
{
var borderType = CPNoBorder;
switch ([aSender title])
{
default:
@@ -37,11 +37,11 @@
case @"CPLineBorder":
borderType = CPLineBorder;
break;
case @"CPBezelBorder":
borderType = CPBezelBorder;
break;
case @"CPGrooveBorder":
borderType = CPGrooveBorder;
break;
@@ -104,7 +104,7 @@ var rootItems = [CPArray arrayWithObject:[CPDictionary dictionaryWithObjectsAndK
[buttonBar setButtons:[CPArray arrayWithObjects:plusButton, minusButton]];
[superView addSubview:buttonBar];
[theWindow setFullBridge:YES];
[theWindow setFullPlatformWindow:YES];
}
// Get the table data
- (void)connection:(CPURLConnection)connection didReceiveData:(CPString)dataString
@@ -33,7 +33,7 @@
request = [CPURLRequest requestWithURL:path],
connection = [CPURLConnection connectionWithRequest:request delegate:self];
[theWindow setFullBridge:YES];
[theWindow setFullPlatformWindow:YES];
}
- (void)connection:(CPURLConnection)connection didReceiveData:(CPString)dataString
@@ -28,7 +28,7 @@ CPLogRegister(CPLogConsole);
// It's a useful hook for setting up current UI values, and other things.
// In this case, we want the window from Cib to become our full browser window
[theWindow setFullBridge:YES];
[theWindow setFullPlatformWindow:YES];
}
- (int)numberOfRowsInTableView:(CPTableView)tableView