initial commit
This commit is contained in:
parent
61f82ba7a4
commit
3b2d6d3f3e
12 changed files with 6904 additions and 0 deletions
26
Base64DecoderAppDelegate.m
Normal file
26
Base64DecoderAppDelegate.m
Normal file
|
@ -0,0 +1,26 @@
|
|||
//
|
||||
// Base64DecoderAppDelegate.m
|
||||
// Base64Decoder
|
||||
//
|
||||
// Created by Jeena on 29.06.10.
|
||||
// Copyright 2010 Jeena Paradies. All rights reserved.
|
||||
//
|
||||
|
||||
#import "Base64DecoderAppDelegate.h"
|
||||
#import "NSData+Base64.h"
|
||||
|
||||
@implementation Base64DecoderAppDelegate
|
||||
|
||||
@synthesize window, input, output;
|
||||
|
||||
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
|
||||
// Insert code here to initialize your application
|
||||
}
|
||||
|
||||
- (IBAction)decode:(id)sender {
|
||||
NSData* data = [NSData dataFromBase64String:[input stringValue]];
|
||||
NSString *string = [[NSString alloc] initWithData:data encoding:NSASCIIStringEncoding];
|
||||
[[[output textStorage] mutableString] appendString:string];
|
||||
}
|
||||
|
||||
@end
|
Loading…
Add table
Add a link
Reference in a new issue