• 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: How to debug this error on closing a document?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to debug this error on closing a document?


  • Subject: Re: How to debug this error on closing a document?
  • From: Jerry Krinock <email@hidden>
  • Date: Thu, 11 Mar 2010 08:00:32 -0800

On 2010 Mar 11, at 02:27, Gideon King wrote:

> or whether I would have to subclass NSConcreteNotification and override dealloc and then use pose as, so I could  print out the notification name etc, to get the info

That would work, but Method Replacement [1] was added in Objective-C 2.0 as a replacement for "pose as class".  However, to do Method Replacement, you need to declare and implement a category on, in this case NSConcreteNotification, but that won't compile because NSConcreteNotification is Apple-private.  Does anyone know how to do Method Replacement for debugging in an Apple-private class?

[1] http://developer.apple.com/mac/library/samplecode/MethodReplacement/index.html

_______________________________________________

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:
    • Switching methods in private classes in Apple frameworks
      • From: Gideon King <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>)

  • Prev by Date: Bug with the ABPeoplePicker drag?
  • Next by Date: Re: [[Class alloc] init] preferable over [[Class instance] retain]?
  • Previous by thread: Re: How to debug this error on closing a document?
  • Next by thread: Switching methods in private classes in Apple frameworks
  • Index(es):
    • Date
    • Thread