• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: 'Bool' is not convertible to 'BooleanLiteralConvertible'
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 'Bool' is not convertible to 'BooleanLiteralConvertible'


  • Subject: Re: 'Bool' is not convertible to 'BooleanLiteralConvertible'
  • From: Marco S Hyman <email@hidden>
  • Date: Mon, 27 Jul 2015 15:18:27 -0700

On Jul 27, 2015, at 3:06 PM, Quincey Morris <email@hidden> 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 : true ]


or
	let d1 = [ String(kSecReturnData) : true ]

if you can/want to use a String type.

Marc
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


References: 
 >'Bool' is not convertible to 'BooleanLiteralConvertible' (From: Rick Mann <email@hidden>)
 >Re: 'Bool' is not convertible to 'BooleanLiteralConvertible' (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: 'Bool' is not convertible to 'BooleanLiteralConvertible'
  • Next by Date: Codesigning issues
  • Previous by thread: Re: 'Bool' is not convertible to 'BooleanLiteralConvertible'
  • Next by thread: Codesigning issues
  • Index(es):
    • Date
    • Thread