• 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: forwardInvocation: Works Locally but crashes with DO
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: forwardInvocation: Works Locally but crashes with DO


  • Subject: Re: forwardInvocation: Works Locally but crashes with DO
  • From: Joe Lester <email@hidden>
  • Date: Wed, 7 Aug 2002 13:09:38 -0500

Thanks for the help. All I had to do was modify "methodSignatureForSelector:" so that it called "instanceMethodSignatureForSelector:" instead of calling "methodSignatureForSelector:" on itself (creating an infinite loop). Works like a charm!

id surrogateObj;

- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
{
//Used to call methodSignatureForSelector here, which created the loop
NSMethodSignature *sig = [[self class] instanceMethodSignatureForSelector:aSelector];
if (sig) return sig;
return [surrogateObj methodSignatureForSelector:aSelector];
}
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
  • Prev by Date: Re: Replacing Font/Size of NSMutableAttributedString, but not styles
  • Next by Date: Re: Accessors
  • Previous by thread: Re: forwardInvocation: Works Locally but crashes with DO
  • Next by thread: iTunes programming
  • Index(es):
    • Date
    • Thread