fixed problem with in replay ids

This commit is contained in:
Jeena Paradies 2011-01-10 17:01:06 +01:00
parent 57d8c5f9ff
commit 7b4adc0f63
31 changed files with 578 additions and 491 deletions

View file

@ -8,6 +8,7 @@
#import "MyDocument.h"
#import "Constants.h"
#import "TweetModel.h"
@implementation MyDocument
@ -101,7 +102,9 @@
- (IBAction)sendTweet:(NSControl *)control {
if ([[control stringValue] length] <= TWEET_MAX_LENGTH) {
NSArray *tweet = [NSArray arrayWithObjects:[control stringValue], inReplyTostatusId, nil];
TweetModel *tweet = [[[TweetModel alloc] init] autorelease];
tweet.text = [control stringValue];
tweet.inReplyTostatusId = inReplyTostatusId;
[[NSNotificationCenter defaultCenter] postNotificationName:@"sendTweet" object:tweet];
[self close];
} else {