mirror of
https://github.com/objective-see/TaskExplorer.git
synced 2026-03-22 07:02:39 +00:00
v1.0.0 commit
code cleanup unset first responder
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
//TODO: filter out dup'd networks (airportd 0:0..) -not sure want to do this
|
||||
//TODO: 'flagged' items button?
|
||||
//TODO: add 'am i on main thread' guard and test
|
||||
//TODO: filter dylibs, no first responder!
|
||||
|
||||
@implementation AppDelegate
|
||||
|
||||
@@ -85,6 +86,9 @@
|
||||
//init filter obj
|
||||
filterObj = [[Filter alloc] init];
|
||||
|
||||
//no need to have a first responder
|
||||
[self.window makeFirstResponder:nil];
|
||||
|
||||
//check that OS is supported
|
||||
if(YES != isSupportedOS())
|
||||
{
|
||||
|
||||
-19
@@ -138,9 +138,6 @@ NSTableCellView* createTaskView(NSTableView* tableView, id owner, Task* task)
|
||||
//task's name frame
|
||||
CGRect nameFrame = {0};
|
||||
|
||||
//task's path frame
|
||||
CGRect pathFrame = {0};
|
||||
|
||||
//sanity check
|
||||
if(nil == task.binary)
|
||||
{
|
||||
@@ -204,22 +201,6 @@ NSTableCellView* createTaskView(NSTableView* tableView, id owner, Task* task)
|
||||
// ->immediately follows name
|
||||
[((NSTextField*)[taskCell viewWithTag:TABLE_ROW_PID_LABEL]) setStringValue:[NSString stringWithFormat:@"(%@)", task.pid]];
|
||||
|
||||
/*
|
||||
//outline view has indentations
|
||||
// ->adjust path width to account for this
|
||||
if(YES == [tableView isKindOfClass:[NSOutlineView class]])
|
||||
{
|
||||
//get path frame
|
||||
pathFrame = ((NSTextField*)[tableView viewWithTag:TABLE_ROW_SUB_TEXT_TAG]).frame;
|
||||
|
||||
//subtract indendtation for level
|
||||
pathFrame.size.width -= [(NSOutlineView*) tableView levelForItem:task];
|
||||
|
||||
//set path frame
|
||||
((NSTextField*)[tableView viewWithTag:TABLE_ROW_SUB_TEXT_TAG]).frame = pathFrame;
|
||||
}
|
||||
*/
|
||||
|
||||
//set path
|
||||
[[taskCell viewWithTag:TABLE_ROW_SUB_TEXT_TAG] setStringValue:task.binary.path];
|
||||
|
||||
|
||||
@@ -17,11 +17,11 @@
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>APPL</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>0.9.1</string>
|
||||
<string>1.0.0</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>0.9.1</string>
|
||||
<string>1.0.0</string>
|
||||
<key>LSMinimumSystemVersion</key>
|
||||
<string>${MACOSX_DEPLOYMENT_TARGET}</string>
|
||||
<key>NSHumanReadableCopyright</key>
|
||||
|
||||
@@ -7,14 +7,14 @@
|
||||
<key>IDESourceControlProjectIdentifier</key>
|
||||
<string>FE4103FE-6F26-4639-8C9F-D8D32C76D6A9</string>
|
||||
<key>IDESourceControlProjectName</key>
|
||||
<string>TaskExplorer</string>
|
||||
<string>project</string>
|
||||
<key>IDESourceControlProjectOriginsDictionary</key>
|
||||
<dict>
|
||||
<key>61F07AFB33748EF0C810BEEF6126283DAC63A899</key>
|
||||
<string>https://bitbucket.org/objective-see/taskexplorer.git</string>
|
||||
</dict>
|
||||
<key>IDESourceControlProjectPath</key>
|
||||
<string>TaskExplorer.xcodeproj</string>
|
||||
<string>TaskExplorer.xcodeproj/project.xcworkspace</string>
|
||||
<key>IDESourceControlProjectRelativeInstallPathDictionary</key>
|
||||
<dict>
|
||||
<key>61F07AFB33748EF0C810BEEF6126283DAC63A899</key>
|
||||
|
||||
+22
-22
@@ -13,22 +13,6 @@
|
||||
stopOnStyle = "0">
|
||||
</BreakpointContent>
|
||||
</BreakpointProxy>
|
||||
<BreakpointProxy
|
||||
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
||||
<BreakpointContent
|
||||
shouldBeEnabled = "No"
|
||||
ignoreCount = "0"
|
||||
continueAfterRunningActions = "No"
|
||||
filePath = "ItemView.m"
|
||||
timestampString = "458808349.397316"
|
||||
startingColumnNumber = "9223372036854775807"
|
||||
endingColumnNumber = "9223372036854775807"
|
||||
startingLineNumber = "133"
|
||||
endingLineNumber = "133"
|
||||
landmarkName = "createTaskView()"
|
||||
landmarkType = "7">
|
||||
</BreakpointContent>
|
||||
</BreakpointProxy>
|
||||
<BreakpointProxy
|
||||
BreakpointExtensionID = "Xcode.Breakpoint.SymbolicBreakpoint">
|
||||
<BreakpointContent
|
||||
@@ -206,11 +190,11 @@
|
||||
ignoreCount = "0"
|
||||
continueAfterRunningActions = "No"
|
||||
filePath = "AppDelegate.m"
|
||||
timestampString = "460249848.18895"
|
||||
timestampString = "460362206.963852"
|
||||
startingColumnNumber = "9223372036854775807"
|
||||
endingColumnNumber = "9223372036854775807"
|
||||
startingLineNumber = "1593"
|
||||
endingLineNumber = "1593"
|
||||
startingLineNumber = "1597"
|
||||
endingLineNumber = "1597"
|
||||
landmarkName = "-constrainView:subView:"
|
||||
landmarkType = "5">
|
||||
</BreakpointContent>
|
||||
@@ -270,11 +254,11 @@
|
||||
ignoreCount = "0"
|
||||
continueAfterRunningActions = "No"
|
||||
filePath = "AppDelegate.m"
|
||||
timestampString = "460249848.18895"
|
||||
timestampString = "460362206.963852"
|
||||
startingColumnNumber = "9223372036854775807"
|
||||
endingColumnNumber = "9223372036854775807"
|
||||
startingLineNumber = "802"
|
||||
endingLineNumber = "802"
|
||||
startingLineNumber = "806"
|
||||
endingLineNumber = "806"
|
||||
landmarkName = "-reloadTaskTable"
|
||||
landmarkType = "5">
|
||||
</BreakpointContent>
|
||||
@@ -343,5 +327,21 @@
|
||||
landmarkType = "5">
|
||||
</BreakpointContent>
|
||||
</BreakpointProxy>
|
||||
<BreakpointProxy
|
||||
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
||||
<BreakpointContent
|
||||
shouldBeEnabled = "No"
|
||||
ignoreCount = "0"
|
||||
continueAfterRunningActions = "No"
|
||||
filePath = "AppDelegate.m"
|
||||
timestampString = "460362206.963852"
|
||||
startingColumnNumber = "9223372036854775807"
|
||||
endingColumnNumber = "9223372036854775807"
|
||||
startingLineNumber = "90"
|
||||
endingLineNumber = "90"
|
||||
landmarkName = "-applicationDidFinishLaunching:"
|
||||
landmarkType = "5">
|
||||
</BreakpointContent>
|
||||
</BreakpointProxy>
|
||||
</Breakpoints>
|
||||
</Bucket>
|
||||
|
||||
@@ -46,12 +46,12 @@
|
||||
</menu>
|
||||
<window allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" releasedWhenClosed="NO" showsToolbarButton="NO" animationBehavior="default" id="371">
|
||||
<windowStyleMask key="styleMask" titled="YES" closable="YES" miniaturizable="YES" resizable="YES" unifiedTitleAndToolbar="YES"/>
|
||||
<rect key="contentRect" x="0.0" y="0.0" width="1353" height="665"/>
|
||||
<rect key="contentRect" x="0.0" y="0.0" width="1354" height="665"/>
|
||||
<rect key="screenRect" x="0.0" y="0.0" width="1440" height="877"/>
|
||||
<value key="minSize" type="size" width="1000" height="660"/>
|
||||
<value key="maxSize" type="size" width="2000" height="660"/>
|
||||
<view key="contentView" id="372">
|
||||
<rect key="frame" x="0.0" y="5" width="1353" height="665"/>
|
||||
<rect key="frame" x="0.0" y="0.0" width="1354" height="665"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<subviews>
|
||||
<progressIndicator hidden="YES" horizontalHuggingPriority="750" verticalHuggingPriority="750" fixedFrame="YES" maxValue="100" bezeled="NO" indeterminate="YES" style="spinning" translatesAutoresizingMaskIntoConstraints="NO" id="839">
|
||||
@@ -83,7 +83,7 @@
|
||||
<rect key="frame" x="106" y="0.0" width="38" height="17"/>
|
||||
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="center" title="save" id="qeM-6t-Rz6">
|
||||
<font key="font" size="9" name="Menlo-Regular"/>
|
||||
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="textColor" white="0.52269995629999999" alpha="1" colorSpace="calibratedWhite"/>
|
||||
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
||||
</textFieldCell>
|
||||
</textField>
|
||||
@@ -105,7 +105,7 @@
|
||||
<rect key="frame" x="59" y="0.0" width="38" height="17"/>
|
||||
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="center" title="search" id="tF8-E0-l1A">
|
||||
<font key="font" size="9" name="Menlo-Regular"/>
|
||||
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="textColor" white="0.52269995629999999" alpha="1" colorSpace="calibratedWhite"/>
|
||||
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
||||
</textFieldCell>
|
||||
</textField>
|
||||
@@ -113,7 +113,7 @@
|
||||
<rect key="frame" x="8" y="0.0" width="46" height="17"/>
|
||||
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="center" title="refresh" id="C2m-Hn-7EE">
|
||||
<font key="font" size="9" name="Menlo-Regular"/>
|
||||
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="textColor" white="0.52269995629999999" alpha="1" colorSpace="calibratedWhite"/>
|
||||
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
||||
</textFieldCell>
|
||||
</textField>
|
||||
@@ -155,7 +155,7 @@
|
||||
</connections>
|
||||
</segmentedControl>
|
||||
<button ambiguous="YES" misplaced="YES" tag="10004" translatesAutoresizingMaskIntoConstraints="NO" id="HoI-FQ-vTI">
|
||||
<rect key="frame" x="1314" y="10" width="29" height="32"/>
|
||||
<rect key="frame" x="1315" y="10" width="29" height="32"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="32" id="18R-rR-Udp"/>
|
||||
<constraint firstAttribute="width" constant="29" id="JOy-gX-fMr"/>
|
||||
|
||||
Reference in New Issue
Block a user