Re: Verification of a bug
Re: Verification of a bug
- Subject: Re: Verification of a bug
- From: Martin Kautz <email@hidden>
- Date: Wed, 27 Mar 2002 10:31:31 +0100
Am 27.03.2002 9:26 Uhr schrieb "Scott Anguish" <email@hidden> :
>
can anyone verify this as a bug?
>
>
I've got a basic document application with a text view (HTMLEditorX to
>
be exact)
>
>
the archive is here
>
>
http://graphics.stepwise.com/Articles/HTMLEditorX/HTMLEditorX-1.dmg
>
>
if you make a new document, type some text, save, and then type some
>
more text, the document isn't marked dirty automatically..
Hello Scott,
guess you need to care about your doc's change state by yourself.
There's a good example in Apples TextEdit source...
<snip>
- (void)setDocumentEdited:(BOOL)flag {
if (flag != isDocumentEdited) {
isDocumentEdited = flag;
[[self window] setDocumentEdited:isDocumentEdited];
if (transientDocument == self) transientDocument = nil;
}
if (!isDocumentEdited) changeCount = 0;
}
- (BOOL)isDocumentEdited {
return isDocumentEdited;
}
</snip>
Martin
>
_______________________________________________
>
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.
_______________________________________________
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.