X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5c6eb3a84be918dcfed2496d014549e13af0f0e9..b02dd12239c8a59b9a545d9fcb04974f8ad02c6b:/include/wx/osx/core/cfdataref.h?ds=sidebyside diff --git a/include/wx/osx/core/cfdataref.h b/include/wx/osx/core/cfdataref.h index 19a44d71a8..b61902c3dc 100644 --- a/include/wx/osx/core/cfdataref.h +++ b/include/wx/osx/core/cfdataref.h @@ -1,22 +1,22 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: wx/mac/corefoundation/cfdata.h +// Name: wx/osx/core/cfdataref.h // Purpose: wxCFDataRef class // Author: Stefan Csomor -// Modified by: +// Modified by: // Created: 2007/05/10 -// RCS-ID: $Id: cfdataref.h 46095 2007-05-18 07:29:49Z SC $ +// RCS-ID: $Id$ // Copyright: (c) 2007 Stefan Csomor // Licence: wxWindows licence // Notes: See http://developer.apple.com/documentation/CoreFoundation/Conceptual/CFBinaryData/index.html ///////////////////////////////////////////////////////////////////////////// -/*! @header wx/mac/corefoundation/cfref.h +/*! @header wx/osx/core/cfdataref.h @abstract wxCFDataRef template class */ #ifndef _WX_MAC_COREFOUNDATION_CFDATAREF_H__ #define _WX_MAC_COREFOUNDATION_CFDATAREF_H__ -#include "wx/mac/corefoundation/cfref.h" +#include "wx/osx/core/cfref.h" #include @@ -33,14 +33,14 @@ public: {} typedef wxCFRef super_type; - + /*! @method wxCFDataRef @abstract Assumes ownership of p and creates a reference to it. @templatefield otherType Any type. @param p The raw pointer to assume ownership of. May be NULL. @discussion Like shared_ptr, it is assumed that the caller has a strong reference to p and intends to transfer ownership of that reference to this ref holder. If the object comes from - a Create or Copy method then this is the correct behavior. If the object comes from + a Create or Copy method then this is the correct behaviour. If the object comes from a Get method then you must CFRetain it yourself before passing it to this constructor. A handy way to do this is to use the non-member wxCFRefFromGet factory funcion. This method is templated and takes an otherType *p. This prevents implicit conversion @@ -65,7 +65,7 @@ public: @param data The raw data. @param length The data length. */ - wxCFDataRef(const UInt8* data, CFIndex length) + wxCFDataRef(const UInt8* data, CFIndex length) : super_type(CFDataCreate(kCFAllocatorDefault, data, length)) { } @@ -80,7 +80,7 @@ public: else return 0; } - + /*! @method GetBytes @abstract Copies the data into an external buffer @param range The desired range.