• 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
Message: 12 Overriding Save function Date: Sat, 5 May 2007 01:43:58 -0400 email@hidden
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Joseph has Tagged you! :)
  • Next by Date: Re: initWithHTML Memory leak
  • Previous by thread: Joseph has Tagged you! :)
  • Next by thread: Re: Model change behind NSTreeController's back
  • Index(es):
    • Date
    • Thread