Re: Dirty document at startup
Re: Dirty document at startup
- Subject: Re: Dirty document at startup
- From: Koen van der Drift <email@hidden>
- Date: Thu, 4 Jan 2007 23:36:26 -0500
On Jan 4, 2007, at 2:38 PM, Nick Zitzmann wrote:
On Jan 4, 2007, at 8:30 AM, Koen van der Drift wrote:
An document based app I am working on shows each new document as
being 'dirty', even at start up without any text in it. I am using
a subclass of NSDocument, and also use an NSWindowController
subclass. I have looked all over my code but see not where this
could be happening. Maybe a setting somewhere in IB?
Any clues where I should start looking?
Try setting a breakpoint on -[NSWindow setDocumentEdited:].
Well that didn't work, but I did find what was going on. I was
setting an empty string for the NSTextView in my document. I solved
it by testing first if the string has zero characters, in that case I
won't call SetString.
- Koen.
_______________________________________________
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