Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
- // Insert code here to initialize your application
- PastieTextPoster * poster = [[PastieTextPoster alloc] initWithText:@"This is a test" language:[PastieLanguage languageWithName:@"Plain Text"]];
- [poster setDelegate:self];
- [poster postInBackground];
- [poster release];
- }
- - (void)onlineTextPoster:(OnlineTextPoster *)poster postedToURL:(NSURL *)textURL {
- NSLog(@"Posted to URL: %@", textURL);
- }
- - (void)onlineTextPoster:(OnlineTextPoster *)poster failedWithError:(NSError *)theError {
- NSLog(@"Failed with error: %@", theError);
- }
Add Comment
Please, Sign In to add comment