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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T05:39:54+00:00 2026-05-31T05:39:54+00:00

This question is mostly curiosity than anything else. But I currently place all my

  • 0

This question is mostly curiosity than anything else. But I currently place all my private methods first in my @implementation so that I can avoid creating an a separate category in my .m file for those methods. As long as the private method was implemented before any other method called it, all was good. I can distinctly remember Xcode warning me if I tried to call a non-declared method before its implementation….at least, I think I can. Now I’m starting to doubt my sanity a little cause Xcode now seems perfectly happy to allow me to call any non-declared method as long as its implementation is located anywhere within the @implementation, even if the call comes before the implementation.

Is this a recent change or have I been structuring my method order off of some archaic ‘C’ limitation?

The way Xcode is behaving now, it seems there’s no need to create any kind of category for private methods. Personally, I find this quite nice.

EDIT: I’m using Xcode 4.3.1

  • 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-31T05:39:56+00:00Added an answer on May 31, 2026 at 5:39 am

    Apparently you are right.
    xcode 4.2.1 issues a warning and 4.3.1 does not.

    @implementation MyClass
    
    
    - (void) callMyPrivateMethod {
        [self myPrivateMethod];   //<--- xcode 4.2.1 issues a warning here. 
        return;
    }
    
    - (void) myPrivateMethod {
        return; 
    }
    
    @end
    

    (I know there is no need for the ‘return’s but I am a bit old fasioned with this respect.)

    However, both versions will build it properly and it will runn unless you made a typo in the method name.

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

Sidebar

Related Questions

This question is mostly academic. I ask out of curiosity, not because this poses
This is mostly just out of curiosity, and is potentially a silly question. :)
I'm posing this question mostly out of curiosity. I've written some code that is
This is a question that arose mostly of pure curiosity (and killing some time).
Say I have two tables (I am using Django, but this question is mostly
This question has been asked/answered (mostly) before, BUT I've tried three things to stop
I'm familiar with yield to return a value thanks mostly to this question but
This is mostly an out-of-curiosity question. Consider the following functions var closure ; function
I've seen this question a few times but they mostly have to do with
As a lot of people pointed out in this question , Lisp is mostly

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.