searchBar textDidChange
===

In my tableViewController with a searchBar I am using the following method:

-(void) searchBar:(UISearchBar *)searchBar textDidChange:(NSString *)searchText 
{
   ...my code
}

and it works fine when I type text directly into the searchBar.

The problem I have now is that I want to invoke this method programatically - meaning that I want to fill in the search bar from my code which I know how to do (actually I am selecting a recently searched word in my language dictionary application) and call something like:

 [SearchBar textDidChange: recentlySearchedWord]

but this simply does not work from anywhere in my code.

Please help me if you have some idea how to solve this.

Thanks,

Tim