Problems inserting into an ArrayController
Problems inserting into an ArrayController
- Subject: Problems inserting into an ArrayController
- From: Tom Jones <email@hidden>
- Date: Wed, 11 Jan 2006 07:36:31 -0600
I use the code below to add an item to my ArrayController...
- (IBAction) addContributor:(id)sender
{
NSMutableDictionary *test = [NSMutableDictionary
dictionaryWithObjects:[NSArray arrayWithObjects:[self
newContributorName],[self newContributorForum],nil] forKeys:[NSArray
arrayWithObjects:@"name",@"chimeInForum",nil]];
[contributorsController insertObject: test atArrangedObjectIndex:0];
[contributorsController setSelectionIndex:0];
}
when this code executes, I get this error.
[NSKeyValueSlowMutableArray insertObject:atIndex:]: value for key
columns of object 0x317230 is nil
After a couple hours of googling, I am still perplexed...Any Ideas
Running XCode 2.2. OSX 10.4.3
Thanks,
Tom
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden