Created
February 23, 2010 06:49
-
-
Save saikat/311944 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * 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