Re: NSApplicationLoad() can't connect to window server in user logged out.

2009-12-19 Thread Julien Jalon
ImageIO lets you load and save image files (See CGImageSource and CGImageDestination) CoreText provides text drawing facilities CoreGraphics will give you bitmap contexts and compositing. Of course, the CG API is a little bit more hardcore than AppKit but not that much. On Sat, Dec 19, 2009 at 3:

Re: NSApplicationLoad() can't connect to window server in user logged out.

2009-12-18 Thread Mr. Gecko
Can I do exactly what I'm doing there in that? I also need to place some text in there which I have in the full code, just made my code shorter as an example. On Dec 18, 2009, at 8:07 PM, Julien Jalon wrote: > NSImage needs a connection to the Window Server in Leopard. > > If you want to do s

Re: NSApplicationLoad() can't connect to window server in user logged out.

2009-12-18 Thread Julien Jalon
NSImage needs a connection to the Window Server in Leopard. If you want to do some offscreen headless rendering, use CoreGraphics + ImageIO On Sat, Dec 19, 2009 at 2:21 AM, Mr. Gecko wrote: > Ok, so I've done some more research and found this > http://developer.apple.com/mac/library/technotes/t

Re: NSApplicationLoad() can't connect to window server in user logged out.

2009-12-18 Thread Mr. Gecko
Ok, so I've done some more research and found this http://developer.apple.com/mac/library/technotes/tn2005/tn2083.html#SECPRELOGINANDTRUST, it basically says to run it in the loginwindow, but I can't do that with apache which is what I'm running my code with. Because this is a personal applicat