• 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: RTFD from a Foundation app?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: RTFD from a Foundation app?


  • Subject: Re: RTFD from a Foundation app?
  • From: Douglas Davidson <email@hidden>
  • Date: Thu, 6 Feb 2003 12:03:41 -0800

On Thursday, February 6, 2003, at 09:54 AM, Alex Rice wrote:

The code for reading and writing RTF and RTFD resides in the AppKit. Even the relevant attributes are defined in the AppKit. However, it should be possible for command-line tools to link with AppKit if necessary.

That's what I was doing originally but was getting this error when executing if the user is not logged in (from cron)

kCGErrorIllegalArgument : initCGDisplayState: cannot map display interlocks.
kCGErrorIllegalArgument : CGSNewConnection cannot get connection port
INIT_Processeses(), could not establish the default connection to the WindowServer.Abort

I misinterpreted this and thought I couldn't link with AppKit at all, if running while the user is not logged, but now I see that's not the case - I can link with AppKit. But, what things are going to fail in AppKit if I message them while the user is not logged in?

There is no definitive list of what can and can't be done in AppKit without a connection to the Window Server. A general goal is that anything not actually using windows should not try to connect, but that is not always achieved in practice. Jaguar should be significantly better in this regard than earlier releases. If you are having problems, you can try to get a backtrace from the point of failure and see what is causing the connection, but I can't guarantee that every issue of this sort can be worked around.

Douglas Davidson
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: RTFD from a Foundation app? (From: Alex Rice <email@hidden>)

  • Prev by Date: NEWBIE: where to start my thread
  • Next by Date: Re: NSConnection
  • Previous by thread: Re: RTFD from a Foundation app?
  • Next by thread: Delegation methods from NSOpenPanel?
  • Index(es):
    • Date
    • Thread