Deprecated NSHost Methods

A method identified as deprecated has been superseded and may become unsupported in the future.

Deprecated in OS X v10.7

flushHostCache

Releases the cache of existing NSHost objects so subsequent requests for NSHost objects create new ones. (Deprecated in OS X v10.7. NSHost does not implement caching in OS X v10.6 and later.)

+ (void)flushHostCache
Discussion

NSHost objects that were retained before this method was invoked remain valid.

Availability
  • Available in OS X v10.0 and later.
  • Deprecated in OS X v10.7.
Declared In
NSHost.h

isHostCacheEnabled

Indicates whether caching is turned on or off. (Deprecated in OS X v10.7. NSHost does not implement caching in OS X v10.6 and later.)

+ (BOOL)isHostCacheEnabled
Return Value

YES when caching is turned on; NO otherwise.

Availability
  • Available in OS X v10.0 and later.
  • Deprecated in OS X v10.7.
Declared In
NSHost.h

setHostCacheEnabled:

Specifies whether the receiver is to cache instances as it creates them to avoid creating duplicate instances. (Deprecated in OS X v10.7. NSHost does not implement caching in OS X v10.6 and later.)

+ (void)setHostCacheEnabled:(BOOL)cacheOn
Parameters
cacheOn

YES to turn on caching. NO to turn of caching.

Discussion

This method doesn’t flush the cache. If you turn caching off and then back on, new requests for hosts use what was in the cache at the time caching was turned off. However, NSHost objects created while caching is turned off aren’t entered into the cache.

Availability
  • Available in OS X v10.0 and later.
  • Deprecated in OS X v10.7.
Declared In
NSHost.h