• 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: Close box not showing as dirty when the doc says it's dirty
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Close box not showing as dirty when the doc says it's dirty


  • Subject: Re: Close box not showing as dirty when the doc says it's dirty
  • From: Steve Mills <email@hidden>
  • Date: Tue, 05 Feb 2013 19:25:55 -0600

On Feb 5, 2013, at 19:09:54, Lee Ann Rucker <email@hidden> wrote:

> There's probably a KVO observer on isDocumentEdited; if nothing triggers setDocumentEdited then it doesn't know to check it.
>
> updateChangeCount: says
>
> If you are implementing undo and redo in an application, you should increment the change count every time you create an undo group and decrement the change count when an undo or redo operation is performed.
> Note that if you are using the NSDocument default undo/redo features, setting the document’s edited status by updating the change count happens automatically. You only need to invoke this method when you are not using these features.

Ah, thanks! I'll give it a shot tomorrow.

--
Steve Mills
office: 952-818-3871
home: 952-401-6255
cell: 612-803-6157



_______________________________________________

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


References: 
 >Close box not showing as dirty when the doc says it's dirty (From: Steve Mills <email@hidden>)
 >Re: Close box not showing as dirty when the doc says it's dirty (From: Markus Spoettl <email@hidden>)
 >Re: Close box not showing as dirty when the doc says it's dirty (From: Steve Mills <email@hidden>)
 >Re: Close box not showing as dirty when the doc says it's dirty (From: Lee Ann Rucker <email@hidden>)

  • Prev by Date: Re: What's the difference between [NSOperationQueue currentQueue] and performSelectorOnMainThread (iOS platform)
  • Next by Date: Re: Autoscrolling in NSDraggingDestination
  • Previous by thread: Re: Close box not showing as dirty when the doc says it's dirty
  • Next by thread: Re: Close box not showing as dirty when the doc says it's dirty
  • Index(es):
    • Date
    • Thread