Skip to content

Commit

Permalink
Xcode 4.2b6 ARC migration assistent
Browse files Browse the repository at this point in the history
  • Loading branch information
jk committed Aug 30, 2011
1 parent 0d9127c commit bb2def2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
4 changes: 2 additions & 2 deletions JKAlertPrompt.h
Expand Up @@ -13,8 +13,8 @@
@interface JKAlertPrompt : UIAlertView {
UITextField *textField;
}
@property (nonatomic, retain) UITextField *textField;
@property (readonly) NSString *enteredText;
@property (nonatomic, strong) UITextField *textField;
@property (unsafe_unretained, readonly) NSString *enteredText;

-(id)initWithTitle:(NSString *)title message:(NSString *)message delegate:(id)delegate
cancelButtonTitle:(NSString *)cancelButtonTitle okButtonTitle:(NSString *)okButtonTitle placeholderText:(NSString *)placeholderText;
Expand Down
6 changes: 0 additions & 6 deletions JKAlertPrompt.m
Expand Up @@ -28,7 +28,6 @@ -(id)initWithTitle:(NSString *)title message:(NSString *)message delegate:(id)de
self.textField.autocorrectionType = UITextAutocorrectionTypeNo;
self.textField.keyboardType = UIKeyboardTypeEmailAddress;
self.textField.placeholder = placeholderText;
[theTextField release];
CGAffineTransform translate = CGAffineTransformMakeTranslation(0.0, 130.0);
[self setTransform:translate];
}
Expand All @@ -44,11 +43,6 @@ -(NSString *)enteredText {
return textField.text;
}

- (void) dealloc
{
[textField release];
[super dealloc];
}


@end
4 changes: 2 additions & 2 deletions NSDateAdditions.m
Expand Up @@ -19,7 +19,7 @@
@implementation NSDate (JKAdditions)

+ (NSDate*)dateWithToday {
NSDateFormatter* formatter = [[[NSDateFormatter alloc] init] autorelease];
NSDateFormatter* formatter = [[NSDateFormatter alloc] init];
formatter.dateFormat = @"yyyy-d-M";

NSString* time = [formatter stringFromDate:[NSDate date]];
Expand All @@ -28,7 +28,7 @@ + (NSDate*)dateWithToday {
}

- (NSDate*)dateAtMidnight {
NSDateFormatter* formatter = [[[NSDateFormatter alloc] init] autorelease];
NSDateFormatter* formatter = [[NSDateFormatter alloc] init];
formatter.dateFormat = @"yyyy-d-M";

NSString* time = [formatter stringFromDate:self];
Expand Down

0 comments on commit bb2def2

Please sign in to comment.