Well, you can of course still link to the AppKit framework and use
NSView. Just because you are writing a CLI application, doesn't mean
you can't use this framework and its objects. After all, just because
you create/use a NSView object doesn't mean you also have to display
it on screen at some point.
Of course you might have your reasons for not wanting to use AppKit,
but I thought it might be good to point this out.
I am trying to create and save a PDF document where the contents of
the PDF file is derived from a passed-in NSString. The method in
question is in an application without a graphical component, so a
solution using NSView's dataWithPDFInsideRect: seem to be out, as
does using NSPrintOperation and its printOperationWithView:printInfo:
method as this also takes an NSView as an argument.
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden