Permalink
Browse files

more ARC conversions

  • Loading branch information...
1 parent 5a8632c commit 999e46ebece7549ba10b5bfbf3262d65aa2549b8 @jehiah committed Apr 7, 2012
@@ -21,6 +21,6 @@
@property (nonatomic) CGFloat rowHeight;
@property (nonatomic) CGFloat lineWidth;
-@property (nonatomic) UIColor *lineColor;
+@property (nonatomic, retain) UIColor *lineColor;
@end
@@ -27,21 +27,21 @@
UIPickerViewDataSource, UIPickerViewDelegate, UIPopoverControllerDelegate, DETweetAccountSelectorViewControllerDelegate,
DETweetPosterDelegate, TwitterDialogDelegate, TwitterLoginDialogDelegate>
-@property ( nonatomic) IBOutlet DETweetSheetCardView *cardView;
-@property ( nonatomic) IBOutlet UILabel *titleLabel;
-@property ( nonatomic) IBOutlet UIButton *cancelButton;
-@property ( nonatomic) IBOutlet UIButton *sendButton;
-@property ( nonatomic) IBOutlet UIView *cardHeaderLineView;
-@property ( nonatomic) IBOutlet DETweetTextView *textView;
-@property ( nonatomic) IBOutlet UIView *textViewContainer;
-@property ( nonatomic) IBOutlet UIImageView *paperClipView;
-@property ( nonatomic) IBOutlet UIImageView *attachment1FrameView;
-@property ( nonatomic) IBOutlet UIImageView *attachment2FrameView;
-@property ( nonatomic) IBOutlet UIImageView *attachment3FrameView;
-@property ( nonatomic) IBOutlet UIImageView *attachment1ImageView;
-@property ( nonatomic) IBOutlet UIImageView *attachment2ImageView;
-@property ( nonatomic) IBOutlet UIImageView *attachment3ImageView;
-@property ( nonatomic) IBOutlet UILabel *characterCountLabel;
+@property (weak, nonatomic) IBOutlet DETweetSheetCardView *cardView;
+@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
+@property (weak, nonatomic) IBOutlet UIButton *cancelButton;
+@property (weak, nonatomic) IBOutlet UIButton *sendButton;
+@property (weak, nonatomic) IBOutlet UIView *cardHeaderLineView;
+@property (weak, nonatomic) IBOutlet DETweetTextView *textView;
+@property (weak, nonatomic) IBOutlet UIView *textViewContainer;
+@property (weak, nonatomic) IBOutlet UIImageView *paperClipView;
+@property (weak, nonatomic) IBOutlet UIImageView *attachment1FrameView;
+@property (weak, nonatomic) IBOutlet UIImageView *attachment2FrameView;
+@property (weak, nonatomic) IBOutlet UIImageView *attachment3FrameView;
+@property (weak, nonatomic) IBOutlet UIImageView *attachment1ImageView;
+@property (weak, nonatomic) IBOutlet UIImageView *attachment2ImageView;
+@property (weak, nonatomic) IBOutlet UIImageView *attachment3ImageView;
+@property (weak, nonatomic) IBOutlet UILabel *characterCountLabel;
// Public
+ (void)displayNoTwitterAccountsAlert;
@@ -36,18 +36,18 @@
@interface DETweetComposeViewController ()
@property (nonatomic, copy) NSString *text;
-@property (nonatomic) NSMutableArray *images;
-@property (nonatomic) NSMutableArray *urls;
-@property (nonatomic) NSArray *attachmentFrameViews;
-@property (nonatomic) NSArray *attachmentImageViews;
+@property (nonatomic, retain) NSMutableArray *images;
+@property (nonatomic, retain) NSMutableArray *urls;
+@property (nonatomic, retain) NSArray *attachmentFrameViews;
+@property (nonatomic, retain) NSArray *attachmentImageViews;
@property (nonatomic) UIStatusBarStyle previousStatusBarStyle;
-@property (nonatomic, unsafe_unretainedunsafe_unretained) UIViewController *fromViewController;
-@property (nonatomic) UIImageView *backgroundImageView;
-@property (nonatomic) DETweetGradientView *gradientView;
-@property (nonatomic) UIPickerView *accountPickerView;
-@property (nonatomic) UIPopoverController *accountPickerPopoverController;
+@property (nonatomic, unsafe_unretained) UIViewController *fromViewController;
+@property (nonatomic, retain) UIImageView *backgroundImageView;
+@property (nonatomic, retain) DETweetGradientView *gradientView;
+@property (nonatomic, retain) UIPickerView *accountPickerView;
+@property (nonatomic, retain) UIPopoverController *accountPickerPopoverController;
@property (nonatomic) id twitterAccount; // iOS 5 use only.
-@property (nonatomic) OAuth *oAuth;
+@property (nonatomic, retain) OAuth *oAuth;
- (void)tweetComposeViewControllerInit;
- (void)updateFramesForOrientation:(UIInterfaceOrientation)interfaceOrientation;
@@ -22,7 +22,7 @@
@interface DETweetSheetCardView ()
-@property (nonatomic) UIView *backgroundView;
+@property (nonatomic, retain) UIView *backgroundView;
- (void)tweetSheetCardViewInit;
@@ -23,10 +23,10 @@
@interface DETweetTextView ()
-@property (nonatomic) DERuledView *ruledView;
-@property (nonatomic) UIButton *fromButton;
-@property (nonatomic) UIButton *accountButton;
-@property (nonatomic) UIImageView *accountLine;
+@property (nonatomic, retain) DERuledView *ruledView;
+@property (nonatomic, retain) UIButton *fromButton;
+@property (nonatomic, retain) UIButton *accountButton;
+@property (nonatomic, retain) UIImageView *accountLine;
- (void)textViewInit;
- (CGRect)ruledViewFrame;
@@ -621,6 +621,7 @@
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "DETweeter/DETweeter-Prefix.pch";
INFOPLIST_FILE = "DETweeter/DETweeter-Info.plist";
+ IPHONEOS_DEPLOYMENT_TARGET = 5.0;
PRODUCT_NAME = "$(TARGET_NAME)";
WRAPPER_EXTENSION = app;
};
@@ -634,6 +635,7 @@
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "DETweeter/DETweeter-Prefix.pch";
INFOPLIST_FILE = "DETweeter/DETweeter-Info.plist";
+ IPHONEOS_DEPLOYMENT_TARGET = 5.0;
PRODUCT_NAME = "$(TARGET_NAME)";
WRAPPER_EXTENSION = app;
};
@@ -187,11 +187,11 @@ - (void)tweetThem
- (void)addTweetContent:(id)tcvc
{
- [tcvc addImage:[UIImage imageNamed:@"YawkeyBusinessDog.jpg"]];
- [tcvc addImage:[UIImage imageNamed:@"YawkeyCleanTeeth.jpg"]]; // This one won't actually work. Only one image per tweet allowed currently by Twitter.
- [tcvc addURL:[NSURL URLWithString:@"http://www.DoubleEncore.com/"]];
- [tcvc addURL:[NSURL URLWithString:@"http://www.apple.com/ios/features.html#twitter"]];
- [tcvc addURL:[NSURL URLWithString:@"http://www.twitter.com/"]]; // This won't work either. Only three URLs allowed, just like Apple's implementation.
+// [tcvc addImage:[UIImage imageNamed:@"YawkeyBusinessDog.jpg"]];
+// [tcvc addImage:[UIImage imageNamed:@"YawkeyCleanTeeth.jpg"]]; // This one won't actually work. Only one image per tweet allowed currently by Twitter.
+// [tcvc addURL:[NSURL URLWithString:@"http://www.DoubleEncore.com/"]];
+// [tcvc addURL:[NSURL URLWithString:@"http://www.apple.com/ios/features.html#twitter"]];
+// [tcvc addURL:[NSURL URLWithString:@"http://www.twitter.com/"]]; // This won't work either. Only three URLs allowed, just like Apple's implementation.
NSString *tweetText = [self.tweets objectAtIndex:arc4random() % [self.tweets count]];
[tcvc setInitialText:tweetText];
}

0 comments on commit 999e46e

Please sign in to comment.