Re: Switching methods in private classes in Apple frameworks
Re: Switching methods in private classes in Apple frameworks
- Subject: Re: Switching methods in private classes in Apple frameworks
- From: Bill Bumgarner <email@hidden>
- Date: Thu, 11 Mar 2010 22:36:39 -0800
On Mar 11, 2010, at 8:58 PM, Gideon King wrote:
> So as long as you are careful about what you do, yes it is entirely possible to replace methods at will. I hope nobody misuses it, but it certainly was essential in my debugging - yes, I found it! Yay!
Where "careful about what you do" includes "only use this in debugging code or non-production instrumentation", sure....
Do *not* ship such shenanigans in production code. One software update later and suddenly the presumptions made about that internal method you are replacing/overriding/augmenting are no longer true and *boom*.
(been there, done that, the scars run deep -- seriously, don't ship it that way. :)
b.bum
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden