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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T10:21:33+00:00 2026-05-19T10:21:33+00:00

A requirement of A.B is that A must declare @synthesize before using the setter

  • 0

A requirement of A.B is that A must declare @synthesize before using the setter or getter
but A->B doesn’t require this.

I don’t understand which is better and what one uses the least amount of memory?

If I convert from A.B to A->B will it use less memory or the same amount?
A->B uses less memory because you don’t need to declare @synthesize, right?

  • 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-19T10:21:34+00:00Added an answer on May 19, 2026 at 10:21 am

    If a is an Objective-C object then a.b = c; is the same as to write [a setB:c];.

    setB: in this case is a default name for automatic generated setter method when you are specifying @property (...) typeB b; and @synthesize b. Instead of ... you can place corresponding memory specifier, as retain, assign, copy.
    By writing a->b = c you avoid using setter method, and access b directly.

    So, construction a->b generates less extra-code but breaks one of the major OOP notion of “Encapsulation” and you also should handle memory related staff manually.

    For example if you’ve specified retain in b‘s @property, then construction a.b = c will behave almost in the same fashion as a->b = [c retain].

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

Sidebar

Related Questions

I have this requirement that states that I must have a function signature as
I've got a requirement that I believe must occur very frequently around the world.
I think this question is quite common. Recently I have got a requirement that
I'm building an Eclipse Feature that has a requirement that amounts to this... The
I need to validate passwords in Ruby, with the requirement that they must contain
I have a requirement for a service. The requirement states that I must get
I'm working in Java. I have the requirement that I must essentially compare two
Using SQL Server 2008, I have a requirement that email addresses in my user
I have this requirement where I must print a receipt from a Web Application.
We're developing several widgets, and have a requirement that we must support keyboard navigation

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.