Browse Subversion Repository
Contents of /trunk/ImageSplitter/CRAppDelegate.m
Parent Directory
| Revision Log
Revision 2 -
( show annotations)
( download)
Fri Feb 15 07:01:49 2013 UTC
(11 years, 1 month ago)
by zcode
File size: 1425 byte(s)
[ver 0.2.0] added options
| 1 |
// |
| 2 |
// CRAppDelegate.m |
| 3 |
// ImageSpliter |
| 4 |
// |
| 5 |
// Created by hiroshi tomioka on 13/02/09. |
| 6 |
// Copyright (c) 2013ĺš´ hiroshi tomioka. All rights reserved. |
| 7 |
// |
| 8 |
|
| 9 |
#import "CRAppDelegate.h" |
| 10 |
|
| 11 |
|
| 12 |
@implementation CRAppDelegate |
| 13 |
@synthesize _controller; |
| 14 |
|
| 15 |
- (void)dealloc |
| 16 |
{ |
| 17 |
[super dealloc]; |
| 18 |
} |
| 19 |
|
| 20 |
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification |
| 21 |
{ |
| 22 |
// Insert code here to initialize your application |
| 23 |
} |
| 24 |
|
| 25 |
//- (void)sheetDidEnd:(NSWindow*)sheet |
| 26 |
// returnCode:(int)returnCode |
| 27 |
// contextInfo:(void*)contextInfo |
| 28 |
//{ |
| 29 |
// [sheet orderOut:self]; |
| 30 |
// NSLog(@"returnCode %d",returnCode); |
| 31 |
//} |
| 32 |
|
| 33 |
- (IBAction)onBehaviorsButton:(id)sender |
| 34 |
{ |
| 35 |
NSLog(@"Behaviors"); |
| 36 |
if (!_controller) { |
| 37 |
_controller = [[CRBehaviorsWindowController alloc] init]; |
| 38 |
[NSBundle loadNibNamed:@"CRBehaviorsWindowController" owner:_controller]; |
| 39 |
} |
| 40 |
[_controller showWindow:self]; |
| 41 |
[[_controller window] makeKeyAndOrderFront:self]; |
| 42 |
|
| 43 |
|
| 44 |
// [NSApp stopModal]; |
| 45 |
// |
| 46 |
// CRBehaviorsWindowController *controller = [[CRBehaviorsWindowController alloc] init]; |
| 47 |
// |
| 48 |
// [NSApp beginSheet:controller.window |
| 49 |
// modalForWindow:self.window |
| 50 |
// modalDelegate:self |
| 51 |
// didEndSelector:@selector(sheetDidEnd:returnCode:contextInfo:) |
| 52 |
// contextInfo:nil |
| 53 |
// ]; |
| 54 |
// |
| 55 |
|
| 56 |
// CRBehaviorsWindowController *controller = [[CRBehaviorsWindowController alloc] init]; |
| 57 |
// [self.window setContentView: controller.view]; |
| 58 |
//[controller presentModalViewController:controller]; |
| 59 |
} |
| 60 |
|
| 61 |
@end |
|