• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Odd parse error when I try to build
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Odd parse error when I try to build (From: Brian Norwood <email@hidden>)

  • Prev by Date: Odd parse error when I try to build
  • Next by Date: Re: Odd parse error when I try to build
  • Previous by thread: Odd parse error when I try to build
  • Next by thread: Re: Odd parse error when I try to build
  • Index(es):
    • Date
    • Thread