@@ -58,36 +58,27 @@ of_list_object_t *_lastListObject; size_t _count; unsigned long _mutations; } -#ifdef OF_HAVE_PROPERTIES +/*! + * The first list object of the list. + */ @property OF_NULLABLE_PROPERTY (readonly) of_list_object_t *firstListObject; + +/*! + * The last list object of the list. + */ @property OF_NULLABLE_PROPERTY (readonly) of_list_object_t *lastListObject; -#endif /*! * @brief Creates a new OFList. * * @return A new autoreleased OFList */ + (instancetype)list; -/*! - * @brief Returns the first list object of the list. - * - * @return The first list object of the list - */ -- (nullable of_list_object_t*)firstListObject; - -/*! - * @brief Returns the last list object of the list. - * - * @return The last list object of the list - */ -- (nullable of_list_object_t*)lastListObject; - /*! * @brief Appends an object to the list. * * @param object The object to append * @return An of_list_object_t, needed to identify the object inside the list.