Re: NSImage NSInternalInconsistencyException
Re: NSImage NSInternalInconsistencyException
- Subject: Re: NSImage NSInternalInconsistencyException
- From: John Pannell <email@hidden>
- Date: Mon, 23 Jan 2006 10:54:56 -0700
Hi M-
In your target's info.plist, you can set the LSUIElement key to 1,
like so...
<key>LSUIElement</key>
<string>1</string>
This prevents the app icon from showing in the dock and will allow
you to use GUI frameworks in a non-gui app. It might also require
that you make some kind of "wrapper" app to present any kind of UI to
the end user. I have used it to run subprocesses in the background
from my main app.
Coming in on the end of the thread; so I'm not sure this fully
addresses your needs. Google on LSUIElement for more info.
HTH!
John
John Pannell
Positive Spin Media
http://www.positivespinmedia.com
On Jan 23, 2006, at 10:45 AM, M. Carlson wrote:
Sorta looks like I'm S.O.L. on this one. Everything works except
NSImage -TIFFRepresentation, and who would have thought that it
needed a window?
Might there be some kind of game I could play with the environment,
where it thinks it can create an off-screen window or some such, or
maybe some way to run it as an app in the background since it
doesn't really need to access the screen...? There's *gotta* be a
way...!
--M
On Sun, 22 Jan 2006 10:47, j o a r wrote:
On 22 jan 2006, at 05.44, M. Carlson wrote:
Obviously, it wants to generate an ad hoc CGSWindow, but my tool
requires Foundation, Cocoa, and QuickTime, too. What to do?
You must avoid using "GUI frameworks" in utilities that you
expect will be used from the command line when the user running
the utility is not logged in. See the "Layered Frameworks"
section on this page for more info:
<http://developer.apple.com/technotes/tn2005/tn2083.html>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40positivespinmedia.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden