Re: Verification of a bug
Re: Verification of a bug
- Subject: Re: Verification of a bug
- From: Scott Anguish <email@hidden>
- Date: Wed, 27 Mar 2002 14:50:30 -0500
this shouldn't be necessary, since this is already implemented (and
works in almost all the other cases).. and it worked fine before the
sheets UI was added.
also, TextEdit doesn't use the NSDocument code last time I checked...
On Wednesday, March 27, 2002, at 04:31 AM, Martin Kautz wrote:
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>
_______________________________________________
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.