• 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: Switching methods in private classes in Apple frameworks
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Switching methods in private classes in Apple frameworks
      • From: "Paul Sanders" <email@hidden>
References: 
 >How to debug this error on closing a document? (From: Gideon King <email@hidden>)
 >Re: How to debug this error on closing a document? (From: Kyle Sluder <email@hidden>)
 >Re: How to debug this error on closing a document? (From: Gideon King <email@hidden>)
 >Re: How to debug this error on closing a document? (From: Jerry Krinock <email@hidden>)
 >Switching methods in private classes in Apple frameworks (From: Gideon King <email@hidden>)
 >Re: Switching methods in private classes in Apple frameworks (From: Greg Parker <email@hidden>)
 >Re: Switching methods in private classes in Apple frameworks (From: Gideon King <email@hidden>)
 >Re: Switching methods in private classes in Apple frameworks (From: Jerry Krinock <email@hidden>)
 >Re: Switching methods in private classes in Apple frameworks (From: Gideon King <email@hidden>)

  • Prev by Date: Re: NSServices - Validation bug
  • Next by Date: Re: Better sorting using threads?
  • Previous by thread: Re: Switching methods in private classes in Apple frameworks
  • Next by thread: Re: Switching methods in private classes in Apple frameworks
  • Index(es):
    • Date
    • Thread