• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Help with PDFPage to NSImage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Help with PDFPage to NSImage (From: Florian Soenens <email@hidden>)
 >Re: Help with PDFPage to NSImage (From: Antonio Nunes <email@hidden>)
 >Re: Help with PDFPage to NSImage (From: Florian Soenens <email@hidden>)
 >Re: Help with PDFPage to NSImage (From: Antonio Nunes <email@hidden>)
 >Re: Help with PDFPage to NSImage (From: Florian Soenens <email@hidden>)
 >Re: Help with PDFPage to NSImage (From: Florian Soenens <email@hidden>)

  • Prev by Date: Missing Core Animation Callbacks or Observing or whatever
  • Next by Date: Re: Can CoreData return only unique results of an attribute
  • Previous by thread: Re: Help with PDFPage to NSImage
  • Next by thread: Re: Help with PDFPage to NSImage
  • Index(es):
    • Date
    • Thread