• 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: NSComboBox problem in 10.6.2
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSComboBox problem in 10.6.2


  • Subject: Re: NSComboBox problem in 10.6.2
  • From: Bill Hernandez <email@hidden>
  • Date: Fri, 19 Mar 2010 11:00:36 -0500

H. Miersch wrote,

>> uncaught exception 'NSRangeException', reason: '*** -[NSCFArray objectAtIndex:]: index (-1 (or possibly larger)) beyond bounds (5)'

I was running into something similar this morning, and I traced it back to the fact that I had set the type of a variable to NSUInteger, and the return value, when I lloked up the class docs, was actually NSInteger.

Something like :

NSUInteger rowIndex = [tableView selectedRow];

forgot to include this earlier, should have been :

NSInteger rowIndex = [tableView selectedRow];

and when I traced through using the debugger I found the mismatch.

I don't know if you might be having the same problem, but you might take a quick look...

Best of luck,

Bill Hernandez
Plano, Texas_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >NSComboBox problem in 10.6.2 (From: "H. Miersch" <email@hidden>)
 >Re: NSComboBox problem in 10.6.2 (From: Jim Correia <email@hidden>)

  • Prev by Date: Re: Detecting if you're being debugged
  • Next by Date: Re: Three odd iPhone dev problems
  • Previous by thread: Re: NSComboBox problem in 10.6.2
  • Next by thread: Lock a file in cocoa
  • Index(es):
    • Date
    • Thread