• 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
default method on an object
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

default method on an object


  • Subject: default method on an object
  • From: Jeff Medcalf <email@hidden>
  • Date: Fri, 6 Jul 2001 11:24:09 -0500

Is there a way in Cocoa, to declare a method, such that a message to the object containing that method, which does not find a method to invoke, will invoke that method instead. In other words, if I have a class with 1 method, myMethod:, and it gets a message like [myObject someOtherMethod:], is there a way that I can have myMethod: invoked instead of an error being generated?

Thanks

-jeff
--
/------------------+-----------------------+----------------------------\
| Jeff Medcalf )O( | email@hidden | www.caerdroia.org/~medcalf |
+------------------+-----------------------+----------------------------+
| God bless those Pagans. - Homer Simpson |
\-----------------------------------------------------------------------/


  • Follow-Ups:
    • Re: default method on an object
      • From: Douglas Davidson <email@hidden>
    • Re: default method on an object
      • From: Greg Titus <email@hidden>
    • Re: default method on an object
      • From: Brian Hill <email@hidden>
    • Re: default method on an object
      • From: Peter Ammon <email@hidden>
  • Prev by Date: Maybe a complex question on NSTableView and Drag & Drop...
  • Next by Date: Re: Let's hope XP doesn't keep this "one-up" on OS X!
  • Previous by thread: Re: Maybe a complex question on NSTableView and Drag & Drop...
  • Next by thread: Re: default method on an object
  • Index(es):
    • Date
    • Thread