On Jul 27, 2015, at 3:06 PM, Quincey Morris
wrote:
> The problem is that kSecReturnData is a CFString, which is not a type that’s
> bridged automatically in the construction of a dictionary. The following
> works for me in a playground (b4):
>
> let d1 = [ kSecReturnData as NSString : t
On Jul 27, 2015, at 15:08 , Rick Mann wrote:
>
> Is it bridged automatically anywhere else? Seems like a lot of ad-hoc and
> inconsistent support for bridging.
I dunno, really. Support for CF things (and C things and unmanaged pointers)
seems to vary release by release, so I don’t try to keep
> On Jul 27, 2015, at 15:06 , Quincey Morris
> wrote:
>
> CFString, which is not a type that’s bridged automatically in the
> construction of a dictionary
Interesting. Is it bridged automatically anywhere else? Seems like a lot of
ad-hoc and inconsistent support for bridging.
--
Rick Mann
On Jul 27, 2015, at 14:57 , Rick Mann wrote:
>
> error: 'Bool' is not convertible to 'BooleanLiteralConvertible'
>let d1 = [ kSecReturnData : true ]
>^~~~
> error: '_' is not convertible to 'CFString'
>
l' is not convertible to 'BooleanLiteralConvertible'
let d1 = [ kSecReturnData : true ]
^~~~
error: '_' is not convertible to 'CFString'
let d2 = [ kSecReturnData : Bool(booleanLiteral: true) ]
^~~