help-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Gorm for Document-base application


From: Yen-Ju Chen
Subject: Re: Gorm for Document-base application
Date: Fri, 14 Mar 2003 00:12:45 -0500


 Solve the problem by my self:

Not only the _window of NSOwner (Document class) is connected to the window
 but also the window need to set NSOwner as its delegate.

 Yen-Ju

From: "Yen-Ju Chen" <yjchenx@hotmail.com>
To: help-gnustep@gnu.org
Subject: Gorm for Document-base application
Date: Thu, 13 Mar 2003 17:08:03 -0500

Hi,

 I try to use Gorm to write a document-based application.
 The problem I have is that the main menu can't find
 the actions in the subclass of NSDocument.

 For example, I have a MainMenu.gorm only for main menu,
 a Document.gorm for document interface,
 and a Document class, which is a subclass of NSDocument.

 I can use "Document->New Document" to open a new document
 as long as I add a NSDocumentController instance in
 the MainMenu.gorm and connect the "Document->New Document"
 to the - newDocument: in NSDocumentController.

The "Document->Save Document" should call - saveDocument: in the Document class whenever there is one,
 but it won't.
There is also no way to connect the menu to - saveDocument: in Document class.
 What should I do to make the menu work (find the action)  ?

 Thanx.

 Yen-Ju







_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail



_______________________________________________
Help-gnustep mailing list
Help-gnustep@gnu.org
http://mail.gnu.org/mailman/listinfo/help-gnustep


_________________________________________________________________
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus





reply via email to

[Prev in Thread] Current Thread [Next in Thread]