Sign In/My Account | View Cart  

advertisement

AddThis Social Bookmark Button

Article:
  Adding a Preferences Window to Your Application
Subject:   confounded
Date:   2001-12-15 16:47:17
From:   blueskyz
Great series so far. I wish I hadn't gotten off to such a late start. Hope you're checking back here. Don't want to go to next article until I'm good-to-go here.


I, too, am getting the error:
2001-12-15 16:25:11.050 AddressBook[1775] *** -[NSCFArray addObject:]: attempt to insert nil


I've looked all over (yeah right!) and can't find where i'm not synched with my names. I'm betting that's my problem.


Can you outline for me where I should have names that match. They seem to match everywhere I've looked.


Can't figure out the debugging process so I'm unable to narrow down the problem.


Thanks.
-Phil

Full Threads Oldest First

Showing messages 1 through 1 of 1.

  • confounded
    2001-12-29 19:14:11  michele [View]

    Check for the following statement near the end of awakeFromNib:

    checkBoxesArray = [NSArray arrayWithObjects:firstNameCB, lastNameCB, emailCB, homePhoneCB, workPhoneCB, mobilePhoneCB, nil];

    You notice that there is a:

    mobilePhoneCB

    in the array, but the name in Interface Builder and in the propertyList is:

    mobilPhoneCB (no e).

    Change this ant it'll work.