Revision: 7589 http://skim-app.svn.sourceforge.net/skim-app/?rev=7589&view=rev Author: hofman Date: 2011-12-20 13:30:26 +0000 (Tue, 20 Dec 2011) Log Message: ----------- continuously update find string binding, so we don't need to commit, which apparently now can lead to loss of focus
Modified Paths: -------------- trunk/FindBar.xib trunk/SKFindController.m Modified: trunk/FindBar.xib =================================================================== --- trunk/FindBar.xib 2011-12-19 12:16:24 UTC (rev 7588) +++ trunk/FindBar.xib 2011-12-20 13:30:26 UTC (rev 7589) @@ -38,7 +38,7 @@ <string key="NSClassName">NSApplication</string> </object> <object class="NSCustomView" id="1005"> - <nil key="NSNextResponder"/> + <reference key="NSNextResponder"/> <int key="NSvFlags">266</int> <object class="NSMutableArray" key="NSSubviews"> <bool key="EncodedWithXMLCoder">YES</bool> @@ -47,6 +47,7 @@ <int key="NSvFlags">-2147483380</int> <string key="NSFrame">{{7, 6}, {58, 14}}</string> <reference key="NSSuperview" ref="1005"/> + <reference key="NSWindow"/> <bool key="NSEnabled">YES</bool> <object class="NSTextFieldCell" key="NSCell" id="604613997"> <int key="NSCellFlags">68288064</int> @@ -83,6 +84,7 @@ <int key="NSvFlags">265</int> <string key="NSFrame">{{169, 3}, {42, 19}}</string> <reference key="NSSuperview" ref="1005"/> + <reference key="NSWindow"/> <bool key="NSEnabled">YES</bool> <object class="NSButtonCell" key="NSCell" id="1028549383"> <int key="NSCellFlags">-2080244224</int> @@ -107,6 +109,7 @@ <int key="NSvFlags">268</int> <string key="NSFrame">{{69, 3}, {43, 20}}</string> <reference key="NSSuperview" ref="1005"/> + <reference key="NSWindow"/> <bool key="NSEnabled">YES</bool> <object class="NSSegmentedCell" key="NSCell" id="89567464"> <int key="NSCellFlags">67239424</int> @@ -149,6 +152,7 @@ <int key="NSvFlags">266</int> <string key="NSFrame">{{119, 4}, {42, 19}}</string> <reference key="NSSuperview" ref="1005"/> + <reference key="NSWindow"/> <bool key="NSEnabled">YES</bool> <object class="NSSearchFieldCell" key="NSCell" id="505043563"> <int key="NSCellFlags">343014976</int> @@ -225,6 +229,8 @@ </object> </object> <string key="NSFrameSize">{220, 25}</string> + <reference key="NSSuperview"/> + <reference key="NSWindow"/> <string key="NSClassName">SKGradientView</string> </object> <object class="NSObjectController" id="766371852"> @@ -272,22 +278,6 @@ <int key="connectionID">19</int> </object> <object class="IBConnectionRecord"> - <object class="IBBindingConnection" key="connection"> - <string key="label">value: selection.findString</string> - <reference key="source" ref="930853778"/> - <reference key="destination" ref="766371852"/> - <object class="NSNibBindingConnector" key="connector"> - <reference key="NSSource" ref="930853778"/> - <reference key="NSDestination" ref="766371852"/> - <string key="NSLabel">value: selection.findString</string> - <string key="NSBinding">value</string> - <string key="NSKeyPath">selection.findString</string> - <int key="NSNibBindingConnectorVersion">2</int> - </object> - </object> - <int key="connectionID">21</int> - </object> - <object class="IBConnectionRecord"> <object class="IBOutletConnection" key="connection"> <string key="label">ownerController</string> <reference key="source" ref="1001"/> @@ -335,6 +325,26 @@ </object> <int key="connectionID">34</int> </object> + <object class="IBConnectionRecord"> + <object class="IBBindingConnection" key="connection"> + <string key="label">value: selection.findString</string> + <reference key="source" ref="930853778"/> + <reference key="destination" ref="766371852"/> + <object class="NSNibBindingConnector" key="connector"> + <reference key="NSSource" ref="930853778"/> + <reference key="NSDestination" ref="766371852"/> + <string key="NSLabel">value: selection.findString</string> + <string key="NSBinding">value</string> + <string key="NSKeyPath">selection.findString</string> + <object class="NSDictionary" key="NSOptions"> + <string key="NS.key.0">NSContinuouslyUpdatesValue</string> + <boolean value="YES" key="NS.object.0"/> + </object> + <int key="NSNibBindingConnectorVersion">2</int> + </object> + </object> + <int key="connectionID">35</int> + </object> </object> <object class="IBMutableOrderedSet" key="objectRecords"> <object class="NSArray" key="orderedObjects"> @@ -503,7 +513,7 @@ </object> </object> <nil key="sourceID"/> - <int key="maxID">34</int> + <int key="maxID">35</int> </object> <object class="IBClassDescriber" key="IBDocument.Classes"> <object class="NSMutableArray" key="referencedPartialClassDescriptions"> @@ -512,7 +522,7 @@ <string key="className">NSApplication</string> <object class="IBClassDescriptionSource" key="sourceIdentifier"> <string key="majorKey">IBProjectSource</string> - <string key="minorKey">SKRichTextFormat.h</string> + <string key="minorKey">NSAttributedString_SKExtensions.h</string> </object> </object> <object class="IBPartialClassDescription"> Modified: trunk/SKFindController.m =================================================================== --- trunk/SKFindController.m 2011-12-19 12:16:24 UTC (rev 7588) +++ trunk/SKFindController.m 2011-12-20 13:30:26 UTC (rev 7589) @@ -209,7 +209,6 @@ } - (void)findWithOptions:(NSStringCompareOptions)backForwardOption { - [ownerController commitEditing]; BOOL found = YES; if ([findString length]) { NSInteger findOptions = [[NSUserDefaults standardUserDefaults] boolForKey:SKCaseInsensitiveFindKey] ? NSCaseInsensitiveSearch : 0; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Write once. Port to many. Get the SDK and tools to simplify cross-platform app development. Create new or port existing apps to sell to consumers worldwide. Explore the Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join http://p.sf.net/sfu/intel-appdev _______________________________________________ Skim-app-commit mailing list Skim-app-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/skim-app-commit