Index: src/OFDataArray.h ================================================================== --- src/OFDataArray.h +++ src/OFDataArray.h @@ -35,10 +35,11 @@ size_t count; size_t itemSize; } #ifdef OF_HAVE_PROPERTIES +@property (readonly, getter=cArray) void *data; @property (readonly) size_t count; @property (readonly) size_t itemSize; #endif /** @@ -140,10 +141,12 @@ */ - (size_t)itemSize; /** * \brief Returns all elements of the OFDataArray as a C array. + * + * WARNING: The pointer is only valid until the OFDataArray is changed! * * Modifying the returned array directly is allowed and will change the contents * of the data array. * * \return All elements of the OFDataArray as a C array