Re: Preserving undo actions on deleted targets
Re: Preserving undo actions on deleted targets
- Subject: Re: Preserving undo actions on deleted targets
- From: Jerry Krinock <email@hidden>
- Date: Thu, 30 Jan 2014 21:43:50 -0800
I just noticed a couple mistakes in the code I threw in yesterday. Should be…
void doNothingIMP(id self, SEL _cmd, NSNotification* note) {
NSLog(@"Nothing doing!");
}
+ (void)load {
SEL aSEL = NSSelectorFromString(@"_processEndOfEventNotification:") ;
class_addMethod(self, aSEL, (IMP) doNothingIMP, "v@:@");
}
but it works either way, with our without the mistakes :))
_______________________________________________
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