*Why* is there no supported way to replace (or, rather, augment) methods in a 
class which one cannot override because one does not create instances of that 
class oneself?  It seems to me that this is just as legitimate as putting a 
category method on that class , but the latter approach is often useless as one 
cannot call 'super' (and again, why not?)

As for something like this breaking after a software update, it seems to me 
that this is likely only when a major new release comes out and, since there 
are _always_ issues with major new releases of OS X it doesn't actually worry 
me all that much. 

Paul Sanders.

----- Original Message ----- 
From: "Bill Bumgarner" <b...@mac.com>
To: "Gideon King" <gid...@novamind.com>
Cc: "Cocoa Dev" <cocoa-dev@lists.apple.com>
Sent: Friday, March 12, 2010 6:36 AM
Subject: Re: Switching methods in private classes in Apple 
frameworks


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*.
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to