Skip to content

Instantly share code, notes, and snippets.

@chamons

chamons/foo.cs Secret

Created October 6, 2015 20:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chamons/b454a59c5cbda5615317 to your computer and use it in GitHub Desktop.
Save chamons/b454a59c5cbda5615317 to your computer and use it in GitHub Desktop.
public override NSData GetAsData (string typeName, out NSError outError)
{
// Insert code here to write your document to data of the specified type.
// If outError != NULL, ensure that you create and set an appropriate error when returning nil.
outError = new NSError ();
return NSData.FromString ("asdf");
}
public override bool ReadFromData (NSData data, string typeName, out NSError outError)
{
// Insert code here to read your document from the given data of the specified type.
// If outError != NULL, ensure that you create and set an appropriate error when returning NO.
outError = new NSError ();
return true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment