Message: 12 Overriding Save function Date: Sat, 5 May 2007 01:43:58 -0400 email@hidden
Message: 12 Overriding Save function Date: Sat, 5 May 2007 01:43:58 -0400 email@hidden
- Subject: Message: 12 Overriding Save function Date: Sat, 5 May 2007 01:43:58 -0400 email@hidden
- From: Peter Hudson <email@hidden>
- Date: Sat, 05 May 2007 04:25:10 -0700
Control of the black pip in the close button is related to a dirty document - which in turn is related to the undo mechanism.
Looking at NSDocument.h where the method updateChangeCount: is defined, you will find the methods beneath it which pertain to the undo mechanism - and some useful comments.
You can remove the black pip by sending the message updateChangeCount:NSChangeDone at any time to your document. This may be all you need to do.
Alternatively, if appropriate, remove the undo manager and work from there.
Peter
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden