• 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:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re:


  • Subject: Re:
  • From: Aandi Inston <email@hidden>
  • Date: Tue, 19 Jan 2016 18:11:58 +0000

Thank you. The problem turned out to be a foolish mistake in the caller,
but this has alerted me to the need for a systematic check of the
conversion between BOOL and C integers.

On 19 January 2016 at 17:15, Jake Petroules <email@hidden>
wrote:

Note that BOOL is a typedef for signed char in the legacy (32-bit OS X)
> runtime, and a typedef for bool in the modern (64-bit OS X, iOS, tvOS,
> watchOS) runtime. You should use `return !!ok` or `return ok != NO` to
> force boolean coercion.
>
_______________________________________________

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


  • Follow-Ups:
    • Re:
      • From: Jens Alfke <email@hidden>
References: 
 >[no subject] (From: Aandi Inston <email@hidden>)
 >Re: (From: Jake Petroules <email@hidden>)

  • Prev by Date: Re:
  • Next by Date: Re:
  • Previous by thread: Re:
  • Next by thread: Re:
  • Index(es):
    • Date
    • Thread