Smartmobili.Cocoa.NSFileWrapper.InitWithSerializedRepresentation C# (CSharp) Method

InitWithSerializedRepresentation() public method

public InitWithSerializedRepresentation ( NSData data ) : id
data NSData
return id
        public virtual id InitWithSerializedRepresentation(NSData data)
        {
            // FIXME - This should use a serializer. To get that working a helper object
            // is needed that implements the NSObjCTypeSerializationCallBack protocol.
            // We should add this later, currently the NSArchiver is used.
            // Thanks to Richard, for pointing this out.
            NSFileWrapper wrapper = (NSFileWrapper)NSUnarchiver.UnarchiveObjectWithData(data);

            //RELEASE(this);
            return wrapper;
        }