This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Stranger> can you love me? | |
<You> Top of the day to you. It is a pleasure to chat. | |
<Stranger> maybe | |
<Stranger> we will see | |
<You> How confusing | |
<Stranger> Entertain me | |
<You> What will you do in return? | |
<Stranger> love you | |
<You> Define love> | |
<You> How do I know that your "love" is what I want? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// - since {{{ | |
- (NSString *)since | |
{ | |
// seed the test data. (in future passed in via a class instance variable) | |
NSString *dateStr = @"Mon May 05 17:26:30 +0000 2008"; | |
// create our fommating object | |
NSDateFormatter *dateFormat = [[[NSDateFormatter alloc] init] autorelease]; | |
[dateFormat setDateFormat:@"EEE MMM dd HH:mm:ss Z yyyy"]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <Foundation/Foundation.h> | |
@interface SomeObject : NSObject { | |
NSString *errorString; | |
NSArray *testArray; | |
} | |
@property (nonatomic, readonly) NSString *errorString; | |
@property (nonatomic, readonly) NSArray *testArray; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Expose the internal data store. (Easiest but seems error prone) | |
@interface UserListModalExposeData : NSObject { | |
NSMutableArray *userList; | |
} | |
@property (nonatomic, retain) NSMutableArray *userList; | |
- (void) someAdditionalMethod; | |
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Original code: | |
NSNumber *object = [[NSNumber alloc] init]; | |
for(int i=0; i<[array count]; i++) { | |
NSLog(@"Value of number loaded %@", [array objectAtIndex:i]); | |
object = [array objectAtIndex:i]; | |
} | |
*/ | |
#import <Foundation/Foundation.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <Foundation/Foundation.h> | |
void checkIfFileExist(NSString *path) | |
{ | |
NSFileManager *fileManager = [NSFileManager defaultManager]; | |
if ( [fileManager fileExistsAtPath:path] ) | |
NSLog(@"File exists!"); | |
else | |
NSLog(@"File is missing!!!!"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <Foundation/Foundation.h> | |
@interface Person : NSObject { | |
NSString *screenName; | |
NSString *realName; | |
NSURL *imageURL; | |
} | |
@property (nonatomic, retain) NSString *screenName; | |
@property (nonatomic, retain) NSString *realName; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// ImageLoadingOp.h | |
// PersonList | |
// | |
// Created by Marcio Valenzuela on 10/20/09. | |
// Copyright 2009 Personal. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> | |
#import <UIKit/UIKit.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// MyView.h | |
#import <UIKit/UIKit.h> | |
#import "Person.h" | |
@interface MyView : UIView { | |
Person *myPerson; | |
} | |
// Setup a property so we can programatically set the data for this view |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SimpleController.h | |
#import <Foundation/Foundation.h> | |
#import "Polygon.h" | |
@interface SimpleController : NSObject { | |
Polygon *myPolyObject; | |
} | |
- (void)testPassingVarToViewObject; | |
- (void)testAnotherWayPassingVarToViewObject; |
OlderNewer