• 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: What is a "parse error"?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What is a "parse error"?


  • Subject: Re: What is a "parse error"?
  • From: Itrat Khan <email@hidden>
  • Date: Fri, 3 Aug 2001 12:09:04 -0400

On Thursday, August 2, 2001, at 11:19 PM, Scott Steinman wrote:

Upon building, I got an error stating that there was a "parse error" before NSHashTable. Removing that line of code removes the compilation error.

What is a "parse error"?

- (id) initWithContentRect: (NSRect) contentRect
styleMask: (unsigned int) aStyle
backing: (NSBackingStoreType) bufferingType
defer: (BOOL) flag
{
keyTable = [ [ NSHashTable alloc ] initKeyDesc: "i" ];
return [ super initWithContentRect: contentRect
styleMask: aStyle
backing: bufferingType
defer: flag ];
}

A parse error means the compiler couldn't parse your source file (i.e. syntax error). I can't see anything obvious in your code. In the past, I've had the compiler complain because I accidentally typed option-space instead of a space. If the code compiles without that one line, try typing that line in again (instead of pasting the line back).

Another reason you'd have parse errors is if your brackets don't match or if there's a semi-colon missing, but I don't see anything like that in your code snippet.

..........................................
Itrat Khan
http://www.itrat.net


References: 
 >What is a "parse error"? (From: Scott Steinman <email@hidden>)

  • Prev by Date: NSImage questions from a newbie
  • Next by Date: Re: creating custom views in IB
  • Previous by thread: What is a "parse error"?
  • Next by thread: Re: What is a "parse error"?
  • Index(es):
    • Date
    • Thread