Articles Tagged 'NSFileManager'

Very short trick: how to use NSFileManager

, in quanto quest'ultimo restituisce un'instanza singleton, cioè sempre lo stesso puntatore ad oggetto (non thread safe). Apple recommends using the object instance NSFileManager and not its class meotodo defaultManager , as the latter returns an instance singleton, ie the same pointer to the object (not thread safe).

Continued ...

Very short snippet: Apple iPhone file system

Both the Mac OS X and iPhone OS, we can access easily and directly to the directory - most important - the system which are:

1
2
3
NSHomeDirectory Returns the path to the current user's home directory.
Returns the path to NSHomeDirectoryForUser Given a user's home directory.
NSTemporaryDirectory Returns the path of the temporary directory for the current user.

Continued ...