Guest User

Untitled

a guest
Oct 21st, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. - (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
  2. // Insert code here to initialize your application
  3. PastieTextPoster * poster = [[PastieTextPoster alloc] initWithText:@"This is a test" language:[PastieLanguage languageWithName:@"Plain Text"]];
  4. [poster setDelegate:self];
  5. [poster postInBackground];
  6. [poster release];
  7. }
  8.  
  9. - (void)onlineTextPoster:(OnlineTextPoster *)poster postedToURL:(NSURL *)textURL {
  10. NSLog(@"Posted to URL: %@", textURL);
  11. }
  12.  
  13. - (void)onlineTextPoster:(OnlineTextPoster *)poster failedWithError:(NSError *)theError {
  14. NSLog(@"Failed with error: %@", theError);
  15. }
Add Comment
Please, Sign In to add comment