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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to