Revision: 7408
http://skim-app.svn.sourceforge.net/skim-app/?rev=7408&view=rev
Author: hofman
Date: 2011-07-31 20:41:19 +0000 (Sun, 31 Jul 2011)
Log Message:
-----------
don't synchronize with find pboard for notes document
Modified Paths:
--------------
trunk/SKNotesDocument.h
trunk/SKNotesDocument.m
Modified: trunk/SKNotesDocument.h
===================================================================
--- trunk/SKNotesDocument.h 2011-07-31 11:24:38 UTC (rev 7407)
+++ trunk/SKNotesDocument.h 2011-07-31 20:41:19 UTC (rev 7408)
@@ -47,7 +47,6 @@
SKNoteOutlineView *outlineView;
NSArrayController *arrayController;
NSSearchField *searchField;
- NSInteger lastFindChangeCount;
SKStatusBar *statusBar;
NSDictionary *toolbarItems;
NSArray *notes;
Modified: trunk/SKNotesDocument.m
===================================================================
--- trunk/SKNotesDocument.m 2011-07-31 11:24:38 UTC (rev 7407)
+++ trunk/SKNotesDocument.m 2011-07-31 20:41:19 UTC (rev 7408)
@@ -188,14 +188,6 @@
}
-- (void)windowDidBecomeKey:(NSNotification *)notification {
- NSPasteboard *findPboard = [NSPasteboard pasteboardWithName:NSFindPboard];
- if (lastFindChangeCount < [findPboard changeCount] && [findPboard
availableTypeFromArray:[NSArray arrayWithObject:NSStringPboardType]]) {
- [searchField setStringValue:[findPboard
stringForType:NSStringPboardType]];
- lastFindChangeCount = [findPboard changeCount];
- }
-}
-
- (NSArray *)writableTypesForSaveOperation:(NSSaveOperationType)saveOperation {
NSArray *writableTypes = [super
writableTypesForSaveOperation:saveOperation];
if (saveOperation == NSSaveToOperation) {
@@ -458,12 +450,6 @@
- (IBAction)searchNotes:(id)sender {
[self updateNoteFilterPredicate];
- if ([[sender stringValue] length]) {
- NSPasteboard *findPboard = [NSPasteboard
pasteboardWithName:NSFindPboard];
- [findPboard declareTypes:[NSArray arrayWithObject:NSStringPboardType]
owner:nil];
- [findPboard setString:[sender stringValue] forType:NSStringPboardType];
- lastFindChangeCount = [findPboard changeCount];
- }
}
- (IBAction)toggleStatusBar:(id)sender {
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Got Input? Slashdot Needs You.
Take our quick survey online. Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit