• 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: More re: Carbon Events vs Cocoa Events
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: More re: Carbon Events vs Cocoa Events


  • Subject: Re: More re: Carbon Events vs Cocoa Events
  • From: Ben Hines <email@hidden>
  • Date: Thu, 4 Apr 2002 02:52:40 -0800

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.

  • Follow-Ups:
    • Re: More re: Carbon Events vs Cocoa Events
      • From: Charles Srstka <email@hidden>
    • Re: More re: Carbon Events vs Cocoa Events
      • From: Bill Bumgarner <email@hidden>
References: 
 >Re: More re: Carbon Events vs Cocoa Events (From: Charles Srstka <email@hidden>)

  • Prev by Date: A Nib Question: Multiple Instantiations of Views
  • Next by Date: Re: More re: Carbon Events vs Cocoa Events
  • Previous by thread: Re: More re: Carbon Events vs Cocoa Events
  • Next by thread: Re: More re: Carbon Events vs Cocoa Events
  • Index(es):
    • Date
    • Thread