note description: "Auto-generated Objective-C wrapper class" date: "$Date$" revision: "$Revision$" class NS_POINTER_ARRAY_UTILS inherit NS_OBJECT_UTILS redefine wrapper_objc_class_name, is_subclass_instance end feature -- NSPointerArray pointer_array_with_options_ (a_options: NATURAL_64): detachable NS_OBJECT -- Auto generated Objective-C wrapper. local result_pointer: POINTER l_objc_class: OBJC_CLASS do create l_objc_class.make_with_name (get_class_name) check l_objc_class_registered: l_objc_class.registered end result_pointer := objc_pointer_array_with_options_ (l_objc_class.item, a_options) if result_pointer /= default_pointer then if attached objc_get_eiffel_object (result_pointer) as existing_eiffel_object then check attached {like pointer_array_with_options_} existing_eiffel_object as valid_result then Result := valid_result end else check attached {like pointer_array_with_options_} new_eiffel_object (result_pointer, True) as valid_result_pointer then Result := valid_result_pointer end end end end pointer_array_with_pointer_functions_ (a_functions: detachable NS_POINTER_FUNCTIONS): detachable NS_OBJECT -- Auto generated Objective-C wrapper. local result_pointer: POINTER l_objc_class: OBJC_CLASS a_functions__item: POINTER do if attached a_functions as a_functions_attached then a_functions__item := a_functions_attached.item end create l_objc_class.make_with_name (get_class_name) check l_objc_class_registered: l_objc_class.registered end result_pointer := objc_pointer_array_with_pointer_functions_ (l_objc_class.item, a_functions__item) if result_pointer /= default_pointer then if attached objc_get_eiffel_object (result_pointer) as existing_eiffel_object then check attached {like pointer_array_with_pointer_functions_} existing_eiffel_object as valid_result then Result := valid_result end else check attached {like pointer_array_with_pointer_functions_} new_eiffel_object (result_pointer, True) as valid_result_pointer then Result := valid_result_pointer end end end end feature {NONE} -- NSPointerArray Externals objc_pointer_array_with_options_ (a_class_object: POINTER; a_options: NATURAL_64): POINTER -- Auto generated Objective-C wrapper. external "C inline use " alias "[ return (EIF_POINTER)[(Class)$a_class_object pointerArrayWithOptions:$a_options]; ]" end objc_pointer_array_with_pointer_functions_ (a_class_object: POINTER; a_functions: POINTER): POINTER -- Auto generated Objective-C wrapper. external "C inline use " alias "[ return (EIF_POINTER)[(Class)$a_class_object pointerArrayWithPointerFunctions:$a_functions]; ]" end feature -- NSArrayConveniences pointer_array_with_strong_objects: detachable NS_OBJECT -- Auto generated Objective-C wrapper. local result_pointer: POINTER l_objc_class: OBJC_CLASS do create l_objc_class.make_with_name (get_class_name) check l_objc_class_registered: l_objc_class.registered end result_pointer := objc_pointer_array_with_strong_objects (l_objc_class.item) if result_pointer /= default_pointer then if attached objc_get_eiffel_object (result_pointer) as existing_eiffel_object then check attached {like pointer_array_with_strong_objects} existing_eiffel_object as valid_result then Result := valid_result end else check attached {like pointer_array_with_strong_objects} new_eiffel_object (result_pointer, True) as valid_result_pointer then Result := valid_result_pointer end end end end pointer_array_with_weak_objects: detachable NS_OBJECT -- Auto generated Objective-C wrapper. local result_pointer: POINTER l_objc_class: OBJC_CLASS do create l_objc_class.make_with_name (get_class_name) check l_objc_class_registered: l_objc_class.registered end result_pointer := objc_pointer_array_with_weak_objects (l_objc_class.item) if result_pointer /= default_pointer then if attached objc_get_eiffel_object (result_pointer) as existing_eiffel_object then check attached {like pointer_array_with_weak_objects} existing_eiffel_object as valid_result then Result := valid_result end else check attached {like pointer_array_with_weak_objects} new_eiffel_object (result_pointer, True) as valid_result_pointer then Result := valid_result_pointer end end end end feature {NONE} -- NSArrayConveniences Externals objc_pointer_array_with_strong_objects (a_class_object: POINTER): POINTER -- Auto generated Objective-C wrapper. external "C inline use " alias "[ return (EIF_POINTER)[(Class)$a_class_object pointerArrayWithStrongObjects]; ]" end objc_pointer_array_with_weak_objects (a_class_object: POINTER): POINTER -- Auto generated Objective-C wrapper. external "C inline use " alias "[ return (EIF_POINTER)[(Class)$a_class_object pointerArrayWithWeakObjects]; ]" end feature {NONE} -- Implementation wrapper_objc_class_name: STRING -- The class name used for classes of the generated wrapper classes. do Result := "NSPointerArray" end is_subclass_instance: BOOLEAN -- do Result := False end end