Revision: 7307
http://skim-app.svn.sourceforge.net/skim-app/?rev=7307&view=rev
Author: hofman
Date: 2011-06-21 18:02:00 +0000 (Tue, 21 Jun 2011)
Log Message:
-----------
only search when search field is in the toolbar
Modified Paths:
--------------
trunk/SKNotesDocument.m
Modified: trunk/SKNotesDocument.m
===================================================================
--- trunk/SKNotesDocument.m 2011-06-21 17:42:33 UTC (rev 7306)
+++ trunk/SKNotesDocument.m 2011-06-21 18:02:00 UTC (rev 7307)
@@ -530,8 +530,13 @@
- (void)performFindPanelAction:(id)sender {
if ([sender tag] == NSFindPanelActionShowFindPanel) {
- [[[[[self windowControllers] objectAtIndex:0] window] toolbar]
setVisible:YES];
- [searchField selectText:nil];
+ NSToolbar *toolbar = [[[[self windowControllers] objectAtIndex:0]
window] toolbar];
+ if ([[[toolbar items] valueForKey:@"itemIdentifier"]
containsObject:SKNotesDocumentSearchToolbarItemIdentifier]) {
+ [toolbar setVisible:YES];
+ [searchField selectText:nil];
+ } else {
+ NSBeep();
+ }
} else {
NSBeep();
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit