• 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: Writing Files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Writing Files


  • Subject: RE: Writing Files
  • From: "Jonathan E. Jackel" <email@hidden>
  • Date: Mon, 30 Jun 2003 14:17:06 -0400

> >> When I try to compile that bit of code, it tells be that there is a
> >> parse error before the * of the line "NSSavePanel* sp = [NSSavePanel
> >> savePanel];". Why might that be happenening? It looks good to me...
>
> There is no declaration ( NSSavePanel* sp... ) allowed after calling
> methods or functions ( pdf417init(&p); ). This is still not C++ ;-)


Not true! You can put declarations anywhere with gcc 3.1. That wouldn't be
a "parse error" anyway.

Offhand, I'd say the problem was in the " // Various config things" that
seem to have been left out of the follow-up e-mail. Almost always, this
error is caused by a missing semicolon or closing brace, bracket, or
parenthesis. A cool thing about PB is you can double-click on a brace,
bracket, or parenthesis and PB will select it and everything up to and
including the matching mark. If PB can't find a match, it beeps at you.
This makes it easy to find and fix these kinds of typos.

Jonathan
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Writing Files
      • From: "Alastair J.Houghton" <email@hidden>
References: 
 >Re: Writing Files (From: Robert Fischer <email@hidden>)

  • Prev by Date: NSOpenGLView. How does it work?
  • Next by Date: Re: Custom accessible Cocoa controls
  • Previous by thread: Re: Writing Files
  • Next by thread: Re: Writing Files
  • Index(es):
    • Date
    • Thread