• 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: Tyson Tate <email@hidden>
  • Date: Mon, 30 Jun 2003 12:27:46 -0700

The various config things are below in the code. I don't quite see any mistakes there...


On Monday, June 30, 2003, at 07:21 AM, Marco Binder wrote:

Show us the various config things or look for missing semicolons, brackets, braces or suchlike yourself. Most probably thats it...

Marco


Am Montag, 30.06.03, um 09:10 Uhr (Europe/Berlin) schrieb Tyson Tate:

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

Here's essentially what i have:


- (IBAction)generateBarcode:(id)sender
{
pdf417param p;
FILE* f;
pdf417init(&p);

// Various config things
p.text = "hello";
p.options = PDF417_INVERT_BITMAP;
paintCode(&p);
if (p.error) {
pdf417free(&p);
}


NSSavePanel* sp = [NSSavePanel savePanel]; /////////////////////// this is our "parse error before *"
if ([sp runModal] == NSFileHandlingPanelCancelButton) return;
f = fopen([[sp filename] fileSystemRepresentation], "wb");

// This is what I originally had:
//f = fopen("test.ps", "wb");

if (f != NULL) {
int cols = p.bitColumns / 8 + 1;
int k;
// Write out a ton of stuff using fprint(f, ........) and loops etc etc etc
fclose(f);
}

// Close out some stuff and free up memory
}



On Sunday, June 29, 2003, at 07:22 PM, Thomas Finley wrote:

On Sunday, June 29, 2003, at 10:10 PM, Thomas Finley wrote:

NSSavePanel *sp = [NSSavePanel savePanel];
if ([sp runModal] == NSFileHandlingPanelCancelButton) return;
fopen([[sp filename] fileSystemRepresentation], "wb");



--
Tyson Tate, Editor
Entropy Magazine
"Nourishment For The Starved."
http://www.entropymag.net
_______________________________________________
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.


--
|\ /| email@hidden http://www.marco-binder.de
| \/ | Telefon: 07531 / 94 19 94 Fax: 07531 / 94 19 92
| |ARCO Snail-Mail: Banater Str. 3 - 78467 Konstanz
BINDER _____________________________________________________
_______________________________________________
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.



--
Tyson Tate, Editor
Entropy Magazine
"Nourishment For The Starved."
http://www.entropymag.net
_______________________________________________
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: Jan Van Tol <email@hidden>
References: 
 >Re: Writing Files (From: Marco Binder <email@hidden>)

  • Prev by Date: Re: NSOpenGLView. How does it work?
  • Next by Date: Sigbus on exit for NSStatusItem app
  • Previous by thread: Re: Writing Files
  • Next by thread: Re: Writing Files
  • Index(es):
    • Date
    • Thread