Skip to content

Instantly share code, notes, and snippets.

@flandy84
Created March 4, 2012 13:17
Show Gist options
  • Save flandy84/1972951 to your computer and use it in GitHub Desktop.
Save flandy84/1972951 to your computer and use it in GitHub Desktop.
optimized Objective-C Implementation File
//.m File optimized Objective-C Class Implementation
@interface SimpleHttpRequest()<NSURLConnectionDelegate>{ //Private interface
NSObject* _iVarABC;
NSObject* _someThing;
__unsafe_unretained NSObject* _anyThing;
NSURLRequest* _urlrequest;
__weak id _delegate;
SEL _didFailSelector;
}
@property(nonatomic, copy, readwrite) NSURLRequest* urlrequest; //private redefinition for internal write-access
@property(nonatomic, strong) NSObject* someThing; //strong or retain
@property(nonatomic, unsafe_unretained) NSObject* anyThing; //unsafe_unretained or assign
@property(nonatomic, weak) IBOutlet UIButton *deleteButton;
-(void)showActivityIndicator;
-(void)hideActivityIndicator;
@end
@implementation SimpleHttpRequest{
NSObject* _iVarXYZ;
}
@synthesize delegate = _delegate;
@synthesize urlrequest = _urlrequest;
@synthesize didFailSelector = _didFailSelector;
@synthesize someThing = _someThing;
@synthesize anyThing= _anyThing;
@synthesize deleteButton;
-(void)startAsynchronous{
...
}
...
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment