Re: NSAppleEventManager problems
Re: NSAppleEventManager problems
- Subject: Re: NSAppleEventManager problems
- From: Jeffrey J Barbose <email@hidden>
- Date: Fri, 19 Oct 2001 17:03:16 -0700
i'm not sure..and the NSAppleEventDescriptor docs don't say if you
get an autoreleased version or not, tho that would imply that it IS
autoreleased.
At 16.55 -0700 01/10/19, Rosyna wrote:
No, it was never needed in Carbon. Is it in cocoa?
Ack, at 10/19/01, Jeffrey J Barbose said:
are you disposing of the NSAppleEventDescriptors that come in?
At 16.31 -0700 01/10/19, Rosyna wrote:
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