Hi!, please... please... anyone help me, I'm trying to solve the challenge from chapter 6 of Aaron's Book...
I have to make a "to do" list... and I wrote this method:
items is a NSMutableArray, and newItemField is a NSTextField...
The problem is that the console says that items count is NULL...!!! I don't know why I can't add object to the Mutable Array!
Please someone help me, i know that the solution is silly but I'm desperate, and can't finish the book if I dont solve this!
Thank you!
I have to make a "to do" list... and I wrote this method:
Code:
-(IBAction) add:(id)sender
{
NSString *str= [[NSString alloc] initWithString:[newItemField stringValue]];
[items addObject:str];
NSLog(@"count: %@",[items count]);
}
items is a NSMutableArray, and newItemField is a NSTextField...
The problem is that the console says that items count is NULL...!!! I don't know why I can't add object to the Mutable Array!
Please someone help me, i know that the solution is silly but I'm desperate, and can't finish the book if I dont solve this!
Thank you!