complete porting objective-c.
complete porting to objective-c.