• 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
NSAppleEventManager problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSAppleEventManager problems


  • Subject: NSAppleEventManager problems
  • From: Rosyna <email@hidden>
  • Date: Fri, 19 Oct 2001 16:31:49 -0700

I think i am having a memory leak when I use AppleEvent Handlers when installing them like this:

[[NSAppleEventManager sharedAppleEventManager] setEventHandler: self andSelector:@selector(zip:) forEventClass: 'CMMf' andEventID: 'zip '];

The implementation looks like this:

-(void) zip:(id)sender
{
if (added==NO && [[NSUserDefaults standardUserDefaults] boolForKey:NSLocalizedString(@"Show Menu",@"")])
[self installMenu];
added=YES;
}

The application receives an AppleEvent matching this criteria every 1.5 seconds (don't ask why, it's important that it does it this often) After a few seconds, the memory starts going up everytime it receives sad AppleEvent.

Any clues why it could be leaking (that's all its doing, installMenu isn't even being called.)
--
Sincerely,
Rosyna Keller
Technical Support/Holy Knight/Always needs a hug

Unsanity: Unsane Tools for Insane People


  • Follow-Ups:
    • Memory Leak was Re: NSAppleEventManager problems
      • From: Rosyna <email@hidden>
    • Re: NSAppleEventManager problems
      • From: Jeffrey J Barbose <email@hidden>
References: 
 >Re: Pointers to methods (or functions, for that matter) (From: "John C. Randolph" <email@hidden>)

  • Prev by Date: Re: CORBA with Mac OS X
  • Next by Date: Re: NSAppleEventManager problems
  • Previous by thread: Re: Pointers to methods (or functions, for that matter)
  • Next by thread: Re: NSAppleEventManager problems
  • Index(es):
    • Date
    • Thread