NSScriptSuiteRegistry problems
NSScriptSuiteRegistry problems
- Subject: NSScriptSuiteRegistry problems
- From: Brian Webster <email@hidden>
- Date: Thu, 1 Aug 2002 17:56:49 -0500
I'm attempting to use +[NSScriptSuiteRegistry
setSharedScriptSuiteRegistry:] to set an instance of a custom
subclass to be the shared registry object. However, whenever I
do so, it crashes my applicaton (stack trace below). My new
registry gets properly initialized and registers all the classes
and commands correctly, but something seems to be released too
many times and it crashes when releasing the autorelease pool.
I've tried putting the call in several different places,
including my app delegate's init, awakeFromNib,
applicationWillFinishLaunching, applicationDidFinishLaunching,
and in main() before NSApplicationMain() is called, all with the
same results. The same thing even happens if I allocate a new
instance of NSScriptSuiteRegistry and try to set it. Is there
some magic trick I'm missing, or is this just a big bug?
Here's the revelant portion of the stack trace:
#0 0x70833018 in NSMapRemove ()
#1 0x7086422c in -[NSClassDescription _releaseKVCMaps] ()
#2 0x708644ac in -[NSClassDescription dealloc] ()
#3 0x70897a8c in -[NSScriptClassDescription dealloc] ()
#4 0x708115c4 in -[NSObject release] ()
#5 0x70162ed4 in CFRelease ()
#6 0x7016f268 in CFDictionaryRemoveAllValues ()
#7 0x7016f038 in CFBooleanGetValue ()
#8 0x70162fb8 in CFRelease ()
#9 0x7082eaac in -[NSCFDictionary release] ()
#10 0x708121f0 in NSPopAutoreleasePool ()
#11 0x70824b04 in -[NSAutoreleasePool release] ()
--
Brian Webster
email@hidden
http://homepage.mac.com/bwebster
_______________________________________________
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.