Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

28 lines (21 sloc) 0.672 kB
#import "ynWindowController.h"
@implementation ynWindowController
- (IBAction)no:(id)sender
{
NSFileHandle *fh = [ NSFileHandle fileHandleForWritingAtPath: fifo ];
[ fh writeData: [[ NSString stringWithString: @"no" ] dataUsingEncoding: NSASCIIStringEncoding ]];
[ fh closeFile ];
[ self close ];
}
- (IBAction)yes:(id)sender
{
NSFileHandle *fh = [ NSFileHandle fileHandleForWritingAtPath: fifo ];
[ fh writeData: [[ NSString stringWithString: @"yes" ] dataUsingEncoding: NSASCIIStringEncoding ]];
[ fh closeFile ];
[ self close ];
}
- (void)setACaption:(NSString*)theCaption;
{
[ caption setStringValue: theCaption ];
}
@end
Jump to Line
Something went wrong with that request. Please try again.