• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
performSelector and subclassing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

performSelector and subclassing


  • Subject: performSelector and subclassing
  • From: Koen van der Drift <email@hidden>
  • Date: Sun, 14 Nov 2004 14:26:56 -0500

Hi,

In the subclasses I have this line:

temp = [MySubclass performSelector: NSSelectorFromString( myRef )];


I would like to move that line up to the super class. What happens now is that performSelector is called with MySuper, instead of MySubclass (which is what I want to happen).


I tried:

temp = [[self class] performSelector: NSSelectorFromString( myRef )];

but got this warning from the compiler: `Class' may not respond to `+performSelector:'


Is there a way to accomplish this?


thanks,

- Koen.

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: performSelector and subclassing
      • From: Damien Bobillot <email@hidden>
  • Prev by Date: Re: nubie attempt to use NSTableView with NSArrayController[resolved]
  • Next by Date: Debugging an input manager?
  • Previous by thread: Re: Execute On-Load
  • Next by thread: Re: performSelector and subclassing
  • Index(es):
    • Date
    • Thread