diff options
| author | Levi Bostian <levi.bostian@banno.com> | 2013-11-25 09:42:37 -0600 | 
|---|---|---|
| committer | Levi Bostian <levi.bostian@banno.com> | 2013-11-25 09:42:37 -0600 | 
| commit | af6701904b459b16cf65709cd8c70fd2f5519457 (patch) | |
| tree | 68cb4bf9ead32686f492e68528e9f0761e41c500 /objective-c.html.markdown | |
| parent | df3cc00f5233dac96c0e063d87d3552f493e25f6 (diff) | |
| parent | d24c824d388669181eed99c3e94bb25c2914304a (diff) | |
Fix conflict bash.
Diffstat (limited to 'objective-c.html.markdown')
| -rw-r--r-- | objective-c.html.markdown | 12 | 
1 files changed, 6 insertions, 6 deletions
| diff --git a/objective-c.html.markdown b/objective-c.html.markdown index 9e9f43e7..1ed0ed58 100644 --- a/objective-c.html.markdown +++ b/objective-c.html.markdown @@ -80,7 +80,7 @@ int main (int argc, const char * argv[])      NSLog(@"%f", piFloat);      NSNumber *piDoubleNumber = @3.1415926535; -    piDouble                 = [piDoubleNumber doubleValue]; +    double piDouble                 = [piDoubleNumber doubleValue];      NSLog(@"%f", piDouble);      // BOOL literals @@ -160,7 +160,7 @@ int main (int argc, const char * argv[])      int jj;      for (jj=0; jj < 4; jj++)      { -        NSLog(@"%d,", jj++); +        NSLog(@"%d,", jj);      } // => prints "0,"         //           "1,"        //           "2," @@ -223,7 +223,7 @@ int main (int argc, const char * argv[])  // }  // -/+ (type) Method declarations;  // @end -@interface MyClass : NSObject <MyCustomProtocol> +@interface MyClass : NSObject <MyProtocol>  {      int count;      id data; @@ -241,14 +241,14 @@ int main (int argc, const char * argv[])  + (NSString *)classMethod;  // - for instance method -- (NSString *)instanceMethodWithParmeter:(NSString *)string; +- (NSString *)instanceMethodWithParameter:(NSString *)string;  - (NSNumber *)methodAParameterAsString:(NSString*)string andAParameterAsNumber:(NSNumber *)number;  @end  // Implement the methods in an implementation (MyClass.m) file: -@implementation UserObject +@implementation MyClass  // Call when the object is releasing  - (void)dealloc @@ -271,7 +271,7 @@ int main (int argc, const char * argv[])      return [[self alloc] init];  } -- (NSString *)instanceMethodWithParmeter:(NSString *)string +- (NSString *)instanceMethodWithParameter:(NSString *)string  {      return @"New string";  } | 
