Permalink
Browse files

Added key for toggling the hidden status

  • Loading branch information...
1 parent e58664f commit f3aa2b57ef5e1a13b633f106781b20f5d59b6b8a Ortwin Gentz committed Oct 12, 2011
Showing with 6 additions and 0 deletions.
  1. +4 −0 DCIntrospect/DCIntrospect.m
  2. +2 −0 DCIntrospect/DCIntrospectSettings.h
@@ -598,6 +598,10 @@ - (BOOL)textView:(UITextView *)textView shouldChangeTextInRange:(NSRange)range r
if (self.currentView.alpha > 0.0f)
self.currentView.alpha -= 0.05f;
}
+ else if ([string isEqualToString:kDCIntrospectKeysToggleHidden])
+ {
+ self.currentView.hidden = !self.currentView.hidden;
+ }
else if ([string isEqualToString:kDCIntrospectKeysEnterGDB])
{
UIView *view = self.currentView;
@@ -36,6 +36,8 @@
#define kDCIntrospectKeysIncreaseViewAlpha @"+" // increases/decreases the selected views alpha value
#define kDCIntrospectKeysDecreaseViewAlpha @"-" //
+#define kDCIntrospectKeysToggleHidden @"x"
+
#define kDCIntrospectKeysSetNeedsDisplay @"d" // calls setNeedsDisplay on selected view
#define kDCIntrospectKeysSetNeedsLayout @"l" // calls setNeedsLayout on selected view

0 comments on commit f3aa2b5

Please sign in to comment.