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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T18:50:41+00:00 2026-05-14T18:50:41+00:00

This is a pretty noobish question – I’m looking at some Cocoa sample code

  • 0

This is a pretty noobish question – I’m looking at some Cocoa sample code and there’s @interface blocks in the .m files as well as the headers. For instance, in the AppDelegate class header, a UIWindow and UI navigation are defined as instance variables, but the @property declarations are actually made in the implementation file. Is there a functional reason for this, is it a stylistic choice, or… ?

  • 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-14T18:50:42+00:00Added an answer on May 14, 2026 at 6:50 pm

    If you just need e.g. some custom delegates to work with another class internally, there is no need to publicize the interface in the header.
    It just adds unneccessary noise and makes interfaces available that might not be designed for public use or are not useful outside of the class’ context.

    The same goes for the class’ methods and properties – if you want to use declared properties for your instance variables but don’t want them to be publicly accessible, you don’t neccessarily need to declare them in the header. Class extensions allow you to do that, see e.g. “How to make a private property?”.

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

Sidebar

Ask A Question

Stats

  • Questions 497k
  • Answers 497k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer In nextWeekDown method you reload only monTable - so naturally… May 16, 2026 at 11:56 am
  • Editorial Team
    Editorial Team added an answer Sure, if you are shooting for slower code that is… May 16, 2026 at 11:56 am
  • Editorial Team
    Editorial Team added an answer This isn't materially different from scottfrazer's answer, but it's a… May 16, 2026 at 11:56 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

This is kind of a noobish question, but it's one that I've never been
Sorry for the noobish question here, but I am just learning C++ and I
I inherited a project with drupal and flash, and I'm pretty noobish on the
I feel very noobish asking this, but I can't seem to figure it out...
This pretty much has me defeated. On XP and earlier versions of Windows you
this pretty much is the thing. When in tinymce I press anything that is
I find this pretty confusing. When you want to rotate a view, it's going
this problem is killing me, here is my code import java.text.ParseException; import java.text.SimpleDateFormat; import
I am new to R so I apologize if this is easy and straight
I'm trying to make an easy script in Python which takes a number and

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.