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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T01:12:01+00:00 2026-05-24T01:12:01+00:00

i have a simple question : if we don’t use here the dataController property

  • 0

i have a simple question :
if we don’t use here the dataController property in another class in the project, we don’t really need to use the “@property” and synthesize and we could have just done a simple “=” operation with dataController = controller, like in the second chunk of code? :

DataController *controller = [[DataController alloc] init];  
self.dataController = controller;  
[controller release];  
rootViewController.dataController = dataController;  

Second one :

DataController *controller = [[DataController alloc] init];   
dataController = controller;  

So if we don’t need a property outside the class, we could just do it this way?
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-05-24T01:12:02+00:00Added an answer on May 24, 2026 at 1:12 am

    You are correct, if dataController is a retaining property.

    If you are just using it once, there is not much to gain with a property. If you change its value often (i.e. assign a different DataController) then even a private property can make sense just to make the memory management easier.

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

Sidebar

Related Questions

very simple question here but I don't have the answer... ;-) I just need
I have a simple question. I use a singleton which implements an abstract class.
Simple question... How am I going to reproduce Javascript bugs if I don't have
Simple question here. I have a C# program which needs to stores some files
I have a simple question, but don't seem to see the answer in a
I have a simple question about Python: I have another Python script listening on
Simple question I believe for anyone with minimal php skills (which I don't have
I'm new to Java so I have a simple question that I don't know
Simple question, I just need a pointer in the right direction: I have a
all.I'm a beginner of Mysql and I have one simple question here. I want

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.