Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Desktop app to view, control, and change info from outside the simulator #51

Open
wants to merge 61 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
cf62110
- implemented NSStringFromBOOL(...); added subviews info to log
Mar 22, 2012
00af129
- added superview to UIView log
Mar 26, 2012
0cab9df
- added NSStringFromBOOL function
Mar 26, 2012
efa400c
- updated subview info output
Apr 26, 2012
56a070c
- added shake to activate; added activation log
cbess Apr 29, 2012
52632dd
- removed unneeded import
Apr 30, 2012
172aaff
- fixed non-debug builds
Apr 30, 2012
0a39e2a
- initial import of CBIntrospect
cbess May 3, 2012
9292d9a
- initial import of CBIntrospector client desktop app
cbess May 3, 2012
ba4626a
- updated debug conditional blocks
May 3, 2012
57215f6
- updated debug cond. blocks; updated recomm. proj settings
May 3, 2012
a8fe1da
- refactored sendEvent override/replace to modify UIApplication; rena…
cbess May 3, 2012
44221f4
- refactored sendEvent override
cbess May 3, 2012
f1fb7ef
- fixed non-debug builds
May 3, 2012
03140ba
- fixed app background introspector background issue
cbess May 4, 2012
9f18674
- fixed app background issue, which prevents keyboard events from bei…
cbess May 4, 2012
f10db7b
- implemented current view changing from the json; updated share header
cbess May 5, 2012
79288d1
- updated main window, added tree outline view
cbess May 5, 2012
59fa3f6
- implemented tree view UI setup logic
cbess May 5, 2012
70423cd
- updated current view JSON sync
cbess May 6, 2012
85fb459
- implemented control to uiview editing/update
cbess May 6, 2012
3a5994c
- reinstated UIWindow sendEvent override; reload data command now wor…
May 8, 2012
a671e37
- fixed some compile time error
May 8, 2012
71253a5
- updated dclog non-debug macro
May 8, 2012
be5d210
- fixed non-debug build
May 8, 2012
9581138
- implemented tree node selection when selecting a view in the simulator
May 9, 2012
27707de
- adjusted highlight color
May 9, 2012
e6de082
- added view description to desktop UI; refactored describe* methods …
May 11, 2012
0fcfd85
- disabled tree view keyboard actions; text view no longer word-wraps
May 12, 2012
494d7ea
- update sizing/layout
May 12, 2012
2c2afda
- update textview style
May 12, 2012
66b5837
added find bar to textview, press (cmd+F) while textview is focused
May 12, 2012
d7903b5
- fixed unexpected inspector control reset; added reload tree action …
May 12, 2012
8a417f1
- reorganized supporting files
May 12, 2012
8cecca0
- moved files
May 12, 2012
16d1c5c
removed log
May 12, 2012
1143ed7
now skips/ignores common UI subviews
May 12, 2012
5cd72d9
update static assignment logic
May 12, 2012
9413886
add keyboard actions to re/select nodes (press enter to reselect node)
May 12, 2012
5c94f56
add error message when unable to reload view tree
May 12, 2012
69114f8
- added NSView icon to tree
May 12, 2012
968a2ec
- build headers
May 14, 2012
fa95fa2
enable minimize button
May 14, 2012
37ce249
- fixed potential crash during node selection/update
May 14, 2012
7ef6756
- bumped desktop app version
May 14, 2012
54ddc66
- added options->show all subviews toggle menu item
May 23, 2012
4c1945e
- added window->open ios sim folder menu item
May 23, 2012
28e37ae
change menu item name
May 23, 2012
f621d5e
- started implementing the project window
cbess Jun 5, 2012
d350629
- implemented project opening logic
cbess Jun 5, 2012
bf01418
- updated proj window min size
cbess Jun 5, 2012
16998a5
- updated version
cbess Jun 5, 2012
4eef714
- updated the project window font size
Jun 5, 2012
92c28ab
- sends changes to simulator when [enter] key is pressed from text fi…
Jun 5, 2012
a6be5fb
- updated version regex
Jun 5, 2012
aeb7694
- implemented [CBIntrospectorWindow reloadTreeWithFilePath:]
Jun 6, 2012
4209ea4
- added app icon
Jun 6, 2012
ad0eeb1
- attempts to reloads the tree when the window is activated
Jun 8, 2012
4625ed7
- updated version
Jun 8, 2012
82b1f84
- removed prompt when opening projects
Jun 8, 2012
8c1e3e9
Merge branch 'cbintrospector'
Jun 18, 2012
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add keyboard actions to re/select nodes (press enter to reselect node)
C. Bess committed May 12, 2012
commit 94138866370d908e33e632fc2b2ed15b026d70ff
2 changes: 1 addition & 1 deletion CBIntrospector/CBIntrospector/CBUIViewManager.m
Original file line number Diff line number Diff line change
@@ -36,7 +36,7 @@ - (void)sync
[self syncNow];

