summaryrefslogtreecommitdiffhomepage
path: root/objective-c.html.markdown
diff options
context:
space:
mode:
authorYannick <yannick.loriot@gmail.com>2014-01-11 19:27:47 +0100
committerYannick <yannick.loriot@gmail.com>2014-01-11 19:30:47 +0100
commit01e3455d90e7e542d0b38c9e46865a06ea018237 (patch)
treead26ec7ed91be9e9aca7710fceef9a08c5132f65 /objective-c.html.markdown
parent7930b092c28a48c36eeac8b50f85fa3a21598203 (diff)
[UPDATE] Import Details
Diffstat (limited to 'objective-c.html.markdown')
-rw-r--r--objective-c.html.markdown8
1 files changed, 7 insertions, 1 deletions
diff --git a/objective-c.html.markdown b/objective-c.html.markdown
index f2787649..3390c69b 100644
--- a/objective-c.html.markdown
+++ b/objective-c.html.markdown
@@ -12,7 +12,7 @@ filename: LearnObjectiveC.m
Objective-C is the main programming language used by Apple for the OS X and iOS operating systems and their respective frameworks, Cocoa and Cocoa Touch.
It is a general-purpose, object-oriented programming language that adds Smalltalk-style messaging to the C programming language.
-```cpp
+```objective-c
// Single-line comments start with //
/*
@@ -20,9 +20,15 @@ Multi-line comments look like this.
*/
// Imports the Foundation headers with #import
+// Use <> to import global files (in general frameworks)
+// Use "" to import local files (from project)
#import <Foundation/Foundation.h>
#import "MyClass.h"
+// If you enable modules for iOS >= 7.0 or OS X >= 10.9 projects in
+// Xcode 5 you can import frameworks like that:
+@import Foundation;
+
// Your program's entry point is a function called
// main with an integer return type.
int main (int argc, const char * argv[])