Permalink
Browse files

Adding GUI Goodness

  • Loading branch information...
tomgco committed Jun 9, 2011
1 parent 0ca724f commit 93f3e6c6df5d253966e4d151ebf6c95150b19585
@@ -18,7 +18,7 @@
// When set to 1, ASIFormDataRequests will print information about the request body to the console
#ifndef DEBUG_FORM_DATA_REQUEST
- #define DEBUG_FORM_DATA_REQUEST 0
+ #define DEBUG_FORM_DATA_REQUEST 1
#endif
// When set to 1, ASIHTTPRequests will print information about bandwidth throttling to the console
View
@@ -99,7 +99,7 @@ - (void)registerFinished:(ASIHTTPRequest *)request {
}
} else {
- [self saveMemberData:object];
+ [self saveMemberData:[responseData JSONValue]];
[self onSuccessfulLogin];
}
//[[NSUserDefaults standardUserDefaults] setObject:facebook.accessToken forKey:@"gawk_username"];
@@ -123,6 +123,7 @@ -(void)saveMemberData:(NSDictionary *)jsonResponse {
[[NSUserDefaults standardUserDefaults] setObject:[memberData objectForKey:@"facebookId"] forKey:GAWK_FACEBOOK_USER_ID];
[[NSUserDefaults standardUserDefaults] setObject:[memberData objectForKey:@"token"] forKey:@"gawk_token"];
[[NSUserDefaults standardUserDefaults] setObject:[memberData objectForKey:@"secureId"] forKey:@"gawk_secure_id"];
+ NSLog(@"%@", jsonResponse);
[[NSUserDefaults standardUserDefaults] synchronize];
}
@@ -173,7 +174,7 @@ - (void)loginFinished:(ASIHTTPRequest *)request {
}
} else {
- [self saveMemberData:object];
+ [self saveMemberData:[responseData JSONValue]];
[self onSuccessfulLogin];
}
//[[NSUserDefaults standardUserDefaults] setObject:facebook.accessToken forKey:@"gawk_username"];
View
@@ -12,15 +12,15 @@
@interface WallCell : UITableViewCell {
BOOL useDarkBackground;
- UIImage *icon;
- NSString *wall;
- NSString *date;
+ NSString *name;
+ NSString *creator;
+ NSString *description;
}
@property BOOL useDarkBackground;
-@property(retain) UIImage *icon;
-@property(retain) NSString *wall;
-@property(retain) NSString *date;
+@property(retain) NSString *name;
+@property(retain) NSString *creator;
+@property(retain) NSString *description;
@end
@@ -11,7 +11,7 @@
@implementation WallCell
-@synthesize icon, wall, date, useDarkBackground;
+@synthesize useDarkBackground, name, creator, description;
- (void)setUseDarkBackground:(BOOL)flag {
if (flag != useDarkBackground || !self.backgroundView)
@@ -27,9 +27,7 @@ - (void)setUseDarkBackground:(BOOL)flag {
}
- (void)dealloc
-{
- [icon release];
-
+{
[super dealloc];
}
Oops, something went wrong.

0 comments on commit 93f3e6c

Please sign in to comment.