Skip to content

Instantly share code, notes, and snippets.

@zittix
Last active August 29, 2015 14:02
Show Gist options
  • Save zittix/a4e94125cfcd209d1275 to your computer and use it in GitHub Desktop.
Save zittix/a4e94125cfcd209d1275 to your computer and use it in GitHub Desktop.
Press crash releated to CPWebView reduction
/*
* AppController.j
* test
*
* Created by You on June 25, 2014.
* Copyright 2014, Your Company All rights reserved.
*/
@import <Foundation/Foundation.j>
@import <AppKit/AppKit.j>
@implementation AppController : CPObject
{
@outlet CPWindow theWindow;
@outlet CPWebView theWebview;
}
- (void)applicationDidFinishLaunching:(CPNotification)aNotification
{
// This is called when the application is done loading.
}
- (void)awakeFromCib
{
// This is called when the cib is done loading.
// You can implement this method on any object instantiated from a Cib.
// 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 setFullPlatformWindow:YES];
[theWebview setMainFrameURL:@"http://www.vidinoti.com"];
}
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment