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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T16:11:02+00:00 2026-05-27T16:11:02+00:00

As I know, in my overloaded method (in category) I may call [super method]

  • 0

As I know, in my overloaded method (in category) I may call [super method] to pass it to original class.
In my case I don’t have header file of class, so I write:

@interface OriginalClass : NSObject
@end

@interface OriginalClass (overloadMethod)
-(void) method;
@end

@implementation OriginalClass (overloadMethod)
-(void) method
{
    // some my code
    [super method]; // here is warning that "NSObject may not respond to '-method'
}
@end

So is it possible to pass method to OriginalClass correctly without having its header file? Maybe it would be better to look at method_setImplementation?

  • 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-27T16:11:03+00:00Added an answer on May 27, 2026 at 4:11 pm

    If i remember correctly, the intro to ObjC programming in the docs mentions that when you override a method with a category, you can no longer access the original method.

    Your question is pretty much identical to the one here: How do I call the original function from the overloaded function in a category?

    Note the quote from the docs in the first answer

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

Sidebar

Related Questions

I've got a simple class Currency with overloaded operator<<. I don't know how can
I have a class with both a overloaded constructor and a overloaded method. If
I have an overloaded query method on the server side. I wanted to know
I am trying to write operator overload for custom class and don't know how
I have an overloaded generic method used to obtain the value of a property
I have a method that I'm writing that is calling another overloaded method inside
So I have a class of overloaded methods like this: class Foo { public
I am receiving other types of messages, so I know the overloaded method is
I have a class that has overloaded constructors. I'd like to re-factor the code
I have some questions as to which overloaded method would be called in certain

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.