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

  • Home
  • SEARCH
  • 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 9173387
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T16:34:41+00:00 2026-06-17T16:34:41+00:00

Take this simple class hierarchy: Tree.h : @interface Tree : NSObject @property (nonatomic, assign)

  • 0

Take this simple class hierarchy:

Tree.h:

@interface Tree : NSObject
@property (nonatomic, assign) id<TreeDelegate> delegate;
@end

Tree.m:

@implementation Tree
@synthesize delegate;
@end

Aspen.h:

@interface Aspen : Tree
- (void)grow:(id<TreeDelegate>)delegate;
@end

Aspen.m:

@implementation Aspen
- (void) grow:(id<TreeDelegate>)d {
    self.delegate = d;
}
@end

When I try to do self.delegate = d;, I’m getting the following error:

-[Aspen setDelegate:]: unrecognized selector sent to instance 0x586da00

I was expecting the Tree parent class’s delegate property to be visible to the subclass as-is, but it doesn’t seem to be since the error indicates the parent class’s synthesized setter isn’t visible.

What am I missing? Do I have to redeclare the property at the subclass level? I tried adding @dynamic at the top of the implementation of Aspen but that didn’t work either. Such a simple concept here, but I’ve lost an hour searching around trying to find a solution. Out of ideas at this point.

–EDIT–

The above code is just a very stripped-down example to demonstrate the issue I’m seeing.

  • 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-06-17T16:34:42+00:00Added an answer on June 17, 2026 at 4:34 pm

    I was finally able to figure this out. My actual code leverages a 3rd party static library that defines the classes Tree and Aspen in my example. I had built a new version of the static library that exposed the Tree delegate given in my example, however I did not properly re-link the library after adding it to my project and as a result the old version was still being accessed at runtime.

    Lessons learned: be diligent with steps to import a 3rd party library, and when simple fundamental programming concepts (such as in my example text) aren’t working, take a step back and make sure you’ve dotted i’s and crossed t’s.

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

Sidebar

Related Questions

take this simple code: class A{ public: virtual void foo() = 0; void x(){
take this simple code: <div id=container> <div class=box>abc</div> <div class=box id=secondbox>abc</div> <div>generic</div> <div>generic</div> </div>
Take a look at this simple class I'm building as the base to store
Take this simple example: class Program { static void Main(string[] args) { var windsorContainer
Take this very simple form for example: class SearchForm(Form): q = forms.CharField(label='search') This gets
Take this sample class as an example: [AttributeUsage(AttributeTargets.All, AllowMultiple=true)] public class BugFixAttribute : System.Attribute
I have this very simple br2nl function that I use to take a string
Why doesn't object.__init__ take *args, **kwargs as arguments? This breaks some simple code in
Take a simple XML file formatted like this: <Lists> <List> <Note/> ... <Note/> </List>
I am trying to make a simple alarm. in this code portion a take

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.