• 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: 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.

  • Follow-Ups:
    • Re: More re: Carbon Events vs Cocoa Events
      • From: Ondra Cada <email@hidden>
References: 
 >Re: More re: Carbon Events vs Cocoa Events (From: Ben Hines <email@hidden>)

  • Prev by Date: Re: Resource Management ??
  • Next by Date: Beginning OpenGL programmer
  • 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