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

Re: NSObject Category


  • Subject: Re: NSObject Category
  • From: Andy Matuschak <email@hidden>
  • Date: Sun, 21 Aug 2005 09:27:47 -0500

True, there's no way to call the "super" method that way, but if you really want to override NSObject's init and still call the original one, you can use an ugly technique called "method swizzling". An example of how to do this can be found here: http://culater.net/wiki/ moin.cgi/CocoaReverseEngineering#head- eb6f8cbd6c9df740a64c6c8290e0ddc462d4dd20.

- Andy Matuschak


On Aug 21, 2005, at 9:20 AM, Marco Maniscalco wrote:

Oh I saw this point .. it's too sad.There is really no way to call the "super" method of
a categorized function. The only was I see is to override c++'s new ald delete and manage
all memory by using malloc.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40andymatuschak.org


This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: NSObject Category
      • From: Marco Maniscalco <email@hidden>
    • Re: NSObject Category
      • From: Marco Maniscalco <email@hidden>
References: 
 >NSObject Category (From: Marco Maniscalco <email@hidden>)
 >Re: NSObject Category (From: Marco Maniscalco <email@hidden>)

  • Prev by Date: Re: NSObject Category
  • Next by Date: Re: NSObject Category
  • Previous by thread: Re: NSObject Category
  • Next by thread: Re: NSObject Category
  • Index(es):
    • Date
    • Thread