Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

teguh123

macrumors member
Original poster
Mar 22, 2011
62
0
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.
 
Since you are asking about an operation on a string, I suggest you look at the documentation for NSString.
 
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.

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.
 
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
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.