Skip to content

Instantly share code, notes, and snippets.

@bewebste
Created March 31, 2010 23:31
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 bewebste/351095 to your computer and use it in GitHub Desktop.
Save bewebste/351095 to your computer and use it in GitHub Desktop.
Handle printHandle;
OSStatus err = noErr;
NSString* description = nil;
AEDesc descriptor;
err = AEPrintDescToHandle(&descriptor, &printHandle);
if (err == noErr)
{
description = [NSString stringWithCString:(char*)(*printHandle) encoding:NSASCIIStringEncoding];
DisposeHandle(printHandle);
}
return (description);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment