• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Use of AppKit in command-line app on headless node
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Use of AppKit in command-line app on headless node
      • From: "Michael Ash" <email@hidden>
    • Re: Use of AppKit in command-line app on headless node
      • From: "Ken Ferry" <email@hidden>
References: 
 >Use of AppKit in command-line app on headless node (From: Rick Hoge <email@hidden>)

  • Prev by Date: Re: Delayed termination to allow release
  • Next by Date: Re: Delayed termination to allow release
  • Previous by thread: Use of AppKit in command-line app on headless node
  • Next by thread: Re: Use of AppKit in command-line app on headless node
  • Index(es):
    • Date
    • Thread