Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8060119
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T09:53:18+00:00 2026-06-05T09:53:18+00:00

In objective-c, using ARC, when do BOOL (or int) properties get deleted? For example,

  • 0

In objective-c, using ARC, when do BOOL (or int) properties get deleted?
For example, suppose I have

@property (nonatomic) BOOL happy;  //Suppose this is a property of class Face

In this case when does the happy property get deleted? I ask this because there is no specifier such as strong or weak. In fact, Xcode will not even let you declare this property as strong or weak?

My guess is that it has something to do with BOOLs being stored on the stack and regular, object properties being stored in the heap, but this is just a guess.

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T09:53:20+00:00Added an answer on June 5, 2026 at 9:53 am

    if the BOOL is part of your class, it gets deleted when the class gets released by the autorelease pool. Otherwise, any primitives on the stack goes away when the variable goes out of scope. There’s no need to memory manage primitive types, unless you explicitly have pointers to them.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an objective-C program and I am using ARC (Automatic Reference Counting), it
I want to bring a single Objective-C class written using ARC into an old
I am using Objective-C in my app and I have a question about multiple
I have been using objective-C to develop in iOS. Now we want to develop
I'm developing an iOS5 App using ARC, and I started to get some random
Im working on an ios app using objective c and i have an issue
I'm writing an Objective-C application using ARC and it's definitely a great improvement even
I am new to iOS5 development and using objective-c. I have trouble understanding the
I am using Objective-C and trying to create int values that are between 1-99
I'm using Objective-C properties to handle retaining/releasing instance variables for me. In my class,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.