<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="" applecontenteditable="true"><div class="">The reasoning why is that some classes are designed as a has-a relationship instead of an is-a relationship. For example a NSRunLoop has a CFRunLoopRef but a NSString is a CFStringRef. This means that you cannot pass a NSRunLoop to a function that takes a CFRunLoopRef by design. Where-as any method that takes a CFStringRef can take a NSString.</div><div class=""><br class=""></div><div class="">The reasoning for this behavior is to match the behavior of the objective-c version of Foundation.</div><br class=""><div><blockquote type="cite" class=""><div class="">On Feb 21, 2017, at 10:20 AM, Nethra Ravindran via swift-corelibs-dev <<a href="mailto:swift-corelibs-dev@swift.org" class="">swift-corelibs-dev@swift.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">For example NSURLComponents is not CFBridgeable.<div class=""><br class=""></div><div class="">- Nethra Ravindran</div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Tue, Feb 21, 2017 at 3:01 PM, Alex Blewitt <span dir="ltr" class=""><<a href="mailto:alblue@apple.com" target="_blank" class="">alblue@apple.com</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class="">Do you have a couple of examples that you're referring to?<div class=""><br class=""></div><div class="">Alex</div><div class=""><br class=""><div class=""><blockquote type="cite" class=""><div class=""><div class="h5"><div class="">On 21 Feb 2017, at 09:25, Nethra Ravindran via swift-corelibs-dev <<a href="mailto:swift-corelibs-dev@swift.org" target="_blank" class="">swift-corelibs-dev@swift.org</a>> wrote:</div><br class="m_-8680338034392766105Apple-interchange-newline"></div></div><div class=""><div class=""><div class="h5"><div dir="ltr" class="">Hi everyone,<div class=""><br class=""></div><div class="">To be more precise, I would like to know why few classes are not CFBridgeable.</div><div class=""><br class=""></div><div class="">Thank you.</div><div class=""><br class=""></div><div class="">- Nethra Ravindran</div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Tue, Feb 21, 2017 at 2:20 PM, Nethra Ravindran <span dir="ltr" class=""><<a href="mailto:nethraravindran94@gmail.com" target="_blank" class="">nethraravindran94@gmail.com</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class=""><span style="font-family:helveticaneue;font-size:12px" class="">Hi,</span><div style="font-family:helveticaneue;font-size:12px" class=""><br class=""></div><div style="font-family:helveticaneue;font-size:12px" class="">I see that some classes are bridgeable and some are not. It would be great if someone can explain why few classes are not bridgeable.</div><div style="font-family:helveticaneue;font-size:12px" class=""><br class=""></div><div style="font-family:helveticaneue;font-size:12px" class="">Thank you!</div><span class="m_-8680338034392766105HOEnZb"><font color="#888888" class=""><div style="font-family:helveticaneue;font-size:12px" class=""><br class=""></div><div style="font-family:helveticaneue;font-size:12px" class="">- Nethra Ravindran</div></font></span></div>
</blockquote></div><br class=""></div></div></div>
______________________________<wbr class="">_________________<br class="">swift-corelibs-dev mailing list<br class=""><a href="mailto:swift-corelibs-dev@swift.org" target="_blank" class="">swift-corelibs-dev@swift.org</a><br class=""><a href="https://lists.swift.org/mailman/listinfo/swift-corelibs-dev" target="_blank" class="">https://lists.swift.org/<wbr class="">mailman/listinfo/swift-<wbr class="">corelibs-dev</a><br class=""></div></blockquote></div><br class=""></div></div></blockquote></div><br class=""></div>
_______________________________________________<br class="">swift-corelibs-dev mailing list<br class=""><a href="mailto:swift-corelibs-dev@swift.org" class="">swift-corelibs-dev@swift.org</a><br class="">https://lists.swift.org/mailman/listinfo/swift-corelibs-dev<br class=""></div></blockquote></div><br class=""></body></html>