Sign In/My Account | View Cart  

advertisement

AddThis Social Bookmark Button

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:


/Users/kevind/AddressBook/Controller.m:11: illegal expression, found `unknown'
/Users/kevind/AddressBook/Controller.m:13: illegal expression, found `unknown'


there must be 20 or so of those, (they are contained in the create and delete record methods. Most of the errors come when calling things in any of the attached frameworks (which are linked and everything). Does anyone have _any_ clues as to how to fix this so i can move on?

Full Threads Oldest First

Showing messages 1 through 2 of 2.

  • 'unknown' errors
    2003-01-22 01:19:10  edenwaith [View]

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