Re: Odd parse error when I try to build
Re: Odd parse error when I try to build
- Subject: Re: Odd parse error when I try to build
- From: Ricky Sharp <email@hidden>
- Date: Sat, 26 Mar 2005 11:36:07 -0600
On Mar 26, 2005, at 11:20 AM, Brian Norwood wrote:
I admit, I'm fairly new to Cocoa. However, I have mostly completed a
bundle to add a Dictionary.com search bar to Safari; the only problem
is, when I try to build it, I get a parse error in the header file for
a custom class. Mind you, this file was generated by Interface
Builder. I have an outlet like so:
IBOutlet LocationTextField *addressBar;
if that helps. I just don't see the issue. Also, if you're wondering,
the specific error is 'parse error before "LocationTextField"'.
When using specific classes in outlets (i.e. other than id), you'll
need to either include the appropriate header yourself or use a forward
class declaration. IB will do neither of this automatically.
e.g. #import "LocationTextField.h" or @class LocationTextField;
___________________________________________________________
Ricky A. Sharp mailto:email@hidden
Instant Interactive(tm) http://www.instantinteractive.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden