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 6977301
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T17:36:31+00:00 2026-05-27T17:36:31+00:00

By the question I off course don’t mean why the hell they did not

  • 0

By the question I off course don’t mean “why the hell they did not make garbage collection available for cocoa touch too”.Rather, I want to understand how it happens that Cocoa Touch does not have GC while Objective-C does since the release of 2.0. Doesn’t this depend on the language alone?

  • 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-05-27T17:36:32+00:00Added an answer on May 27, 2026 at 5:36 pm

    You aren’t really asking why Garbage Collection isn’t available on iOS. Rather, you are asking how garbage collection can sometimes be available in a language and sometimes not.

    On one level, the answer is simple. Apple simply didn’t include the garbage collected code in the runtime for iOS. Basically, there is code that runs on the Mac that implements the garbage collection. This code is “missing” on iOS. The compiler itself is probably somewhat different, but that’s just a matter of having code in the compiler that says: if(COMPILING_TO_GC) Basically, Apple does it by compiling differently and providing a different runtime.

    On a more philosophical level, are these really the same language? You can argue that Objective-C for iOS is not the same language as Objective-C for Mac. The lack of garbage collection on iOS makes the semantics of the language significantly different. So you could view it as two different languages which look very similar but have subtley different semantics.

    On a practical level, the differences between the languages are alleviated with the introduction of Automatic Reference Counting (ARC). This does the memory management automatically using reference counting. The effect is that iOS has a weak form of garbage collection. As a result, the semantics differ even more subtley.

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

Sidebar

Related Questions

First off, this question is ripped out from this question. I did it because
I hope this question does not come off as broad as it may seem
The short question, is there an off the self function to make a graph
This question builds off of a previously asked question: Pass by reference multidimensional array
So, my second question based off of this application I'm teaching myself Objective C
Probably a bit off topic question, but it's something I'm really interested in getting
I started off by drafting a question: What is the best way to perform
First off, let me preface this question by stating that I'm really a pretty
Here is the question: Can TortoiseSvn work on Windows 2008 without turning off User
First off - hello, this is my first Stack Overflow question so I'll try

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.