Revision: 3596
http://skim-app.svn.sourceforge.net/skim-app/?rev=3596&view=rev
Author: hofman
Date: 2008-04-02 07:27:52 -0700 (Wed, 02 Apr 2008)
Log Message:
-----------
Use pointer equality to compare notes used as keys.
Modified Paths:
--------------
trunk/SKMainWindowController.m
Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m 2008-04-02 12:05:02 UTC (rev 3595)
+++ trunk/SKMainWindowController.m 2008-04-02 14:27:52 UTC (rev 3596)
@@ -3683,7 +3683,7 @@
NSUndoManager *undoManager = [[self document] undoManager];
if (undoGroupOldPropertiesPerNote == nil) {
// We haven't recorded changes for any notes at all since
the last undo manager checkpoint. Get ready to start collecting them. We don't
want to copy the PDFAnnotations though.
- undoGroupOldPropertiesPerNote = (NSMutableDictionary
*)CFDictionaryCreateMutable(NULL, 0, &kCFTypeDictionaryKeyCallBacks,
&kCFTypeDictionaryValueCallBacks);
+ undoGroupOldPropertiesPerNote = (NSMutableDictionary
*)CFDictionaryCreateMutable(NULL, 0,
&SKPointerEqualObjectDictionaryKeyCallbacks, &kCFTypeDictionaryValueCallBacks);
// Register an undo operation for any note property
changes that are going to be coalesced between now and the next invocation of
-observeUndoManagerCheckpoint:.
[undoManager registerUndoWithTarget:self
selector:@selector(setNoteProperties:) object:undoGroupOldPropertiesPerNote];
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit