• 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
Unexpected extra "change" notification in 10.10
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Unexpected extra "change" notification in 10.10


  • Subject: Unexpected extra "change" notification in 10.10
  • From: Graham Cox <email@hidden>
  • Date: Mon, 24 Nov 2014 11:44:16 +1100

In my document-based app I'm seeing the following which does not occur on 10.9 or earlier.

I create a new document, dirty it by adding some content, then manually save it as a new file. The document's -updateChangeCount: method is called with a change of NSChangeDone. The stack trace shows:

#0	0x00000001000ad278 in -[GCOrteliusDocument updateChangeCount:] at /Users/grahamcox/Projects/Artboard/Artboard/Source/Code/GCOrteliusDocument.m:1633
#1	0x00007fff8252f610 in __52-[NSDocument _checkAutosavingThenUpdateChangeCount:]_block_invoke_3 ()
#2	0x00007fff8252edfb in -[NSDocument _checkAutosavingThenContinue:] ()
#3	0x00007fff8252f4c2 in __52-[NSDocument _checkAutosavingThenUpdateChangeCount:]_block_invoke_2 ()
#4	0x00007fff8bcdf54c in __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ ()
#5	0x00007fff8bcd1655 in __CFRunLoopDoBlocks ()
#6	0x00007fff8bcd0e0e in __CFRunLoopRun ()
#7	0x00007fff8bcd0838 in CFRunLoopRunSpecific ()
#8	0x00007fff8623143f in RunCurrentEventLoopInMode ()
#9	0x00007fff862311ba in ReceiveNextEventCommon ()
#10	0x00007fff86230ffb in _BlockUntilNextEventMatchingListInModeWithFilter ()
#11	0x00007fff820e4821 in _DPSNextEvent ()
#12	0x00007fff820e3fd0 in -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] ()
#13	0x00007fff820d7f73 in -[NSApplication run] ()
#14	0x00007fff820c3424 in NSApplicationMain ()


This causes the document to be flagged as dirty, prompting the "Save changes?" dialog when it's closed (if that is enabled). Subsequent saves don't trigger this notification, nor does saving the first time if it replaces an existing file on disk, only if it's a completely new file. I have autosaving enabled for this document.

Has anyone else noticed this? It doesn't seem as if I'm doing anything wrong as we're not seeing this except on 10.10

--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


  • Follow-Ups:
    • Re: Unexpected extra "change" notification in 10.10
      • From: Jerry Krinock <email@hidden>
  • Prev by Date: Re: Trouble getting ISO-8859-1 encoded feed to parse and display
  • Next by Date: Re: Unexpected extra "change" notification in 10.10
  • Previous by thread: Re: Trouble getting ISO-8859-1 encoded feed to parse and display
  • Next by thread: Re: Unexpected extra "change" notification in 10.10
  • Index(es):
    • Date
    • Thread