| Sign In/My Account | View Cart |
| Article: |
Creating Toolbars for Mac OS X | |
| Subject: | Customize menu item disabled | |
| Date: | 2002-04-06 03:28:17 | |
| From: | zeus | |
|
Response to: Customize menu item disabled
|
||
|
God is grateful to you humble mortal ;-) and God should learn reading before posting stupid thread. But now that everything should work I get a stupid:"AddressBook.app has exited due to signal 10 (SIGBUS)."or "AddressBook.app has exited due to signal 11 (SIGSEGV)." It depends on where I put my [self setupToolbar] in the awakeFromNib method.
|
||
Showing messages 1 through 1 of 1.
I put it at the very end of the awakeFromNib method.
Is your code compiling, or do you get the error on building?
Those errors normally are thrown when you attempt to get an object with null address: i.e. an object already released (either by you or the autorelease pool), an object that does not exist yet, ...
If the code compiles, you can try to put a breakpoint at the very beginning of the awakeFromNib method, or init method, and go through the debugger step by step, check as many object as you can, printing the description by control-clicking on the object in the debugger.
Another way is to put a new breakpoint and type directly -[NSException raise] so that the debugger breaks when an exception is raised, then you back trace.
Also you can set a new variable in executable part of the target:
NSZombieEnabled
Set it to YES. Then the debugger prints a message when you attempt to call an object already released.
We can follow this discussion out of the forum. My email address is: garoche.michele@wanadoo.fr
Michele