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/>
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 mails | Author | Date |
|---|---|---|
| Florian Soenens | Feb 27, 10:32 | |
| Antonio Nunes | Feb 27, 11:33 | |
| Florian Soenens | Feb 27, 13:45 | |
| Antonio Nunes | Feb 27, 14:06 | |
| Florian Soenens | Feb 27, 14:37 | |
| Antonio Nunes | Feb 27, 14:39 | |
| Florian Soenens | Feb 27, 14:52 | |
| Nick Zitzmann | Feb 27, 18:49 |






Cocoa mail archive

