diff --git a/Controller.m b/Controller.m index 3b32b4d..80e3478 100644 --- a/Controller.m +++ b/Controller.m @@ -167,8 +167,10 @@ - (IBAction)sendTweet:(id)sender { + + NSString *replyToId; - if ([[[sender object] objectAtIndex:1] respondsToSelector:@selector(stringValue:)]) { + if (![[[sender object] objectAtIndex:1] isEqualTo:@""]) { replyToId = [[[sender object] objectAtIndex:1] stringValue]; } diff --git a/OAuth.m b/OAuth.m index 9e59c89..93ba55d 100644 --- a/OAuth.m +++ b/OAuth.m @@ -89,10 +89,11 @@ - (void)requestAccessTokenWithPIN:(id)sender { - [twitterPINPanel resignKeyWindow]; - [twitterPINPanel close]; + NSLog(@"%@", [twitterPINField stringValue]); NSURL *url = [NSURL URLWithString:[NSString stringWithFormat:@"%@?oauth_verifier=%@", OAUTH_ACCESS_TOKEN_URL, [twitterPINField stringValue]]]; + [twitterPINPanel resignKeyWindow]; + [twitterPINPanel close]; OAMutableURLRequest *request = [[OAMutableURLRequest alloc] initWithURL:url consumer:consumer @@ -125,13 +126,7 @@ } } -- (void)apiTicket:(OAServiceTicket *)ticket didFinishWithData:(NSData *)data { - if (ticket.didSucceed) { - NSString *responseBody = [[NSString alloc] initWithData:data - encoding:NSUTF8StringEncoding]; - NSLog(@"%@", responseBody); - } -} + - (void)accessTokenTicket:(OAServiceTicket *)ticket didFailWithError:(NSError *)error { NSLog(@"ERROR a: %@", error); diff --git a/ReleaseNotes.html b/ReleaseNotes.html index dc7d715..14e91ba 100644 --- a/ReleaseNotes.html +++ b/ReleaseNotes.html @@ -19,6 +19,12 @@
+

Twittia 2.1.2

+

Added icon

+

Fixed problem where you press "a" and a new tweet window opens

+ +
+

Twittia 2.1.1

Added possibility to change the hotkey in defaults.

Added a notice to the timeline window how many unread mentions there are.