Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSURLCacheMBS class.

NSURLCacheMBS.setSharedURLCache(cache as NSURLCacheMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Networking MBS MacBase Plugin 9.7 ✅ Yes ❌ No ❌ No ✅ Yes All
Sets the shared NSURLCache instance to a specified cache object.

Applications that have special caching requirements or constraints should use this method to specify an NSURLCache instance with customized cache settings.

NSURLCacheMBS.sharedURLCache as NSURLCacheMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Networking MBS MacBase Plugin 9.7 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns the shared NSURLCache instance.

The disk path is set to: <user_home_directory>/Library/Caches/<current_process_name>. The user's home directory is determined by calling NSHomeDirectory and the current process name is determined using NSProcessInfoMBS.processName.

Applications that do not have special caching requirements or constraints should find the default shared cache instance acceptable. Applications with more specific needs can create a custom NSURLCache object and set it as the shared cache instance using setSharedURLCache.

The items on this page are in the following plugins: MBS MacBase Plugin.


The biggest plugin in space...