• 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: Andy Lee <email@hidden>
  • Date: Mon, 30 Jun 2003 17:17:51 -0400

Here are the desperate ideas that come to mind...

Maybe you accidentally typed some non-printing character into your code that the parser doesn't like? You could try deleting the first few lines of the method and retyping them (or use vi or emacs to open the file and look for weird characters).

I would also try narrowing the problem down to one line by commenting out portions of the code before the NSSavePanel declaration. Or you could move the declaration to the top of the method (better yet, retype it) and see if you still get the parse error.

You haven't said what version of the Dev Tools and OS X you are using. As Jonathan Jackel mentioned, you *should* be able to declare a variable anywhere in the method -- but I believe this wasn't supported in earlier versions of the development environment. So, for grins, you could try moving the declarations to the top of the method. Couldn't hurt.

--Andy
_______________________________________________
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.

References: 
 >Re: Writing Files (From: Tyson Tate <email@hidden>)

  • Prev by Date: Mysterious crash
  • Next by Date: Stumped by greyed out check syntax widget in PB.
  • Previous by thread: Re: Writing Files
  • Next by thread: NSProgressIdicator Image Problems
  • Index(es):
    • Date
    • Thread