Re: How to debug this error on closing a document?
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