• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Dirty document at startup
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Dirty document at startup (From: Koen van der Drift <email@hidden>)
 >Re: Dirty document at startup (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: Getting a list of files/folders in a folder/drive
  • Next by Date: Re: Getting a list of files/folders in a folder/drive
  • Previous by thread: Re: Dirty document at startup
  • Next by thread: Re: Enabling a Menu item
  • Index(es):
    • Date
    • Thread