Re: runtime error using NSArray with NSButton
Re: runtime error using NSArray with NSButton
- Subject: Re: runtime error using NSArray with NSButton
- From: crucial felix <email@hidden>
- Date: Thu, 5 Dec 2002 23:02:28 -0500
I ran across this great trick for retain/release examination:
#import <Cocoa/Cocoa.h>
// test version
#import <Foundation/NSDebug.h>
int main(int argc, const char *argv[])
{
NSZombieEnabled = YES;// test version
return NSApplicationMain(argc, argv);
}
add this while developing, it will do extra checks for wrong releases
and tell you what specifically you tried to release,
rather than just sigsegv.
and of course slows it down slightly.
-felix
On Thursday, December 5, 2002, at 06:37 PM, Henri Lamiraux wrote:
Do you retain in any way the array created by arrayWithObjects?
objects created by such methods are autoreleased.
On Thursday, December 5, 2002, at 12:43 PM, Mike McCune wrote:
When the program runs it exits after start with signal(11) SIGSEGV.
After debugging for awhile I narrowed it down to the NSButtons that
are
Henri Lamiraux
Engineering Manager
User Interface Tools Group
Apple
_______________________________________________
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.
-felix
_______________________________________________
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.