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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T14:11:15+00:00 2026-06-04T14:11:15+00:00

Noticing how badly implemented is reference counting in current Objective-C (see here and here

  • 0

Noticing how badly implemented is reference counting in current Objective-C (see here and here), i’m sure there must be a library out there providing something similar to c++ shared_ptr and weak_ptr semantics without all those ridiculous extra calls to retain and release that should be called automatically when (pointer) variables go out of scope

Is this possible on ObjC? I know that ObjC does not have destructors so there is no way to have something called automatically when variables go out of scope, but how can these retain/release calls be really necessary? am i going around this in the wrong way?

  • 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-04T14:11:16+00:00Added an answer on June 4, 2026 at 2:11 pm

    That is taken care of by ARC. Other than ARC, no there really isn’t a good way of doing it. In C++, you have stack objects and you can overload assignment (=) and deference (->). Both are required for shared pointers. Niether can be done in objective C.

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

Sidebar

Related Questions

I'm noticing some strange results with date conversions between MYSQL and PHP. Please see
I am noticing some weird behavior in my script, not sure why its occurring
I've been noticing superfluous changes in my xib files with Interface Builder 3.2.1. Here
I'm noticing that there are double icons for an application I recently built. Is
I'm going through MSIL and noticing there are a lot of nop instructions in
I'm noticing that StrictMode is complaining quite loudly about WebView creation. Is there any
In my application I am noticing that there are may things that don't seem
I am constantly noticing that I have files checked out for editing that I
I'm noticing the tracking pending intents that I send out via the standard SmsManager
I'm just noticing that on my laptop (Dell XPS 15z) there's no BREAK key

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.