Specify memory and personality options for an NSPointerFunctions object.
Available in Mac OS X v10.5 and later.
C# | Visual Basic | Visual C++ |
public enum NSPointerFunctionsOptions
Public Enumeration NSPointerFunctionsOptions
public enum class NSPointerFunctionsOptions
Member | Description |
---|---|
NSPointerFunctionsStrongMemory | Use strong write-barriers to backing store; use garbage-collected memory on copy-in. This is the default memory value. As a special case, if you do not use garbage collection and specify this value in conjunction with NSPointerFunctionsObjectPersonality or NSPointerFunctionsObjectPointerPersonality then the NSPointerFunctions object uses retain and release. If you do not use garbage collection, and specify this value in conjunction with a valid non-object personality, it is the same as specifying NSPointerFunctionsMallocMemory. Available in Mac OS X v10.5 and later. |
NSPointerFunctionsZeroingWeakMemory | Use weak read and write barriers; use garbage-collected memory on copyIn. If you do not use garbage collection, for object personalities, it will hold a non-retained object pointer. Available in Mac OS X v10.5 and later. |
NSPointerFunctionsOpaqueMemory | Take no action when pointers are deleted. This is usually the preferred memory option for holding arbitrary pointers. This is essentially a no-op relinquish function; the acquire function is only used for copy-in operations. This option is unlikely a to be a good choice for objects. Available in Mac OS X v10.5 and later. |
NSPointerFunctionsMallocMemory | Use free() on removal, calloc() on copy in. Available in Mac OS X v10.5 and later. |
NSPointerFunctionsMachVirtualMemory | Use Mach memory. Available in Mac OS X v10.5 and later. |
NSPointerFunctionsObjectPersonality | Use hash and isEqual methods for hashing and equality comparisons, use the description method for a description. This is the default personality value. As a special case, if you do not use garbage collection and specify this value in conjunction with NSPointerFunctionsStrongMemory then the NSPointerFunctions object uses retain and release. Available in Mac OS X v10.5 and later. |
NSPointerFunctionsOpaquePersonality | Use shifted pointer for the hash value and direct comparison to determine equality. Available in Mac OS X v10.5 and later. |
NSPointerFunctionsObjectPointerPersonality | Use shifted pointer for the hash value and direct comparison to determine equality; use the description method for a description. As a special case, if you do not use garbage collection and specify this value in conjunction with NSPointerFunctionsStrongMemory then the NSPointerFunctions object uses retain and release. Available in Mac OS X v10.5 and later. |
NSPointerFunctionsCStringPersonality | Use a string hash and strcmp; C-string '%s' style description. Available in Mac OS X v10.5 and later. |
NSPointerFunctionsStructPersonality | Use a memory hash and memcmp (using a size function that you must set—see sizeFunction). Available in Mac OS X v10.5 and later. |
NSPointerFunctionsIntegerPersonality | Use unshifted value as hash and equality. Available in Mac OS X v10.5 and later. |
NSPointerFunctionsCopyIn | Use the memory acquire function to allocate and copy items on input (see acquireFunction). Available in Mac OS X v10.5 and later. |
- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)