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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T16:04:23+00:00 2026-05-26T16:04:23+00:00

I have been working my way through several books on X-code, the Apple document

  • 0

I have been working my way through several books on X-code, the Apple document files, and YouTube Tutorials. I notice, though, that some authors (i.e. some books) put @property statements for all their IBOutlets — imageviews, labels, and buttons, while in other books, the objects listed in the header are not “propertied” and synthesized in the .m.

I know it has something to do with setters and getters and accessors, but would someone mind clarifying for me (without those words, if possible) when you use @property and when you don’t? Sorry for asking what seems to be a dumb question, but I haven’t yet got an intuitive grasp of what’s really happening.

Thanks.

-Rob

  • 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-26T16:04:24+00:00Added an answer on May 26, 2026 at 4:04 pm

    Whenever you need to modify something like a UIButton or anything that needs you to use a pointer to access it, you use the @property. All this does is create ‘Getter and Setter’ methods. If you’ve programmed in another language you probably understand what those are, but if you don’t, it’s hard to explain. If you want to understand better why the @property exists, I’d learn some c++. But below is an explanation in Objective C terms of what it is

    The @property is an Objective-C directive which declares the property. The “retain” in the parenthesis specifies that the setter should retain the input value, and the rest of the line simply specifies the type and the name of the property.

      #import "Photo.h"      
        @implementation Photo
    
        @synthesize caption;
        @synthesize photographer;
    
        - (void) dealloc
        {
            ;
            [photographer release];
            [super dealloc];
        }
    
        @end
    

    The @synthesize directive automatically generates the setters and getters for us, so all we have to implement for this class is the dealloc method.

    Great website that I got this information from, and has much more: http://cocoadevcentral.com/d/learn_objectivec/

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

Sidebar

Related Questions

I have been working my way through Scott Guthrie's excellent post on ASP.NET MVC
I'm starting out with wxPython and have been working my way through every tutorial
I'm new to Ruby, and have been working my way through Mr Neighborly's Humble
I am relatively new to rails and have been working my way through the
I have been working on some legacy C++ code that uses variable length structures
I am new to python and have been working through the examples in Swaroop
I've been slowly working my way through the list of Project Euler problems, and
I am working in android SDK(Eclipse) platform 2.2 and I have been running through
I've been slowly working my way through the examples in Beginning iPhone Development and
I'm really new at this. I've been working my way through a couple of

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.