title: How to pass parameter of type UnsafeMutablePointer<UnsafePointer<Void>>
body: <p>I have to use <code>CFDictionaryCreate</code> method in Swift(<a href="https://developer.apple.com/library/mac/documentation/CoreFoundation/Reference/CFDictionaryRef/index.html#//apple_ref/c/func/CFDictionaryCreate" rel="nofollow">documentation link</a>).</p>
  
  <p>I am having a hard time to initialize the input parameters correctly in order to pass parameters(keys and values) of type <code>UnsafeMutablePointer&lt;UnsafePointer&lt;Void&gt;&gt;</code>.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>    var font_name: CFStringRef! = CFStringCreateWithCString(nil, "Courier", kCFStringEncodingASCII)
      var font: CTFontRef! = CTFontCreateWithName(font_name, 25.0, nil)
      var keys: [UnsafePointer&lt;Void&gt;] = ???? // how to intialize with "kCTFontAttributeName"
      var values: [UnsafePointer&lt;Void&gt;] = ???? // how to intialize with "font" variable
      var keyCallBacks = kCFTypeDictionaryKeyCallBacks
      var valueCallBacks = kCFTypeDictionaryValueCallBacks
      var font_attributes: CFDictionaryRef! = CFDictionaryCreate(kCFAllocatorDefault,   &amp;keys, &amp;values, sizeofValue(keys), &amp;keyCallBacks, &amp;valueCallBacks)
      var attr_string: CFAttributedStringRef! = CFAttributedStringCreate(nil, "hello", font_attributes)
  </code></pre>