init cocoa class

add loader for mac os and iOS.but not finished the codes.