Revision: 3753
http://skim-app.svn.sourceforge.net/skim-app/?rev=3753&view=rev
Author: hofman
Date: 2008-04-18 04:17:28 -0700 (Fri, 18 Apr 2008)
Log Message:
-----------
Use separate undo manager for note text field to avoid adding empty undo groups
to the document undo manager.
Modified Paths:
--------------
trunk/Dutch.lproj/NoteWindow.nib/info.nib
trunk/Dutch.lproj/NoteWindow.nib/keyedobjects.nib
trunk/English.lproj/NoteWindow.nib/info.nib
trunk/English.lproj/NoteWindow.nib/keyedobjects.nib
trunk/French.lproj/NoteWindow.nib/keyedobjects.nib
trunk/German.lproj/NoteWindow.nib/keyedobjects.nib
trunk/Italian.lproj/NoteWindow.nib/info.nib
trunk/Italian.lproj/NoteWindow.nib/keyedobjects.nib
trunk/SKNoteWindowController.h
trunk/SKNoteWindowController.m
trunk/Spanish.lproj/NoteWindow.nib/keyedobjects.nib
trunk/cs.lproj/NoteWindow.nib/keyedobjects.nib
trunk/ru.lproj/NoteWindow.nib/keyedobjects.nib
Modified: trunk/Dutch.lproj/NoteWindow.nib/info.nib
===================================================================
--- trunk/Dutch.lproj/NoteWindow.nib/info.nib 2008-04-18 11:10:28 UTC (rev
3752)
+++ trunk/Dutch.lproj/NoteWindow.nib/info.nib 2008-04-18 11:17:28 UTC (rev
3753)
@@ -13,8 +13,8 @@
<string>489.0</string>
<key>IBOpenObjects</key>
<array>
+ <integer>114</integer>
<integer>7</integer>
- <integer>114</integer>
</array>
<key>IBSystem Version</key>
<string>9C7010</string>
Modified: trunk/Dutch.lproj/NoteWindow.nib/keyedobjects.nib
===================================================================
(Binary files differ)
Modified: trunk/English.lproj/NoteWindow.nib/info.nib
===================================================================
--- trunk/English.lproj/NoteWindow.nib/info.nib 2008-04-18 11:10:28 UTC (rev
3752)
+++ trunk/English.lproj/NoteWindow.nib/info.nib 2008-04-18 11:17:28 UTC (rev
3753)
@@ -13,8 +13,8 @@
<string>489.0</string>
<key>IBOpenObjects</key>
<array>
+ <integer>114</integer>
<integer>7</integer>
- <integer>114</integer>
</array>
<key>IBSystem Version</key>
<string>9C7010</string>
Modified: trunk/English.lproj/NoteWindow.nib/keyedobjects.nib
===================================================================
(Binary files differ)
Modified: trunk/French.lproj/NoteWindow.nib/keyedobjects.nib
===================================================================
(Binary files differ)
Modified: trunk/German.lproj/NoteWindow.nib/keyedobjects.nib
===================================================================
(Binary files differ)
Modified: trunk/Italian.lproj/NoteWindow.nib/info.nib
===================================================================
--- trunk/Italian.lproj/NoteWindow.nib/info.nib 2008-04-18 11:10:28 UTC (rev
3752)
+++ trunk/Italian.lproj/NoteWindow.nib/info.nib 2008-04-18 11:17:28 UTC (rev
3753)
@@ -13,8 +13,8 @@
<string>489.0</string>
<key>IBOpenObjects</key>
<array>
+ <integer>7</integer>
<integer>114</integer>
- <integer>7</integer>
</array>
<key>IBSystem Version</key>
<string>9C7010</string>
Modified: trunk/Italian.lproj/NoteWindow.nib/keyedobjects.nib
===================================================================
(Binary files differ)
Modified: trunk/SKNoteWindowController.h
===================================================================
--- trunk/SKNoteWindowController.h 2008-04-18 11:10:28 UTC (rev 3752)
+++ trunk/SKNoteWindowController.h 2008-04-18 11:17:28 UTC (rev 3753)
@@ -51,6 +51,8 @@
BOOL keepOnTop;
BOOL forceOnTop;
+ NSUndoManager *textViewUndoManager;
+
CFArrayRef editors;
}
Modified: trunk/SKNoteWindowController.m
===================================================================
--- trunk/SKNoteWindowController.m 2008-04-18 11:10:28 UTC (rev 3752)
+++ trunk/SKNoteWindowController.m 2008-04-18 11:17:28 UTC (rev 3753)
@@ -75,6 +75,7 @@
[note removeObserver:self forKeyPath:SKPDFAnnotationBoundsKey];
[[NSNotificationCenter defaultCenter] removeObserver:self];
CFRelease(editors);
+ [textViewUndoManager release];
[note release];
[super dealloc];
}
@@ -188,6 +189,13 @@
[self commitEditing];
}
+- (NSUndoManager *)undoManagerForTextView:(NSTextView *)aTextView {
+ NSUndoManager *textViewUndoManager = nil;
+ if (textViewUndoManager == nil)
+ textViewUndoManager = [[NSUndoManager alloc] init];
+ return textViewUndoManager;
+}
+
#pragma mark BDSKDragImageView delegate protocol
- (NSDragOperation)dragImageView:(BDSKDragImageView *)view validateDrop:(id
<NSDraggingInfo>)sender;
Modified: trunk/Spanish.lproj/NoteWindow.nib/keyedobjects.nib
===================================================================
(Binary files differ)
Modified: trunk/cs.lproj/NoteWindow.nib/keyedobjects.nib
===================================================================
(Binary files differ)
Modified: trunk/ru.lproj/NoteWindow.nib/keyedobjects.nib
===================================================================
(Binary files differ)
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit