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

The Archive Base Latest Questions

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

I recognize that this is a general type of question but I’d be interested

  • 0

I recognize that this is a general type of question but I’d be interested in your opinion on:

  • why are @interface @protocol and @property definitons seperated into a .h header file and then imported into the implementation file?

Is there anybody out there who just defines everything in a .m file?

BTW> its not that I am planning on not using .h files, just trying to understand the thinking behind it!

  • 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-21T16:23:22+00:00Added an answer on May 21, 2026 at 4:23 pm

    Because Objective-C relies on standard C infrastructure in which every compilation unit (.m) is compiled separately and then all of them are linked together.

    This means that the static type checking phase of the Objective-C compiler will need just the .h files to know the characteristics of declared classes (eg. signatures of methods) but just to ensure that everything is used as it is supposed to be, and this is why you #import them in other source files that require what you declared inside the header.

    if you have A.h/.m and B.h/.m which uses A you can think of the header file like a contract: “if you want to use A, I will link its binary code at the end of the compilation phase, what A is able to provide is described in this header file and this is the only thing you should know”

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

Sidebar

Related Questions

I asked a similar question yesterday, but recognize that i need to rephase it
I have to ask this, because: The only thing I recognize is, that if
I will preface this question with the fact that I am extremely new to
I'm a bit worried if this function sends emails that can be recognized correctly
I was trying to create an IFormatProvider implementation that would recognize custom format strings
Opera is the only browser I've tested that doesn't recognize the links on my
1) How can the processor recognize the device requesting the interrupt? 2) Given that
I recognized that calling a method on an Oracle Object Type takes longer when
If I type xcodebuild -version it recognises that I have xcode installed: Xcode 4.3.2
For my graduate research I am creating a neural network that trains to recognize

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.