Re: Adding controller causes toolbar error
Re: Adding controller causes toolbar error
- Subject: Re: Adding controller causes toolbar error
- From: j o a r <email@hidden>
- Date: Thu, 29 Aug 2002 21:44:03 +0200
When you get this type of errors - methods called on the wrong type of
objects, and especially on "generic" / common objects - it's usually
because that the object you are sending the message to is released.
Check, and double check, that this isn't the case.
That said, I have seen this exact error caused by something wrong with
the toolbar preferences for the application. Toolbar settings are
stored in the defaults database. You can read about it in "man
defaults". You can zap it in the Terminal like this:
defaults delete MyAppIdentifier "NSToolbar Configuration
MyToolbarIdentifier"
Where MyAppIdentifier is what you set in the application target
settings and MyToolbarIdentifier is the identifier for your toolbar.
Repeat for every toolbar you have.
Or, if you are a GUI whimp, you can also simply remove / check the
preference file for your application in
~/Library/Preferences/MyAppIdentifier.plist ;)
j o a r
On Thursday, Aug 29, 2002, at 19:10 Europe/Stockholm, Andrew Merenbach
wrote:
There's a toolbar in my program, but I don't see how it's related.
I've tried debugging, but before the program gets anywhere the
debugger says my program "has exited with status 255," and there's
nothing to step through.
_______________________________________________
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.