It’s interesting which foundation calls are built in and which are not. (This may change with beta iteration)
// Playing with Foundation objects
import UIKit
import Foundation
var str = NSHomeDirectory()
str.pathComponents
var array : AnyObject[] = []
array += 5
array += “hello”
// This doesn’t work
//array.indexOfObject(5) // nope
// These all work
(arrayasNSArray)
(arrayasNSArray).indexOfObject(“hello”)
(arrayasNSArray).indexOfObject(5)
array.count
Comments are closed.