Re: [myNSWindow setDocumentEdited:dirtyB] fail ??
Re: [myNSWindow setDocumentEdited:dirtyB] fail ??
- Subject: Re: [myNSWindow setDocumentEdited:dirtyB] fail ??
- From: Graham Cox <email@hidden>
- Date: Sat, 8 Aug 2009 10:41:40 +1000
On 08/08/2009, at 10:20 AM, David M. Cotter wrote:
[myNSWindow setDocumentEdited:dirtyB]
it doesn't set the little red dot in the close box. and yes,
"dirtyB" is set to "YES".
Have you tried setting it on the window's controller instead? The
controller may need to synch with the window in some way...
Alternatively, you say you have no document model, but if you are
using NSDocument or NSUndoManager it will probably take over this
function and prevent you from directly setting the dirty state. Since
NSWindow can have an undo manager not associated with a document,
maybe this is what's happening? In which case there's no reason to set
the dirty bit at all, just put your undo tasks on the stack and it'll
handle it for you.
--Graham
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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