discuss-gnustep
[Top][All Lists]
Advanced

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

Re: Need help with new app


From: Adam Fedor
Subject: Re: Need help with new app
Date: Sun, 28 Jul 2002 21:57:33 -0600
User-agent: Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:1.0rc2) Gecko/20020513

Larry Coleman wrote:
Hello, all.

I'm working on an application to keep recipes. The basic functionality is there, but the "Save" item on the Document menu stays disabled even when I open or change a document. I copied most of the controller logic from Ink.App, which seems to work fine for me. Can anyone tell me what I'm doing wrong?



I'm not that familier with the NSDocument classes, but it appears that you have to set the document as the window's delegate, perhaps in -makeWindowControllers:

[win setDelegate: self];

I'm still a little confused by the documentation, so I may be wrong about whether you have to do it in your custom subclass or if it should be done automatically in NSDocument.


--
Adam Fedor, Digital Optics Corp.      | I'm glad I hate spinach, because
http://www.doc.com                    | if I didn't, I'd eat it, and you
                                      | know how I hate the stuff.




reply via email to

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