Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed exception in -[SMLTextView selectionRangeForProposedRange:granu…

…larity:] (invalid event type for -clickCount)
  • Loading branch information...
commit 27c78806bc8f482153fedd8602fdb616e8b5f376 1 parent c31d229
@mugginsoft authored
View
82 Fragaria.xcodeproj/Jonathan.pbxuser
@@ -132,8 +132,8 @@
PBXFileDataSource_Warnings_ColumnID,
);
};
- PBXPerProjectTemplateStateSaveDate = 301931372;
- PBXWorkspaceStateSaveDate = 301931372;
+ PBXPerProjectTemplateStateSaveDate = 301936130;
+ PBXWorkspaceStateSaveDate = 301936130;
};
perUserProjectItems = {
AB39765D118C8F2C00AEF388 /* PBXTextBookmark */ = AB39765D118C8F2C00AEF388 /* PBXTextBookmark */;
@@ -169,12 +169,12 @@
AB92A4181192C5A10055A3E7 /* PlistBookmark */ = AB92A4181192C5A10055A3E7 /* PlistBookmark */;
AB92A41B1192C5A10055A3E7 /* PBXTextBookmark */ = AB92A41B1192C5A10055A3E7 /* PBXTextBookmark */;
ABD0FE7C11935D8C00E6AFE6 /* PBXTextBookmark */ = ABD0FE7C11935D8C00E6AFE6 /* PBXTextBookmark */;
- ABEB403611FF1985007748DF /* PBXTextBookmark */ = ABEB403611FF1985007748DF /* PBXTextBookmark */;
ABEB403711FF1985007748DF /* PBXTextBookmark */ = ABEB403711FF1985007748DF /* PBXTextBookmark */;
ABEB403811FF1985007748DF /* PBXTextBookmark */ = ABEB403811FF1985007748DF /* PBXTextBookmark */;
- ABEB403911FF1985007748DF /* PBXTextBookmark */ = ABEB403911FF1985007748DF /* PBXTextBookmark */;
- ABEB412111FF1B77007748DF /* PBXTextBookmark */ = ABEB412111FF1B77007748DF /* PBXTextBookmark */;
- ABEB413111FF1BAC007748DF /* PBXTextBookmark */ = ABEB413111FF1BAC007748DF /* PBXTextBookmark */;
+ ABEB418E11FF1E72007748DF /* PBXTextBookmark */ = ABEB418E11FF1E72007748DF /* PBXTextBookmark */;
+ ABEB419911FF207E007748DF /* PBXTextBookmark */ = ABEB419911FF207E007748DF /* PBXTextBookmark */;
+ ABEB458511FF2F32007748DF /* PBXTextBookmark */ = ABEB458511FF2F32007748DF /* PBXTextBookmark */;
+ ABEB458611FF2F36007748DF /* PBXTextBookmark */ = ABEB458611FF2F36007748DF /* PBXTextBookmark */;
ABF66CBC11DA9E85004F9939 /* PBXTextBookmark */ = ABF66CBC11DA9E85004F9939 /* PBXTextBookmark */;
ABFBCC7F1192186800F55626 /* PBXTextBookmark */ = ABFBCC7F1192186800F55626 /* PBXTextBookmark */;
ABFBCC971192199000F55626 /* PlistBookmark */ = ABFBCC971192199000F55626 /* PlistBookmark */;
@@ -537,9 +537,9 @@
};
AB648E3F11FB38E700AEF7BD /* MyDocument.m */ = {
uiCtxt = {
- sepNavIntBoundsRect = "{{0, 0}, {1748, 1781}}";
- sepNavSelRange = "{1939, 0}";
- sepNavVisRange = "{762, 1509}";
+ sepNavIntBoundsRect = "{{0, 0}, {1748, 1820}}";
+ sepNavSelRange = "{217, 0}";
+ sepNavVisRange = "{192, 1633}";
sepNavWindowFrame = "{{254, 47}, {1214, 831}}";
};
};
@@ -703,9 +703,9 @@
};
AB69B65A118B75FB00903D1D /* SMLSyntaxColouring.m */ = {
uiCtxt = {
- sepNavIntBoundsRect = "{{0, 0}, {2532, 17472}}";
- sepNavSelRange = "{48781, 13}";
- sepNavVisRange = "{48912, 1393}";
+ sepNavIntBoundsRect = "{{0, 0}, {2252, 16900}}";
+ sepNavSelRange = "{901, 18}";
+ sepNavVisRange = "{1533, 3954}";
sepNavWindowFrame = "{{29, 173}, {1251, 829}}";
};
};
@@ -785,9 +785,9 @@
};
AB69B68E118B78D400903D1D /* SMLTextView.m */ = {
uiCtxt = {
- sepNavIntBoundsRect = "{{0, 0}, {2147, 8268}}";
- sepNavSelRange = "{3942, 0}";
- sepNavVisRange = "{0, 1438}";
+ sepNavIntBoundsRect = "{{0, 0}, {1377, 8281}}";
+ sepNavSelRange = "{7386, 0}";
+ sepNavVisRange = "{6195, 2755}";
sepNavWindowFrame = "{{0, 102}, {1384, 900}}";
};
};
@@ -917,16 +917,6 @@
vrLen = 1961;
vrLoc = 2276;
};
- ABEB403611FF1985007748DF /* PBXTextBookmark */ = {
- isa = PBXTextBookmark;
- fRef = AB648E3F11FB38E700AEF7BD /* MyDocument.m */;
- name = "MyDocument.m: 68";
- rLen = 0;
- rLoc = 1939;
- rType = 0;
- vrLen = 1509;
- vrLoc = 762;
- };
ABEB403711FF1985007748DF /* PBXTextBookmark */ = {
isa = PBXTextBookmark;
fRef = AB69B666118B768000903D1D /* SMLTextView.h */;
@@ -947,17 +937,7 @@
vrLen = 1918;
vrLoc = 0;
};
- ABEB403911FF1985007748DF /* PBXTextBookmark */ = {
- isa = PBXTextBookmark;
- fRef = AB69B65A118B75FB00903D1D /* SMLSyntaxColouring.m */;
- name = "SMLSyntaxColouring.m: 1099";
- rLen = 13;
- rLoc = 48781;
- rType = 0;
- vrLen = 1373;
- vrLoc = 0;
- };
- ABEB412111FF1B77007748DF /* PBXTextBookmark */ = {
+ ABEB418E11FF1E72007748DF /* PBXTextBookmark */ = {
isa = PBXTextBookmark;
fRef = AB69B68E118B78D400903D1D /* SMLTextView.m */;
name = "SMLTextView.m: 88";
@@ -967,16 +947,36 @@
vrLen = 1438;
vrLoc = 0;
};
- ABEB413111FF1BAC007748DF /* PBXTextBookmark */ = {
+ ABEB419911FF207E007748DF /* PBXTextBookmark */ = {
isa = PBXTextBookmark;
- fRef = AB69B68E118B78D400903D1D /* SMLTextView.m */;
- name = "SMLTextView.m: 88";
+ fRef = AB69B65A118B75FB00903D1D /* SMLSyntaxColouring.m */;
+ name = "SMLSyntaxColouring.m: 26";
+ rLen = 18;
+ rLoc = 901;
+ rType = 0;
+ vrLen = 3954;
+ vrLoc = 1533;
+ };
+ ABEB458511FF2F32007748DF /* PBXTextBookmark */ = {
+ isa = PBXTextBookmark;
+ fRef = AB648E3F11FB38E700AEF7BD /* MyDocument.m */;
+ name = "MyDocument.m: 12";
rLen = 0;
- rLoc = 3942;
+ rLoc = 217;
rType = 0;
- vrLen = 1438;
+ vrLen = 1825;
vrLoc = 0;
};
+ ABEB458611FF2F36007748DF /* PBXTextBookmark */ = {
+ isa = PBXTextBookmark;
+ fRef = AB648E3F11FB38E700AEF7BD /* MyDocument.m */;
+ name = "MyDocument.m: 12";
+ rLen = 0;
+ rLoc = 217;
+ rType = 0;
+ vrLen = 1633;
+ vrLoc = 192;
+ };
ABF66CBC11DA9E85004F9939 /* PBXTextBookmark */ = {
isa = PBXTextBookmark;
fRef = AB69B66F118B76AE00903D1D /* NSStringICUAdditions.m */;
View
85 Fragaria.xcodeproj/Jonathan.perspectivev3
@@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>ActivePerspectiveName</key>
- <string>Debug</string>
+ <string>Project</string>
<key>AllowedModules</key>
<array>
<dict>
@@ -311,8 +311,9 @@
<key>PBXSmartGroupTreeModuleOutlineStateSelectionKey</key>
<array>
<array>
- <integer>50</integer>
- <integer>47</integer>
+ <integer>10</integer>
+ <integer>9</integer>
+ <integer>8</integer>
<integer>0</integer>
</array>
</array>
@@ -333,6 +334,8 @@
<string>MainColumn</string>
<real>385</real>
</array>
+ <key>RubberWindowFrame</key>
+ <string>16 102 1280 900 0 0 1280 1002 </string>
</dict>
<key>Module</key>
<string>PBXSmartGroupTreeModule</string>
@@ -348,7 +351,7 @@
<key>PBXProjectModuleGUID</key>
<string>AB69B646118B75A400903D1D</string>
<key>PBXProjectModuleLabel</key>
- <string>SMLTextView.m</string>
+ <string>MyDocument.m</string>
<key>PBXSplitModuleInNavigatorKey</key>
<dict>
<key>Split0</key>
@@ -356,11 +359,11 @@
<key>PBXProjectModuleGUID</key>
<string>AB69B647118B75A400903D1D</string>
<key>PBXProjectModuleLabel</key>
- <string>SMLTextView.m</string>
+ <string>MyDocument.m</string>
<key>_historyCapacity</key>
<integer>0</integer>
<key>bookmark</key>
- <string>ABEB413111FF1BAC007748DF</string>
+ <string>ABEB458611FF2F36007748DF</string>
<key>history</key>
<array>
<string>AB69B6E9118B7F4600903D1D</string>
@@ -400,11 +403,11 @@
<string>AB648EE411FB5DCF00AEF7BD</string>
<string>AB648F4B11FC316800AEF7BD</string>
<string>AB648F5A11FC318D00AEF7BD</string>
- <string>ABEB403611FF1985007748DF</string>
<string>ABEB403711FF1985007748DF</string>
<string>ABEB403811FF1985007748DF</string>
- <string>ABEB403911FF1985007748DF</string>
- <string>ABEB412111FF1B77007748DF</string>
+ <string>ABEB418E11FF1E72007748DF</string>
+ <string>ABEB419911FF207E007748DF</string>
+ <string>ABEB458511FF2F32007748DF</string>
</array>
</dict>
<key>SplitCount</key>
@@ -418,16 +421,18 @@
<key>GeometryConfiguration</key>
<dict>
<key>Frame</key>
- <string>{{0, 0}, {873, 679}}</string>
+ <string>{{0, 0}, {873, 671}}</string>
+ <key>RubberWindowFrame</key>
+ <string>16 102 1280 900 0 0 1280 1002 </string>
</dict>
<key>Module</key>
<string>PBXNavigatorGroup</string>
<key>Proportion</key>
- <string>679pt</string>
+ <string>671pt</string>
</dict>
<dict>
<key>Proportion</key>
- <string>175pt</string>
+ <string>183pt</string>
<key>Tabs</key>
<array>
<dict>
@@ -441,7 +446,7 @@
<key>GeometryConfiguration</key>
<dict>
<key>Frame</key>
- <string>{{10, 27}, {873, 148}}</string>
+ <string>{{10, 27}, {873, 156}}</string>
</dict>
<key>Module</key>
<string>XCDetailModule</string>
@@ -516,7 +521,9 @@
<key>GeometryConfiguration</key>
<dict>
<key>Frame</key>
- <string>{{10, 27}, {873, 148}}</string>
+ <string>{{10, 27}, {873, 156}}</string>
+ <key>RubberWindowFrame</key>
+ <string>16 102 1280 900 0 0 1280 1002 </string>
</dict>
<key>Module</key>
<string>PBXBuildResultsModule</string>
@@ -544,11 +551,11 @@
</array>
<key>TableOfContents</key>
<array>
- <string>ABEB412611FF1B9C007748DF</string>
+ <string>ABEB457811FF2EDF007748DF</string>
<string>1CA23ED40692098700951B8B</string>
- <string>ABEB412711FF1B9C007748DF</string>
+ <string>ABEB457911FF2EDF007748DF</string>
<string>AB69B646118B75A400903D1D</string>
- <string>ABEB412811FF1B9C007748DF</string>
+ <string>ABEB457A11FF2EDF007748DF</string>
<string>1CA23EDF0692099D00951B8B</string>
<string>1CA23EE00692099D00951B8B</string>
<string>1CA23EE10692099D00951B8B</string>
@@ -589,8 +596,6 @@
<key>Layout</key>
<array>
<dict>
- <key>BecomeActive</key>
- <true/>
<key>ContentConfiguration</key>
<dict>
<key>PBXProjectModuleGUID</key>
@@ -601,14 +606,12 @@
<key>GeometryConfiguration</key>
<dict>
<key>Frame</key>
- <string>{{0, 0}, {1280, 53}}</string>
- <key>RubberWindowFrame</key>
- <string>0 102 1280 900 0 0 1280 1002 </string>
+ <string>{{0, 0}, {1280, 33}}</string>
</dict>
<key>Module</key>
<string>PBXDebugCLIModule</string>
<key>Proportion</key>
- <string>53pt</string>
+ <string>33pt</string>
</dict>
<dict>
<key>ContentConfiguration</key>
@@ -627,8 +630,8 @@
<string>yes</string>
<key>sizes</key>
<array>
- <string>{{0, 0}, {294, 404}}</string>
- <string>{{0, 404}, {294, 397}}</string>
+ <string>{{0, 0}, {294, 414}}</string>
+ <string>{{0, 414}, {294, 407}}</string>
</array>
</dict>
<key>VerticalSplitView</key>
@@ -643,8 +646,8 @@
<string>yes</string>
<key>sizes</key>
<array>
- <string>{{0, 0}, {294, 801}}</string>
- <string>{{294, 0}, {986, 801}}</string>
+ <string>{{0, 0}, {294, 821}}</string>
+ <string>{{294, 0}, {986, 821}}</string>
</array>
</dict>
</dict>
@@ -664,7 +667,7 @@
<key>DebugSTDIOWindowFrame</key>
<string>{{200, 200}, {500, 300}}</string>
<key>Frame</key>
- <string>{{0, 58}, {1280, 801}}</string>
+ <string>{{0, 38}, {1280, 821}}</string>
<key>PBXDebugSessionStackFrameViewKey</key>
<dict>
<key>DebugVariablesTableConfiguration</key>
@@ -677,17 +680,13 @@
<real>80</real>
</array>
<key>Frame</key>
- <string>{{0, 404}, {294, 397}}</string>
- <key>RubberWindowFrame</key>
- <string>0 102 1280 900 0 0 1280 1002 </string>
+ <string>{{0, 414}, {294, 407}}</string>
</dict>
- <key>RubberWindowFrame</key>
- <string>0 102 1280 900 0 0 1280 1002 </string>
</dict>
<key>Module</key>
<string>PBXDebugSessionModule</string>
<key>Proportion</key>
- <string>801pt</string>
+ <string>821pt</string>
</dict>
</array>
<key>Name</key>
@@ -705,13 +704,13 @@
</array>
<key>TableOfContents</key>
<array>
- <string>ABEB412911FF1B9C007748DF</string>
+ <string>ABEB457B11FF2EDF007748DF</string>
<string>1CCC7628064C1048000F2A68</string>
<string>1CCC7629064C1048000F2A68</string>
- <string>ABEB412A11FF1B9C007748DF</string>
- <string>ABEB412B11FF1B9C007748DF</string>
- <string>ABEB412C11FF1B9C007748DF</string>
- <string>ABEB412D11FF1B9C007748DF</string>
+ <string>ABEB457C11FF2EDF007748DF</string>
+ <string>ABEB457D11FF2EDF007748DF</string>
+ <string>ABEB457E11FF2EDF007748DF</string>
+ <string>ABEB457F11FF2EDF007748DF</string>
<string>AB69B646118B75A400903D1D</string>
</array>
<key>ToolbarConfigUserDefaultsMinorVersion</key>
@@ -729,7 +728,7 @@
<key>StatusbarIsVisible</key>
<true/>
<key>TimeStamp</key>
- <real>301931436.89128602</real>
+ <real>301936438.53548598</real>
<key>ToolbarConfigUserDefaultsMinorVersion</key>
<string>2</string>
<key>ToolbarDisplayMode</key>
@@ -746,12 +745,12 @@
<integer>5</integer>
<key>WindowOrderList</key>
<array>
- <string>ABEB412F11FF1B9C007748DF</string>
- <string>ABEB413011FF1B9C007748DF</string>
+ <string>ABEB458111FF2EDF007748DF</string>
+ <string>ABEB458211FF2EDF007748DF</string>
<string>/Users/Jonathan/Documents/Computing/github/Fragaria/Fragaria.xcodeproj</string>
</array>
<key>WindowString</key>
- <string>0 102 1280 900 0 0 1280 1002 </string>
+ <string>16 102 1280 900 0 0 1280 1002 </string>
<key>WindowToolsV3</key>
<array>
<dict>
View
6 SMLTextView.m
@@ -153,6 +153,12 @@ - (void)insertNewline:(id)sender
- (NSRange)selectionRangeForProposedRange:(NSRange)proposedSelRange granularity:(NSSelectionGranularity)granularity
{
+ // If it's not a mouse event return unchanged
+ NSEventType eventType = [[NSApp currentEvent] type];
+ if (eventType != NSLeftMouseDown && eventType != NSLeftMouseUp) {
+ return [super selectionRangeForProposedRange:proposedSelRange granularity:granularity];
+ }
+
if (granularity != NSSelectByWord || [[self string] length] == proposedSelRange.location || [[NSApp currentEvent] clickCount] != 2) { // If it's not a double-click return unchanged
return [super selectionRangeForProposedRange:proposedSelRange granularity:granularity];
}
Please sign in to comment.
Something went wrong with that request. Please try again.