Re: Use of AppKit in command-line app on headless node
Re: Use of AppKit in command-line app on headless node
- Subject: Re: Use of AppKit in command-line app on headless node
- From: Rick Hoge <email@hidden>
- Date: Mon, 11 Aug 2008 14:58:40 -0400
I am trying to factor some frameworks so that code used in a
document-based Cocoa app can be shared with command-line tools that
might run on a headless node (no window server).
I've seen some discussion in the past on questions such as whether
NSImage and related classes can be used headless. It seems that
this works, but it's necessary to initialize and NSApplication
instance for the classes to work correctly.
I noticed that there is some useful info relating to this topic in the
documentation on Agents and Daemons at
http://developer.apple.com/technotes/tn2005/tn2083.html#SECLIVINGDANGEROUSLY
It does say that AppKit is not daemon-safe, but my testing suggests
that if (as suggested in the technote) you avoid sensitive methods it
should be ok (more info would be welcome).
I should also mention that the code in question would potentially be
run under Xgrid - have not tested this yet; wonder if there could be
bootstrap namespace issues here...
Rick
_______________________________________________
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