Skip navigation.
 
mlRe: Help with PDFPage to NSImage
FROM : Nick Zitzmann
DATE : Wed Feb 27 18:49:30 2008

On Feb 27, 2008, at 6:52 AM, Florian Soenens wrote:

> After googling my error output i discovered a tread about this issue 
> and this is how it get's solved:
>
> I need to add this line in the beginning of my main() function:
> [NSApplication sharedApplication];
>
> Why is this needed as we are talking about a command line utility??



Apparently what you're trying to do requires a window server 
connection. The connection is done automatically by some Carbon 
functions, but with other frameworks, you need to either initialize 
NSApplication or call NSApplicationLoad() in order to make the 
connection.

Nick Zitzmann
<http://www.chronosnet.com/>

Related mailsAuthorDate
mlHelp with PDFPage to NSImage Florian Soenens Feb 27, 10:32
mlRe: Help with PDFPage to NSImage Antonio Nunes Feb 27, 11:33
mlRe: Help with PDFPage to NSImage Florian Soenens Feb 27, 13:45
mlRe: Help with PDFPage to NSImage Antonio Nunes Feb 27, 14:06
mlRe: Help with PDFPage to NSImage Florian Soenens Feb 27, 14:37
mlRe: Help with PDFPage to NSImage Antonio Nunes Feb 27, 14:39
mlRe: Help with PDFPage to NSImage Florian Soenens Feb 27, 14:52
mlRe: Help with PDFPage to NSImage Nick Zitzmann Feb 27, 18:49