Re: More re: Carbon Events vs Cocoa Events
Re: More re: Carbon Events vs Cocoa Events
- Subject: Re: More re: Carbon Events vs Cocoa Events
- From: Charles Srstka <email@hidden>
- Date: Thu, 4 Apr 2002 11:41:09 -0600
Thanks! Boy, NoisyApp is really starting to live up to its name
now... :-)
On Thursday, April 4, 2002, at 04:52 AM, Ben Hines wrote:
At 4:57 PM -0600 4/1/02, Charles Srstka wrote:
Thanks! I now have a customized version of NoisyApp that logs all
events *and* Apple Events. Works great!
If you really want to monitor cocoa, you should log Notifications too.
This picks up some stuff noisyapp doesn't...
#import "NotificationController.h"
@implementation NotificationController
/* notification stuff */
- (void)gotNotification:(NSNotification *)notification
{
NSLog(@"Nofication Name : %@",[notification name]);
}
- (IBAction)scan:(id)sender
{
/* Scan all notifications, when there is new notifications it call
self */
[[NSDistributedNotificationCenter defaultCenter] addObserver:self
selector:@selector(gotNotification:) name:nil object:nil];
// nil and @"" mean it scan all notifications of any type
}
@end
Do that and move the mouse across the menus, change the Finder desktop
picture, etc. Good for reverse engineering.
-Ben
-- http://homepage.mac.com/bhines/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.