Skip to main content

Module object

Module object 

Source
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.
SecureCoding
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.