<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/is-objective-c-bool-a-boolean-type-it-depends-4hsyynhuv" -->

---
title: Is Objective-C BOOL a boolean type? It depends | daily.dev
description: This article explores the Objective-C BOOL type and how it is defined on different Apple platforms. It discusses the differences in defining BOOL on Apple...
canonical: https://daily.dev/posts/is-objective-c-bool-a-boolean-type-it-depends-4hsyynhuv
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Is Objective-C BOOL a boolean type? It depends | daily.dev
og:description: This article explores the Objective-C BOOL type and how it is defined on different Apple platforms. It discusses the differences in defining BOOL on Apple...
og:url: https://daily.dev/posts/is-objective-c-bool-a-boolean-type-it-depends-4hsyynhuv
og:image: https://api.daily.dev/og/posts/4HsyYNhuv.png
og:image:alt: Is Objective-C BOOL a boolean type? It depends
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Is Objective-C BOOL a boolean type? It depends

**[Hacker News](https://daily.dev/sources/hn)** · 11 min read · 0 upvotes · 0 comments

## Summary

This article explores the Objective-C BOOL type and how it is defined on different Apple platforms. It discusses the differences in defining BOOL on Apple Silicon and Intel Macs and provides examples of unexpected behavior.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.jviotti.com/2024/01/05/is-objective-c-bool-a-boolean-type-it-depends.html>

---

Tags: [#general-programming](https://daily.dev/tags/general-programming), [#objective-c](https://daily.dev/tags/objective-c)

[View this post on daily.dev](https://daily.dev/posts/is-objective-c-bool-a-boolean-type-it-depends-4hsyynhuv)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Is Objective-C BOOL a boolean type? It depends","url":"https://daily.dev/posts/is-objective-c-bool-a-boolean-type-it-depends-4hsyynhuv","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/is-objective-c-bool-a-boolean-type-it-depends-4hsyynhuv"},"datePublished":"2024-01-10T18:20:19.673Z","dateModified":"2024-01-27T02:21:58.025Z","description":"This article explores the Objective-C BOOL type and how it is defined on different Apple platforms. It discusses the differences in defining BOOL on Apple...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/3b0b4312c27e30fdb7c70a14de403261?_a=AQAEufR","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/3b0b4312c27e30fdb7c70a14de403261?_a=AQAEufR","isAccessibleForFree":true,"articleSection":"Hacker News","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Hacker News","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/hn","url":"https://daily.dev/sources/hn"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/is-objective-c-bool-a-boolean-type-it-depends-4hsyynhuv","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"general-programming,objective-c","timeRequired":"PT11M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Hacker News","item":"https://daily.dev/sources/hn"},{"@type":"ListItem","position":3,"name":"Is Objective-C BOOL a boolean type? It depends"}]}
```

