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 protected])

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 [email protected]

Reply via email to