fixed repost link and added send post button

This commit is contained in:
Jeena Paradies 2012-11-28 22:08:02 +01:00
parent 60ec8a4454
commit 50e582bafc
9 changed files with 207 additions and 17 deletions

View file

@ -192,9 +192,14 @@
[menuItem setTitle:@"Current location not available"];
}
- (IBAction)sendPostButtonPressed:(id)sender
{
[self sendPost:self.textField];
}
#pragma mark Keyboard delegate methods
- (IBAction)sendTweet:(NSControl *)control {
- (IBAction)sendPost:(NSControl *)control {
if ([[control stringValue] length] <= MESSAGE_MAX_LENGTH) {
PostModel *post = [[[PostModel alloc] init] autorelease];
post.text = [control stringValue];
@ -239,7 +244,7 @@
}
else if (commandSelector == @selector(noop:)) {
retval = YES;
[self sendTweet:control];
[self sendPost:control];
}
return retval;