<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>toyship</author_name>
  <author_url>https://blog.hatena.ne.jp/toyship/</author_url>
  <blog_title>Toyship.org</blog_title>
  <blog_url>https://www.toyship.org/</blog_url>
  <categories>
  </categories>
  <description>いつも自分で書くコードはすっかりSwiftですが、システムライブラリはまだまだObjective-Cのこともあります。 ObjCのライブラリが返してくれる CFString をSwiftの String にするメモ。 基本的には、CFString はそのままConvertできます。 var str1: CFString = &quot;Hello!&quot; as CFString var str2: String = str1 as String ただ、Unmanaged でかえされた場合には takeRetainedValue を使いましょう。 var propertyStr: Unmanaged&lt;CFSt…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.toyship.org%2F2021%2F08%2F28%2F144659&quot; title=&quot;UnManaged な CFString - Toyship.org&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-08-28 14:46:59</published>
  <title>UnManaged な CFString</title>
  <type>rich</type>
  <url>https://www.toyship.org/2021/08/28/144659</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
