• 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
Re: Message Forwarding for + Methods
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Message Forwarding for + Methods


  • Subject: Re: Message Forwarding for + Methods
  • From: Sherm Pendley <email@hidden>
  • Date: Tue, 6 Sep 2005 00:39:23 -0400

On Sep 5, 2005, at 11:15 PM, Joe Lester wrote:

Any way to get message forwarding to work on class methods (+ methods)? I know they work for instance methods (- methods) using...

- (void)forwardInvocation:(NSInvocation *)anInvocation

But is there a way to forward messages sent to the class itself? Thanks!

Have you tried simply overriding the instance method - forwardInvocation:? Instance messages that are defined in a root class (such as NSObject) can also be sent to Class objects, precisely to avoid the need for duplicate class and instance versions of methods such as this one.


sherm--

Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org

_______________________________________________
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: Message Forwarding for + Methods
      • From: Joe Lester <email@hidden>
References: 
 >Message Forwarding for + Methods (From: Joe Lester <email@hidden>)

  • Prev by Date: Re: Programatically create URLs in NSTextView or ??
  • Next by Date: Core Data, OutlineView, TreeController
  • Previous by thread: Message Forwarding for + Methods
  • Next by thread: Re: Message Forwarding for + Methods
  • Index(es):
    • Date
    • Thread