Re: saveDocument: Troubles.
Re: saveDocument: Troubles.
- Subject: Re: saveDocument: Troubles.
- From: j o a r <email@hidden>
- Date: Sat, 17 May 2003 15:30:53 +0200
Do you flag the document as being edited when the user enter text in
the text field (using updateChangeCount:)? If not, isDocumentEdited
will never return anything but NO.
j o a r
On Saturday, May 17, 2003, at 14:56 Europe/Stockholm, Oliver Cameron
wrote:
I have a toolbar item, a save document one. Here is my code that
validates and enables the toolbar item:
if ( [theItem action] == @selector(saveDocument:) )
return [self isDocumentEdited];
Upon the app start up, the save item is disabled. Which is what I want,
but when I edit the text box. It still does not come out of being
disabled. But when I just return as YES;, the default save box comes up
like I would want.
_______________________________________________
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.