cURL / Mailing Lists / curl-library / Single Mail


Fwd: download an file on Mac OS X

From: Jürgen Keser <>
Date: Tue, 12 Feb 2013 11:34:11 +0100

Hi Nick,

and thanks for your help.

Now it works great with the correct path.

That was just an example to get an feedback if the function returns true.



Anfang der weitergeleiteten Nachricht:

> Von: Nick Zitzmann <>
> Betreff: Aw: download an file on Mac OS X
> Datum: 11. Februar 2013 23:25:20 MEZ
> An: libcurl development <>
> Antwort an: libcurl development <>
> On Feb 11, 2013, at 1:56 PM, Jürgen Keser <> wrote:
>> 1.
>> How can I save the .gz file on my mac? Is this the correct way how I try it?
>> Should it work with the code you've sent me? (fp = fopen("/Path/To/Some/Place/Writable/curl-7.29.0.tar.gz", "w");)
>> I am not in the office at the moment so I can test it tomorrow…
> That was just an example path; you have to set the path to some place on your disk where your user account has permission to write things, e.g. your user home folder or /Users/Shared or /tmp or some place like that. If you're making a command line tool, then you might as well just omit the path components so it writes to the PWD.
>> 2.
>> The NSAlert Messages will be shown when i start the the Cocoa Application. So I think this should be correct.
> It is not correct if you put them in main() as you did in your original message. Was that just an example? If you're actually doing this in a UI action, then you don't have to do these things because NSApplicationMain() already creates an autorelease pool and connects to the window server. But if you really are doing this in main(), then you have to manage memory and connect to the window server first.
> But now we're leaving the scope of this list, so if you have any Cocoa-related questions, I'd suggest you take them to Apple's cocoa-dev mailing list: <>
> Nick Zitzmann
> <>
> -------------------------------------------------------------------
> List admin:
> Etiquette:

List admin:
Received on 2013-02-12