| Article: |
Working with Tables: Writing an Address Book Application | |
| Subject: | compiling woes | |
| Date: | 2002-10-21 21:33:33 | |
| From: | anonymous2 | |
|
I love these tutorials, and followed this one to a 't', but whenever i try to compile, i get a boatload of errors, such as:
|
||
Showing messages 1 through 2 of 2.
-
'unknown' errors
2003-01-22 01:19:10 edenwaith [View]
-
'unknown' errors
2003-05-15 10:51:02 anonymous2 [View]
NSMutableArray *tempArray = [[NSMutableArray alloc] init];
This will fix the error but you need to release the tempArray at the end of the method otherwise there will be a memory leak.
or you can do this which returns an autoreleased array?
NSMutableArray *tempArray = [NSMutableArray array];



Another problem I found was with creating the tempArray in the deleteRecord method. I used this to get things working:
NSMutableArray *tempArray = [[NSMutableArray alloc] init];