|
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
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
NSSavePanel* sp = [NSSavePanel savePanel];
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.
| References: | |
| >Re: Writing Files (From: Tyson Tate <email@hidden>) |
| Home | Archives | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2011 Apple Inc. All rights reserved.