• 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: Capturing Message as Invocation Object
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Capturing Message as Invocation Object


  • Subject: Re: Capturing Message as Invocation Object
  • From: Ondra Cada <email@hidden>
  • Date: Tue, 16 Mar 2004 21:24:42 +0100

Ryan,

On Tuesday, Mar 16, 2004, at 20:58 Europe/Prague, Ryan Bates wrote:

The only downside is you cannot capture methods which the class implements

You can, just it's a tad more complicated: create an extra class for it, either a root one (more difficult, but can catch anything) or a subclass of NSProxy (considerably more easy, can catch nearly anything). Return an instance of this class from your variant of prepareWithInvocationTarget:, and use _it_ to catch the messages.
---
Ondra Hada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc
_______________________________________________
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.


References: 
 >Re: Capturing Message as Invocation Object (From: Ryan Bates <email@hidden>)

  • Prev by Date: Re: Faceless app showing window?
  • Next by Date: Re: iTunes plugin/extension project
  • Previous by thread: Re: Capturing Message as Invocation Object
  • Next by thread: setWindowFrameAutosaveName problems solved!
  • Index(es):
    • Date
    • Thread