Skip to content

Instantly share code, notes, and snippets.

@saikat
Created February 23, 2010 06:49
Show Gist options
  • Select an option

  • Save saikat/311944 to your computer and use it in GitHub Desktop.

Select an option

Save saikat/311944 to your computer and use it in GitHub Desktop.
/*
* AppController.j
* TestLargeView
*
* Created by You on February 22, 2010.
* Copyright 2010, Your Company All rights reserved.
*/
@import <Foundation/CPObject.j>
@import <AppKit/CGContext.j>
@import <AppKit/CPColor.j>
@implementation LargeView : CPView
{
}
@end
@implementation AppController : CPObject
{
LargeView bigView;
}
- (void)applicationDidFinishLaunching :(CPNotification)aNotification
{
var theWindow = [[CPWindow alloc] initWithContentRect:CGRectMakeZero() styleMask:CPBorderlessBridgeWindowMask],
contentView = [theWindow contentView];
bigView = [[LargeView alloc] initWithFrame:CGRectMake(1, 1, 1000, 1000)];
[bigView setFrameSize:CGSizeMake(5000, 5000)];
[contentView addSubview:bigView];
[theWindow orderFront:self];
}
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment