T teguh123 macrumors member Original poster Mar 22, 2011 62 0 Mar 31, 2011 #1 Does objective C has collection class? Is it NSArray? Is there a way to split string by some character, say * and get an array? I want to be able to "sort" that collection. Perhaps by using some form of lambda expression.
Does objective C has collection class? Is it NSArray? Is there a way to split string by some character, say * and get an array? I want to be able to "sort" that collection. Perhaps by using some form of lambda expression.
A admanimal macrumors 68040 Apr 22, 2005 3,531 2 Mar 31, 2011 #2 Since you are asking about an operation on a string, I suggest you look at the documentation for NSString.
Since you are asking about an operation on a string, I suggest you look at the documentation for NSString.
chown33 Moderator Staff member Aug 9, 2009 11,462 9,711 A sea of green Mar 31, 2011 #3 teguh123 said: Does objective C has collection class? Is it NSArray? Is there a way to split string by some character, say * and get an array? I want to be able to "sort" that collection. Perhaps by using some form of lambda expression. Click to expand... This is the third time I've posted this information, in replies to your questions. See this reply on your other thread: https://forums.macrumors.com/showthread.php?p=12261166&#post12261166 The Collections Programming Topics link has as its first section "Arrays: Ordered Collections". That has a sub-section "Sorting Arrays". http://developer.apple.com/library/...ys.html#//apple_ref/doc/uid/20000132-BBCCJBIF I suggest you read the entire Collections Programmings Topics document, and then look at the second link, which lists all the classes in the Foundation framework.
teguh123 said: Does objective C has collection class? Is it NSArray? Is there a way to split string by some character, say * and get an array? I want to be able to "sort" that collection. Perhaps by using some form of lambda expression. Click to expand... This is the third time I've posted this information, in replies to your questions. See this reply on your other thread: https://forums.macrumors.com/showthread.php?p=12261166&#post12261166 The Collections Programming Topics link has as its first section "Arrays: Ordered Collections". That has a sub-section "Sorting Arrays". http://developer.apple.com/library/...ys.html#//apple_ref/doc/uid/20000132-BBCCJBIF I suggest you read the entire Collections Programmings Topics document, and then look at the second link, which lists all the classes in the Foundation framework.
PhoneyDeveloper macrumors 68040 Sep 2, 2008 3,114 93 Mar 31, 2011 #4 Yes, all those things are do-able. Look at these guides: Collections Programming Topics Guide String Programming Guide for Core Foundation Sort Descriptor Programming Topics
Yes, all those things are do-able. Look at these guides: Collections Programming Topics Guide String Programming Guide for Core Foundation Sort Descriptor Programming Topics
chown33 Moderator Staff member Aug 9, 2009 11,462 9,711 A sea of green Mar 31, 2011 #5 PhoneyDeveloper said: Yes, all those things are do-able. Look at these guides: Collections Programming Topics Guide String Programming Guide for Core Foundation Sort Descriptor Programming Topics Click to expand... To those three, I would also add this: Cocoa Naming Conventions: http://developer.apple.com/library/...eptual/CodingGuidelines/CodingGuidelines.html
PhoneyDeveloper said: Yes, all those things are do-able. Look at these guides: Collections Programming Topics Guide String Programming Guide for Core Foundation Sort Descriptor Programming Topics Click to expand... To those three, I would also add this: Cocoa Naming Conventions: http://developer.apple.com/library/...eptual/CodingGuidelines/CodingGuidelines.html