Permalink
Browse files

Altering photo to Aspect Fill and Altering property callBack to copy

  • Loading branch information...
1 parent 58d6d77 commit cb39c5de0176b014ffd0e58b727a4d8034ba7f33 @lucascorrea committed Nov 27, 2011
Showing with 10 additions and 6 deletions.
  1. +8 −6 SCFacebook/SCFacebook.m
  2. +2 −0 SCFacebook/en.lproj/ViewController.xib
View
@@ -13,7 +13,7 @@
static SCFacebook * _scFacebook = nil;
@interface SCFacebook()
-@property (nonatomic, retain) SCFacebookCallback callback;
+@property (nonatomic, copy) SCFacebookCallback callback;
@end
@@ -160,7 +160,7 @@ -(void)_loginWithAppId:(NSString *)appId callBack:(SCFacebookCallback)callBack{
_permissions = [NSArray arrayWithObjects:PERMISSIONS, nil];
[_facebook authorize:_permissions];
- self.callback = [[callBack copy] autorelease];
+ self.callback = callBack;
}
else {
callBack(YES,@"Logged");
@@ -170,7 +170,7 @@ -(void)_loginWithAppId:(NSString *)appId callBack:(SCFacebookCallback)callBack{
}
-(void)_logoutCallBack:(SCFacebookCallback)callBack{
- self.callback = [[callBack copy] autorelease];
+ self.callback = callBack;
[_facebook logout:self];
}
@@ -186,7 +186,7 @@ -(void)_getUserFQL:(NSString*)fql callBack:(SCFacebookCallback)callBack{
NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys:[NSString stringWithFormat:@"SELECT %@ FROM user WHERE uid=me()",fql], @"query",
nil];
[_facebook requestWithMethodName:@"fql.query" andParams:params andHttpMethod:@"POST" andDelegate:self];
- self.callback = [[callBack copy] autorelease];
+ self.callback = callBack;
}
-(void)_getUserFriendsCallBack:(SCFacebookCallback)callBack{
@@ -197,7 +197,8 @@ -(void)_getUserFriendsCallBack:(SCFacebookCallback)callBack{
}
[_facebook requestWithGraphPath:@"me/friends" andDelegate:self];
- self.callback = [[callBack copy] autorelease];
+
+ self.callback = callBack;
}
-(void)_userPostWallActionName:(NSString*)actName actionLink:(NSString*)actLink paramName:(NSString*)pName paramCaption:(NSString*)pCaption paramDescription:(NSString*)pDescription paramLink:(NSString*)pLink paramPicture:(NSString*)pPicture callBack:(SCFacebookCallback)callBack{
@@ -260,7 +261,8 @@ -(void)_userPostWallActionName:(NSString*)actName actionLink:(NSString*)actLink
if ([params count] > 0) {
[_facebook dialog:@"feed" andParams:params andDelegate:self];
- self.callback = [[callBack copy] autorelease];
+
+ self.callback = callBack;
}else{
callBack(NO, @"ERROR");
}
@@ -101,6 +101,8 @@
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="862455580"/>
<string key="NSReuseIdentifierKey">_NS:567</string>
+ <bool key="IBUIClipsSubviews">YES</bool>
+ <int key="IBUIContentMode">2</int>
<bool key="IBUIUserInteractionEnabled">NO</bool>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
<object class="NSCustomResource" key="IBUIImage">

0 comments on commit cb39c5d

Please sign in to comment.