Ahmed
Ahmed

Reputation: 15039

Where should a mac os x app store its temporary data

I am new to mac os x. Is there an application specific folder allocated by the mac os x when it gets installed to store its temporary files ? like in windows there is an app data folder for the apps to save their data and system temporary file folders are different .

Upvotes: 0

Views: 942

Answers (1)

Tom Harrington
Tom Harrington

Reputation: 70936

Yes. Just use NSTemporaryDirectory() to get a temporary directory. You should create your own app-specific subdirectory below this path.

Upvotes: 1

Related Questions