Expand description
Base object traits for Foundation.
Corresponds to Foundation/NSObject.hpp.
§C++ Equivalent
namespace NS {
template <class _Class, class _Base = class Object>
class Referencing : public _Base {
public:
_Class* retain();
void release();
_Class* autorelease();
UInteger retainCount() const;
};
template <class _Class, class _Base = class Object>
class Copying : public Referencing<_Class, _Base> {
public:
_Class* copy() const;
};
template <class _Class, class _Base = class Object>
class SecureCoding : public Referencing<_Class, _Base> {};
class Object : public Referencing<Object, objc_object> {
public:
UInteger hash() const;
bool isEqual(const Object* pObject) const;
class String* description() const;
class String* debugDescription() const;
};
}Structs§
- Object
- The root class of most Objective-C class hierarchies.
Traits§
- Copying
- Trait for objects that support copying.
- Referencing
- Base trait for all Objective-C objects that support reference counting.
- Secure
Coding - Trait for objects that support secure coding.
Functions§
- send_
message ⚠ - Helper function to send a message with the given selector.
- send_
message_ ⚠1 - Helper function to send a message with one argument.