Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
bearkode committed Jul 24, 2009
1 parent 322a85c commit dff9887
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Additions/NSString+MEAdditions.m
Expand Up @@ -11,7 +11,7 @@
#import "NSString+MEAdditions.h" #import "NSString+MEAdditions.h"




@implementation NSString (Additions) @implementation NSString (MEAdditions)




- (NSString *)md5String - (NSString *)md5String
Expand Down
21 changes: 17 additions & 4 deletions Classes/MEWriteViewController.m
Expand Up @@ -61,7 +61,11 @@ - (void)checkDraft
{ {
UIAlertView *sAlertView; UIAlertView *sAlertView;


sAlertView = [[UIAlertView alloc] initWithTitle:nil message:NSLocalizedString(@"Load Draft?", @"") delegate:self cancelButtonTitle:NSLocalizedString(@"No", @"") otherButtonTitles:NSLocalizedString(@"Yes", @""), nil]; sAlertView = [[UIAlertView alloc] initWithTitle:nil
message:NSLocalizedString(@"Load Draft?", @"")
delegate:self
cancelButtonTitle:NSLocalizedString(@"No", @"")
otherButtonTitles:NSLocalizedString(@"Yes", @""), nil];


[sAlertView show]; [sAlertView show];
[sAlertView release]; [sAlertView release];
Expand Down Expand Up @@ -437,7 +441,9 @@ + (void)initialize
{ {
if (!gActions) if (!gActions)
{ {
gActions = [[NSDictionary alloc] initWithObjectsAndKeys:@"resizeImageToMidSize", NSLocalizedString(@"Mid Size", nil), @"resizeImageToLargeSize", NSLocalizedString(@"Big Size", nil), @"resizeImageToOriginalSize", NSLocalizedString(@"Original Size", nil), nil]; gActions = [[NSDictionary alloc] initWithObjectsAndKeys:@"resizeImageToMidSize", NSLocalizedString(@"Mid Size", nil),
@"resizeImageToLargeSize", NSLocalizedString(@"Big Size", nil),
@"resizeImageToOriginalSize", NSLocalizedString(@"Original Size", nil), nil];
} }
} }


Expand Down Expand Up @@ -475,7 +481,10 @@ - (id)initWithPingbackLink:(NSString *)aPermLink
{ {
mText = [[NSString alloc] initWithFormat:@"\"\":%@ ", aPermLink]; mText = [[NSString alloc] initWithFormat:@"\"\":%@ ", aPermLink];


[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardDidShow:) name:UIKeyboardDidShowNotification object:nil]; [[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(keyboardDidShow:)
name:UIKeyboardDidShowNotification
object:nil];
} }


return self; return self;
Expand Down Expand Up @@ -636,7 +645,11 @@ - (IBAction)upload
[self setInterfaceEnabled:NO]; [self setInterfaceEnabled:NO];
[self savePostAsDraft]; [self savePostAsDraft];


[[MEClientStore currentClient] createPostWithBody:sBody tags:sTags icon:mSelectedIconIndex attachedImage:mResizedImage delegate:self]; [[MEClientStore currentClient] createPostWithBody:sBody
tags:sTags
icon:mSelectedIconIndex
attachedImage:mResizedImage
delegate:self];
} }
} }
} }
Expand Down

0 comments on commit dff9887

Please sign in to comment.