fix conversion between NSRect and CGRect
Merge branch 'fix_error_in_xcode5.1' into new_launch