• 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
Odd parse error when I try to build
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Odd parse error when I try to build


  • Subject: Odd parse error when I try to build
  • From: Brian Norwood <email@hidden>
  • Date: Sat, 26 Mar 2005 20:34:48 -0500

Err, just realized I replied to him. Oops.

---------- Forwarded message ----------
From: Brian Norwood <email@hidden>
Date: Sat, 26 Mar 2005 16:52:14 -0500
Subject: Re: Odd parse error when I try to build
To: Ian was here <email@hidden>


Okay, I used the @class directive to ensure that it was unrelated to
the nonexistence of a class. I get the same error. So I tried
importing NSSearchField.h since my class inherits from that one. Still
no-go. This is the entire header file:

/* DictionarySearch */

#import <Cocoa/Cocoa.h>
#import "NSSearchField.h"

@class LocationTextField, BrowserWindowController, SearchField;

@interface DictionarySearch : NSSearchField
{
    IBOutlet LocationTextField *addressBar;
    IBOutlet BrowserWindowController *browserWindowController;
    IBOutlet SearchField *searchField;
}
- (IBAction)performSearch:(id)sender;
@end

I see absolutely nothing wrong with it. I've even compared it against
headers written by Apple, and see no problem. Is this just a bug in
Xcode?

On Sat, 26 Mar 2005 09:40:28 -0800 (PST), Ian was here
<email@hidden> wrote:
> In your header file, you may want to check for a
> missing semicolon or any other syntax anomalies before
> the statement:
>
> IBOutlet LocationTextField *addressBar;
>
> Another issue may be if you have two header files that
> are importing each other. you may need to use the
> @class directive if that's the case.
>
>
> --- Brian Norwood <email@hidden> 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"'.
> >
> > Thanks in advance!
> >  _______________________________________________
> > 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
> >
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Small Business - Try our new resources site!
> http://smallbusiness.yahoo.com/resources/
>  _______________________________________________
> 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
>
 _______________________________________________
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

  • Follow-Ups:
    • Re: Odd parse error when I try to build
      • From: Joshua Martin <email@hidden>
References: 
 >Re: Odd parse error when I try to build (From: Ian was here <email@hidden>)

  • Prev by Date: Saving State of NSOutlineView in Document-based App
  • Next by Date: how to build data parser
  • Previous by thread: Re: Odd parse error when I try to build
  • Next by thread: Re: Odd parse error when I try to build
  • Index(es):
    • Date
    • Thread