Adding a Preferences Window to Your Application
Subject:   Uncaught Exceptions! Help!
Date:   2001-09-22 21:17:50
From:   kperry8
OK, I've compared my code to the your downloaded example, and its nearly identical from what I can tell, except for minor style differences. However, I always get the following errors when I try and run the app:

AddressBook[1384] An uncaught exception was raised
AddressBook[1384] *** -[NSCFArray addObject:]: attempt to insert nil
AddressBook[1384] *** Uncaught exception: <NSInvalidArgumentException> *** -[NSCFArray addObject:]: attempt to insert nil has exited with status 255.

I used the debugger and this is where the exception occurs:

(This is part of the -initializeTableWithColumns method)

// add columns from the argument array
e = [identifiers objectEnumerator];
while ((identifier = [e nextObject])) {
column = [tableColumns objectForKey:identifier];
[tableView addTableColumn:column]; <--ERROR HERE
[[checkBoxes objectForKey:identifier] setState:NSOnState];

Can someone help me? Thanks!

1 to 3 of 3
  1. Uncaught Exceptions! Help! bug feedback
    2001-09-26 14:05:52  psheldon [View]

  2. Michael Beam photo Uncaught Exceptions! Help!
    2001-09-25 20:04:51  Michael Beam | O'Reilly Author [View]

  3. Uncaught Exceptions! Help!
    2001-09-25 13:43:52  psheldon [View]

1 to 3 of 3