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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T20:21:25+00:00 2026-05-20T20:21:25+00:00

I have been developing for iPhone from last 1-2 months and all the time

  • 0

I have been developing for iPhone from last 1-2 months and all the time for taking IBOutlet I use the following method to declare any property:

In .h files:

@interface ....
{
     controlType varName;
}

@property() IBOutlet controlType varName;

In .m files:

at top –

@synthesize varName;

in delloc method - [varName release];

Although the method is good but it isn’t very good when its taking a couple of minutes just for declaring property.

Is there any automatic process for declaring properties, IBOutlets, IBActions or basic data variables.

I hope there should be some automatic methods for this scenario as this is a very basic process.

Thanks all.

  • 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-20T20:21:26+00:00Added an answer on May 20, 2026 at 8:21 pm

    In fact, yes!

    You no longer need to declare the actual iVar.

    In short, simply leave out this part: controlType varName;

    For now, you do still need to explicitly “synthesize”.

    (As far as I can see, they could possibly automate that in the future. But for now you have to “synthesize” to create the setter and getter.)

    You do still have to release the memory – there’s really no way that could be automated, as memory handling is “real he-man programming.”

    For any new chums reading, don’t forget the “self.” part when using the property.

    Plus note that XCode4 even has a new automatic thingy. Simply drag from the interface builder, to your .h file, and it will do everything for you — try it!


    In answer to your suplementary question: An IBOutlet DOES NOT PARTICULARLY NEED TO BE a property – you can just use a normal cheap iVar. On the other hand, if you wish, to you can use a property. Furthermore: you can even use the new trick (2011) of not bothering to declare the ivar, just use the property declaration, and shove an IBOutlet in there!

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

Sidebar

Related Questions

I have been developing with Java for several years and last six months I
I've been developing an iPhone app for the last few months. Recently I wanted
I have been developing on the iPhone with Objective-C for a few months now
People have been developing own solutions to the following problems: Consistent messaging frameworks for
I have been developing a C# windows form application in XP. It all works
I have been developing an iphone application using a domain model, and have put
I have been developing an iPhone app which queries a server that relays data
I have been developing websites for a couple of years now and I almost
I have been developing in asp.net since its existence (also classic asp before that)
Up till now I have been developing my personal and school projects at home

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.