• 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: Calling original functions from overriding Category functions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Calling original functions from overriding Category functions


  • Subject: Re: Calling original functions from overriding Category functions
  • From: Eric Forget <email@hidden>
  • Date: Thu, 18 Mar 2004 14:02:36 -0500

> well, somebody please correct me if I am wrong, but IIRC, category
> functionality is (used to be?) implemented by the category
> implementation actually *replacing* the original one in the class
> tables. Therefore (and unless I am wrong), no luck.
>
> Unless you recorded the original implementation before the category was
> loaded of course, in which case you can stay at the OO level using the
> methodForSelector: message.

You do not create a "Category". Instead, you create a normal C function with
the right signature that will be installed at runtime...

Eric

___________________________________________________________________

Eric Forget Cafederic
email@hidden <http://www.cafederic.com/>

Fingerprint <86D5 38F5 E1FD 5D9C 71C3 BAA3 797E 70A4 6210 C684>
_______________________________________________
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:
    • Re: Calling original functions from overriding Category functions
      • From: Ondra Cada <email@hidden>
References: 
 >Re: Calling original functions from overriding Category functions (From: Ondra Cada <email@hidden>)

  • Prev by Date: NSView -addSubview tutorial or example?
  • Next by Date: looking for user interface consultant
  • Previous by thread: Re: Calling original functions from overriding Category functions
  • Next by thread: Re: Calling original functions from overriding Category functions
  • Index(es):
    • Date
    • Thread