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

What is a "parse error"?


  • Subject: What is a "parse error"?
  • From: Scott Steinman <email@hidden>
  • Date: Thu, 2 Aug 2001 22:19:40 -0500

--
In reworking the code from Garfinkel and Mahoney's NeXTSTEP book's calculator example, I added the following (overriding) method to my NSWindow subclass to initialize a hash table of keycodes & button IDs and store the ID of the hash table in an instance variable called keyTable. 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"?

Thanks in advance for your help.

Scott Steinman
email@hidden
----------------------------

- (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 ];
}


  • Follow-Ups:
    • Re: What is a "parse error"?
      • From: Jean-Michel Vallat <email@hidden>
    • Re: What is a "parse error"?
      • From: Itrat Khan <email@hidden>
  • Prev by Date: Re: copy and release
  • Next by Date: Quick string-set search
  • Previous by thread: NSOutlineView is invisible...sometimes
  • Next by thread: Re: What is a "parse error"?
  • Index(es):
    • Date
    • Thread