// create the loop (polling the file system)
[self performSelector:@selector(sync) withObject:nil afterDelay:0.7];
[self performSelector:@selector(sync) withObject:nil afterDelay:0.3];
}

- (void)syncNow
27 changes: 21 additions & 6 deletions CBIntrospector/CBIntrospector/CBWindow.m
Original file line number Diff line number Diff line change
@@ -91,12 +91,22 @@ - (BOOL)performKeyEquivalent:(NSEvent *)evt
{ // handles key down events
int key = [evt keyCode];
int modFlag = [evt modifierFlags];
// NSLog(@"main window key event: %d", key);
NSLog(@"main window key event: %d", key);
BOOL shiftKey = (modFlag | NSShiftKeyMask);

// ignore keys from the tree view
if (self.treeView == self.firstResponder)
{
switch (key)
{
//case 49: // space
case 36: // enter
[self reselectCurrentlySelectedNode];
break;
}

return NO;
}

switch (key)
{
@@ -189,9 +199,7 @@ - (IBAction)hiddenSwitchChanged:(id)sender

- (IBAction)treeNodeClicked:(id)sender
{
NSDictionary *viewInfo = [self.treeView itemAtRow:self.treeView.selectedRow];
DebugLog(@"selected: %@", [viewInfo valueForKey:kUIViewClassNameKey]);
[self loadControlsWithJSON:viewInfo];
[self reselectCurrentlySelectedNode];
}

- (IBAction)headerButtonClicked:(id)sender
@@ -213,13 +221,20 @@ - (IBAction)reloadViewTreeClicked:(id)sender

#pragma mark - Misc

- (void)reselectCurrentlySelectedNode
{
NSDictionary *viewInfo = [self.treeView itemAtRow:self.treeView.selectedRow];
DebugLog(@"selected: %@", [viewInfo valueForKey:kUIViewClassNameKey]);
[self loadControlsWithJSON:viewInfo];
}

- (void)loadControlsWithJSON:(NSDictionary *)jsonInfo
{
self.viewManager.currentView = [[CBUIView alloc] initWithJSON:jsonInfo];
self.viewManager.currentView.syncFilePath = [self.syncDirectoryPath stringByAppendingPathComponent:kCBCurrentViewFileName];

[self.viewManager.currentView saveJSON];
[self.viewManager performSelector:@selector(sync) withObject:nil afterDelay:1];
[self.viewManager sync];

[self loadCurrentViewControls];
}
@@ -411,7 +426,7 @@ - (void)outlineView:(NSOutlineView *)outlineView willDisplayCell:(id)cell forTab

- (void)outlineViewSelectionDidChange:(NSNotification *)notification
{
DebugLog(@"changed");
[self reselectCurrentlySelectedNode];
}

- (BOOL)outlineView:(NSOutlineView *)outlineView shouldSelectItem:(id)item