| MakeArray from string |
|
|
|
| Written by Coffeelove |
| Wednesday, 16 June 2010 07:49 |
|
A short post for you all today as we're still moving in to our new house & unpacking. I figured out this bit of Objective-C code and thought I'd share with the rest of you. This bit of code does exactly what it says in the name. MakeArray, FromString. Pretty simple, you pass it the ID of an object that has a String Value and it returns the Array created from the string you gave it. I've named the variables in the function for ease of use and readability. First off is the Class Interface portion, which thanks to ObjC is obscenely short & sweet.
And for the Class Implementation:
|






