summaryrefslogtreecommitdiffhomepage
path: root/objective-c.html.markdown
diff options
context:
space:
mode:
Diffstat (limited to 'objective-c.html.markdown')
-rw-r--r--objective-c.html.markdown4
1 files changed, 4 insertions, 0 deletions
diff --git a/objective-c.html.markdown b/objective-c.html.markdown
index 419c0475..98019404 100644
--- a/objective-c.html.markdown
+++ b/objective-c.html.markdown
@@ -146,6 +146,10 @@ int main (int argc, const char * argv[])
[mutableSet addObject:@"Hello"];
NSLog(@"%@", mutableSet); // prints => {(Hello)}
+ // Set object
+ NSSet *set = [NSSet setWithObjects:@"Hello", @"Hello", @"World", nil];
+ NSLog(@"%@", set); // prints => {(Hello, World)}
+
///////////////////////////////////////
// Operators
///////////////////////////////////////