note description: "Summary description for {NS_OBJECT_API}." author: "Daniel Furrer " date: "$Date$" revision: "$Revision$" class NS_OBJECT_API inherit ANY rename copy as any_copy, is_equal as any_is_equal end feature -- Creating, Copying, and Deallocating Objects frozen copy (a_object: POINTER): POINTER external "C inline use " alias "return [(NSObject*)$a_object copy];" end feature -- Identifying and Comparing Objects frozen is_equal (a_object: POINTER; other: POINTER): BOOLEAN external "C inline use " alias "return [(NSObject*)$a_object isEqual: $other];" end feature -- Identifying classes frozen class_ (a_object: POINTER): POINTER external "C inline use " alias "return [(NSObject*)$a_object class];" end feature -- Initializing Objects frozen init (a_item_ptr: POINTER): POINTER external "C inline use " alias "return [(NSObject *) $a_item_ptr init];" end feature -- Managing Reference Counts frozen retain_count (a_item_ptr: POINTER): NATURAL_64 -- require -- a_item_ptr_not_null: a_item_ptr /= default_pointer external "C inline use " alias "return [(NSObject *) $a_item_ptr retainCount];" end frozen release (a_item_ptr: POINTER) -- require -- a_item_ptr_not_null: a_item_ptr /= default_pointer external "C inline use " alias "[(NSObject *) $a_item_ptr release];" end frozen retain (a_item_ptr: POINTER) -- require -- a_item_ptr_not_null: a_item_ptr /= default_pointer external "C inline use " alias "[(NSObject *) $a_item_ptr retain];" end feature -- Describing Objects frozen description (a_item_ptr: POINTER): POINTER external "C inline use " alias "return [(NSObject *) $a_item_ptr description];" end end