home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac Power 2002 February
/
MACPOWER-2002-02.ISO.7z
/
MACPOWER-2002-02.ISO
/
MacPowerオリジナル⁄連載
/
P.264⁄Cocoa
/
Cocoa6-4
/
MyController.m
< prev
Wrap
Text File
|
2001-12-13
|
320b
|
17 lines
#import "MyController.h"
@implementation MyController
- (BOOL)windowShouldClose:(id)sender
{
int theResp = NSRunAlertPanel(@"Warning",@"Do you close?",@"Yes",@"No",nil);
return (theResp == NSAlertDefaultReturn) ? YES : NO;
}
- (IBAction)myAction:(id)sender
{
[myTextField setStringValue:@"Pushed."];
}
@end