Women in Technology

Hear us Roar



Article:
  Working with Tables: Writing an Address Book Application
Subject:   'unknown' errors
Date:   2003-01-22 01:19:10
From:   edenwaith
Response to: compiling woes

I had the same problem, too. I copied the material off the web site and pasted it into Project Builder. There might be some 'unseen' items that Project Builder doesn't like. What you need to do is erase all of the white space before each line and then press TAB to add your own white space.


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];

Full Threads Oldest First

Showing messages 1 through 1 of 1.

  • '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];