Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @import <Foundation/CPObject.j>
- @import <AppKit/CPFlashMovie.j>
- @import <AppKit/CPFlashView.j>
- @implementation AppController : CPObject
- {
- CPWindow theWindow; //this "outlet" is connected automatically by the Cib
- @outlet theOther;
- CPFlashMovie _movie;
- CPFlashView _movie_view;
- }
- - (void)applicationDidFinishLaunching:(CPNotification)aNotification
- {
- // This is called when the application is done loading.
- [self loadAMQP];
- }
- - (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 setFullBridge:YES];
- }
- - (void)loadAMQP
- {
- _movie = [[CPFlashMovie alloc] initWithFile:@"Resources/amqp.swf"];
- _movie_view = [[CPFlashView alloc] initWithFrame:CGRectMakeZero()];
- [_movie_view setFlashMovie:_movie];
- [[theWindow platformWindow] addSubview:_movie_view];
- debugger;
- MQ.onLoad();
- }
- @end
Add Comment
Please, Sign In to add comment