Re: NSObject Category
Re: NSObject Category
- Subject: Re: NSObject Category
- From: Marco Maniscalco <email@hidden>
- Date: Sun, 21 Aug 2005 16:45:14 +0200
Ha! This sounds nasty :) but seems to be the right thing! Thanks
Andy Matuschak wrote:
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
_______________________________________________
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