cinder::cocoa::SafeNsData Class Reference

Represents an exception-safe Cocoa NSData which behaves like a shared_ptr but can implicitly cast itself to NSData*. More...

#include <CinderCocoa.h>

List of all members.

Public Member Functions

 SafeNsData ()
 SafeNsData (const Buffer &buffer)
 Creates a SafeNsData using an existing cinder::Buffer. The SafeNsData retains a copy of the buffer in order to prevent its deletion.
 operator NSData *const ()

Detailed Description

Represents an exception-safe Cocoa NSData which behaves like a shared_ptr but can implicitly cast itself to NSData*.


Constructor & Destructor Documentation

cinder::cocoa::SafeNsData::SafeNsData (  ) 
cinder::cocoa::SafeNsData::SafeNsData ( const Buffer buffer  ) 

Creates a SafeNsData using an existing cinder::Buffer. The SafeNsData retains a copy of the buffer in order to prevent its deletion.


Member Function Documentation

cinder::cocoa::SafeNsData::operator NSData *const (  ) 

The documentation for this class was generated from the following files: