generated from seanpm2001/Template_Other_V7
-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added the Objective-C support directory (4 files)
Added the Objective-C support directory, containing 4 files in Objective-C format.
- Loading branch information
1 parent
3b1ebc3
commit b7a6ebb
Showing
4 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
Learn-Objective-C/Objective-C/Comments/Comments_InObjective-C.m
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 file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// This is a single line comment | ||
/* This is | ||
a multi-li | ||
ne comment | ||
*/ |
5 changes: 5 additions & 0 deletions
5
Learn-Objective-C/Objective-C/Comments/Comments_InObjective-C_V1.m
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 file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// This is a single line comment | ||
/* This is | ||
a multi-li | ||
ne comment | ||
*/ |
20 changes: 20 additions & 0 deletions
20
Learn-Objective-C/Objective-C/HelloWorld/HelloWorld_InObjective-C.m
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 file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#import <Foundation/Foundation.h> | ||
|
||
@interface SampleClass:NSObject | ||
- (void)sampleMethod; | ||
@end | ||
|
||
@implementation SampleClass | ||
|
||
- (void)sampleMethod { | ||
NSLog(@"Hello, World! \n"); | ||
} | ||
|
||
@end | ||
|
||
int main() { | ||
/* my first program in Objective-C */ | ||
SampleClass *sampleClass = [[SampleClass alloc]init]; | ||
[sampleClass sampleMethod]; | ||
return 0; | ||
} |
20 changes: 20 additions & 0 deletions
20
Learn-Objective-C/Objective-C/HelloWorld/HelloWorld_InObjective-C_V1.m
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 file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#import <Foundation/Foundation.h> | ||
|
||
@interface SampleClass:NSObject | ||
- (void)sampleMethod; | ||
@end | ||
|
||
@implementation SampleClass | ||
|
||
- (void)sampleMethod { | ||
NSLog(@"Hello, World! \n"); | ||
} | ||
|
||
@end | ||
|
||
int main() { | ||
/* my first program in Objective-C */ | ||
SampleClass *sampleClass = [[SampleClass alloc]init]; | ||
[sampleClass sampleMethod]; | ||
return 0; | ||
} |