refactored MyDocument to NewTweetWindow

This commit is contained in:
Jeena Paradies 2011-09-20 00:04:42 +02:00
parent 82e9c1a369
commit 0d567d693e
6 changed files with 1111 additions and 16 deletions

View file

@ -7,7 +7,7 @@
//
#import "Controller.h"
#import "MyDocument.h"
#import "NewTweetWindow.h"
#import "TweetModel.h"
@ -168,7 +168,7 @@
- (void)openNewTweetWindowInReplyTo:(NSString *)userName statusId:(NSString *)statusId {
[NSApp activateIgnoringOtherApps:YES];
MyDocument *newTweet = (MyDocument *)[[NSDocumentController sharedDocumentController] openUntitledDocumentAndDisplay:YES error:nil];
NewTweetWindow *newTweet = (NewTweetWindow *)[[NSDocumentController sharedDocumentController] openUntitledDocumentAndDisplay:YES error:nil];
[newTweet inReplyTo:userName statusId:statusId];
}
@ -180,7 +180,7 @@
if (range.length > 0) {
[twittiaOauthView stringByEvaluatingJavaScriptFromString:[NSString stringWithFormat:@"twittia_oauth.requestAccessToken('%@')", aString]];
} else {
MyDocument *newTweet = (MyDocument *)[[NSDocumentController sharedDocumentController] openUntitledDocumentAndDisplay:YES error:nil];
NewTweetWindow *newTweet = (NewTweetWindow *)[[NSDocumentController sharedDocumentController] openUntitledDocumentAndDisplay:YES error:nil];
[newTweet withString:aString];
}