Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Strange Errors



Well, it's strange to me at least. I'm getting a bunch of errors on code that compiled before with zero errors; only difference is that it was a "document-based" Cocoa app before, and now it's a straight Cocoa app. Here is one of the errors that make no sense to me:

" `c' undeclared (first use in this function)"--but it is both declared and used prior to the line the compiler points to! Here is the code:

- (void)setCompanyName : (NSString *) c
{
[c retain] ;
[companyName release] ;
companyName = c; //this is the highlighted line from the compiler error
}

Yet another error message says:" illegal statement, missing `;' after `setCompanyName' "
in spite of the fact that no such semi-colon belongs in the method name which is the line highlighted by the error message.

No doubt this is something simple and I'm just brain-fried. Anyone?

Brian E. Howard




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.