title: What is wrong with this Tweak for Cydia?
body: <p>I wrote a tweak for <code>cydia</code>, but it does not seem to be working.  I created the template using <code>Theos</code>. I got a header dump from the <strong>iosod tool</strong>, and found </p>
  
  <pre><code>`$` - (void)searchBarTextDidBeginEditing:(id)searchBarText;
  </code></pre>
  
  <p>inside of the <strong>SBSearchController</strong> class.  Here is the code I have in the Tweak.</p>
  
  <p><code>%hook SBSearchController</code></p>
  
  <p><code>- (void)searchBarTextDidBeginEditing:(id)searchBarText</code>
  <code>{</code>
      <code>%orig;</code></p>
  
  <pre><code>UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Tweak"
      message:@"Testing is running!"
      delegate:nil
      cancelButtonTitle:@"Ok"
      otherButtonTitles:nil];
  [alert show];
  [alert release];`
  </code></pre>
  
  <p><code>}</code></p>
  
  <p><code>%end</code></p>
  
  <p>and my Makefile looks like this</p>
  
  <pre><code>include theos/makefiles/common.mk  
  
  Testing_FRAMEWORKS = UIKit  
  
  TWEAK_NAME = Testing  
  
  Testing_FILES = Tweak.xm    
  
  include $(THEOS_MAKE_PATH)/tweak.mk \
  </code></pre>
  
  <p>Everything compiles and installs correctly, but at runtime, when I tap on the search bar, and begin to type, nothing happens. Does anybody know what I did wrong?</p>
  
  <p>Thanks!</p>