31 lines
538 B
Objective-C
31 lines
538 B
Objective-C
#import "AppDelegate.h"
|
|
|
|
@implementation AppDelegate
|
|
|
|
- (void) applicationDidFinishLaunching: (NSNotification *) aNotification
|
|
{
|
|
|
|
}
|
|
|
|
- (BOOL) applicationShouldTerminateAfterLastWindowClosed: (NSApplication *) theApplication
|
|
{
|
|
return YES;
|
|
}
|
|
|
|
- (IBAction) scambiaFinestre: (id) sender
|
|
{
|
|
switch([sender tag]){
|
|
case 0:{
|
|
[_finestra2 orderOut: self];
|
|
[_finestra1 makeKeyAndOrderFront: self];
|
|
}
|
|
case 1:{
|
|
[_finestra1 orderOut: self];
|
|
[_finestra2 makeKeyAndOrderFront: self];
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
@end
|