• 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: NSData
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSData


  • Subject: Re: NSData
  • From: Mike Shields <email@hidden>
  • Date: Fri, 13 Dec 2002 15:16:32 -0700

On Friday, December 13, 2002, at 11:15 AM, Mel Walker wrote:

Since I'm controlling the whole "inheritance" process here with forwardInvocation: and methodSignatureForSelector:, is there a way I can get bad selectors to fail silently? For example, in the [s junk] call, can I just print out "bad selector:'junk'" and keep running with the application?

Not that I have any reason at all for doing this in any application I'm writing at the moment; it just seems like something cool I'd like to know. :-)

Yeah, you can do whatever you like in the -forwardInvocation: and -methodSignatureForSelector: methods. The default for -forwardInvocation: just calls [NSException raise:NSGenericException...]. You could forward messages to -foo to -bar if you wanted to, or make them no-ops or whatever.

Mike
_______________________________________________
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.

  • Follow-Ups:
    • NSData (again!)
      • From: Pascal Goguey <email@hidden>
References: 
 >Re: NSData (From: Mel Walker <email@hidden>)

  • Prev by Date: NSSplitView complete madness
  • Next by Date: ANN: TFM 1.1, doc & src code searching, view tool
  • Previous by thread: Re: NSData
  • Next by thread: NSData (again!)
  • Index(es):
    • Date
    • Thread