Toll-Free Bridging 对象桥接(Xcode文档翻译)(二)

2015-07-20 18:01:28 · 作者: · 浏览: 12
Ref NSError OS X v10.5

CFLocaleRef NSLocale OS X v10.4

CFMutableArrayRef NSMutableArray OS X v10.0

CFMutableAttributedStringRef NSMutableAttributedStringOS X v10.4

CFMutableCharacterSetRefNSMutableCharacterSet OS X v10.0

CFMutableDataRef NSMutableData OS X v10.0

CFMutableDictionaryRef NSMutableDictionary OS X v10.0

CFMutableSetRef NSMutableSet OS X v10.0

CFMutableStringRef NSMutableString OS X v10.0

CFNumberRef NSNumber OS X v10.0

CFReadStreamRef NSInputStream OS X v10.0

CFRunLoopTimerRef NSTimer OS X v10.0

CFSetRef NSSet OS X v10.0

CFStringRef NSString OS X v10.0

CFTimeZoneRef NSTimeZone OS X v10.0

CFURLRef NSURL OS X v10.0

CFWriteStreamRef NSOutputStream OS X v10.0

?

Note: Not all data types are toll-free bridged, even though their names might suggest that they are. For example,NSRunLoop is not toll-free bridged to CFRunLoop,NSBundle is not toll-free bridged to CFBundle, andNSDateFormatter is not toll-free bridged to CFDateFormatter.

?

注意:并不是所有的类型都是对象桥接,尽管其名称让它们看上去很像。例如,NSRunLoop和CFRunLoop不能对象桥接,NSBundle和CFBundle不能对象桥接,NSDateFormatter和CFDateFormatter不能对象桥接等。

?

Copyright ? 2012 Apple Inc. All Rights Reserved.Terms of Use | Privacy Policy | Updated: 2012-01-09