• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: runtime error using NSArray with NSButton
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >runtime error using NSArray with NSButton (From: Mike McCune <email@hidden>)

  • Prev by Date: Re: Subclassing NSWindowController
  • Next by Date: Accessing item elements in Applescript
  • Previous by thread: runtime error using NSArray with NSButton
  • Next by thread: Re: runtime error using NSArray with NSButton
  • Index(es):
    • Date
    • Thread