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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to