Re: runtime error using NSArray with NSButton
Re: runtime error using NSArray with NSButton
- Subject: Re: runtime error using NSArray with NSButton
- From: Matthew Lehrian <email@hidden>
- Date: Thu, 5 Dec 2002 18:25:47 -0500
Hi Mike,
Maybe this is just the way I'm reading your email, but when you say
"add the NSButtons to just that array," it sounds like you're creating
the NSArray and trying to add to (maybe with the addObject: method?).
This won't work as NSArrays are immutable. If this is indeed what
you're doing, you should use an NSMutableArray. Of course, you'd
probably get a "selector not recognized" error, rather than what you're
seeing.
If you are using the NSArray arrayWithObjects: class method to create
the NSArray, make sure you're passing nil after your object list.
If neither of these suggestions help, maybe you could post a code
snippet?
Cheers!
Matthew
On Thursday, December 5, 2002, at 03:43 PM, Mike McCune wrote:
hi all, I'm trying to create an NSArray with the method
arrayWithObjects, the objects are a mix of NSTextFields and NSButtons.
I'm doing the creation in awakeFromNib. 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 being added to the NSArray.
I created a second NSArray and tried to add the NSButtons to just that
array, but same thing program exits with (11).
Anybody have any ideas? I'm using Obj-C and the latest edition of the
devtools with the july and october patches installed.
thanks,
Mike McCune
OPB Studios
email@hidden
_______________________________________________
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.
_______________________________________________
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.