• 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: creating a cocoa nsapp event polling callback
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: creating a cocoa nsapp event polling callback


  • Subject: Re: creating a cocoa nsapp event polling callback
  • From: "Julien Jalon" <email@hidden>
  • Date: Thu, 27 Sep 2007 14:40:49 +0200

To be clear, change your default application's NSPrincipalClass in
Info.plist to a custom subclass of NSApplication and override sendEvent:
@interface MyApplication : NSApplication

@end

@implementation MyApplication

- (void)sendEvent:(NSEvent *)event
{
    if(IWantToProcessThisEventMySelf(event)) {
        // ...
    } else {
        [super sendEvent:event];
    }
}

@end
_______________________________________________

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

References: 
 >Re: creating a cocoa nsapp event polling callback (From: Alastair Houghton <email@hidden>)

  • Prev by Date: NSView receives twice and more "mouseEntered" when window show&hide
  • Next by Date: Re: NSTextField: mystery line drawing outside focus ring?
  • Previous by thread: Re: creating a cocoa nsapp event polling callback
  • Next by thread: Re: creating a cocoa nsapp event polling callback
  • Index(es):
    • Date
    • Thread