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 <jake.petrou...@petroules.com>
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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to