Re: Help with PDFPage to NSImage
Re: Help with PDFPage to NSImage
- Subject: Re: Help with PDFPage to NSImage
- From: Nick Zitzmann <email@hidden>
- Date: Wed, 27 Feb 2008 10:49:30 -0700
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/>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden