• 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: 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
References: 
 >NSObject Category (From: Marco Maniscalco <email@hidden>)
 >Re: NSObject Category (From: Marco Maniscalco <email@hidden>)
 >Re: NSObject Category (From: Andy Matuschak <email@hidden>)

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