Re: Writing Files - Follow up
Re: Writing Files - Follow up
- Subject: Re: Writing Files - Follow up
- From: Tyson Tate <email@hidden>
- Date: Mon, 30 Jun 2003 23:22:59 -0700
Thanks to all the excellent help. Indeed, somehow my gcc had been
reverted to 2.something. I re-downloaded the dev tools and it's dumming
along beautifully.
Here's what I came up with:
NSSavePanel *savePanel = [NSSavePanel savePanel];
savePanel = [NSSavePanel savePanel];
[savePanel setRequiredFileType:@"ps"];
[savePanel setTreatsFilePackagesAsDirectories:NO];
[savePanel setExtensionHidden:NO];
NSString *documentDirectory = [savePanel directory];
NSString *documentName = [savePanel filename];
pdf417param p;
FILE* f;
pdf417init(&p);
p.text = "hello";
p.options = PDF417_INVERT_BITMAP;
paintCode(&p);
if (p.error) {
pdf417free(&p);
}
if (NSOKButton == [savePanel runModalForDirectory:documentDirectory
file:documentName])
{
f = fopen([[savePanel filename] fileSystemRepresentation], "wb");
// AND WRITE!!!!
Again, thanks for all the help. I'll include a thank-you in the app's
About Box.
--
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.