Q: When can I download PostScript code to the Window Server? Can I use the +initialize methods for factory objects?
언제 PostScript코드를 Windows Server에 다운로드 할 수 있나요? Factory객체의 +initialize 메소드를 사용하면 되나요?

A: Object class +initialize methods cannot download PostScript code to the Window Server because they are run before the connection to the Server has been established. Initialize messages for classes always get sent before any other messages are delivered, 
specifically before [Application new] has been executed. But [Application new] is what connects the program to the Server.
객체 클래스의 +initialize 메소드는 Windows서버에 PostScript코드를 다운로드 시킬 수 없습니다 왜냐하면 (메소드를) 실행하기전에 서버와의 connection이 맺어져 있기 때문입니다. 클래스를 위한 초기화 메세지는 항상 다른 메세지가 도착하기전에 되어야 전달되어야 합니다.
구체적으로 보면 [Application new] 이전에 실행되어야 합니다. 하지만 [Application new] 는 어떤 프로그램 연결도 서버로 보냅니다.
A good time to download code to the server is after [Application new] and loading the nib section, but before the application starts running. In your main(), after sending the loadNibSection method, sent a setUp message, like this:
서버에 코드를 다운로드 시키는 좋은 시점은 [Application new] 의 이후 nib를 로딩할때 입니다. 하지만 이전에 어플리케이션이 실행된 상태여야 합니다. 당신의 main()안에서 말입니다. loadNibSection 메소드를 보낸후 setUp메세지를 보내세요. 이런식으로 하면 됩니다:

[NXApp loadNibSection:”MyNibFile.nib” owner:NXApp];
[NXGetNamedObject(“MyObj”, NXApp) setUp];

setUp is an instance method that downloads PostScript code to the Window Server.
setUP은 Window Server에 PostScript 코드를 다운로드 시키는 인스턴스 메소드 입니다.

QA29

Valid for 1.0, 2.0, 3.0