iphone application for tabbar
<p>How can i define
someViewIWantToDisableOtherFor and 
anotherViewIWantDisabled in the following code?</p>

<pre><code>id currentlySelected; //This will hold the address of the selected view
id dontAllowSelection; //This will hold the address of the Denied view


- (BOOL)tabBarController:(UITabBarController *)tabBarControllers shouldSelectViewController:(UIViewController *)viewController
{
    if (dontAllowSelection != nil &amp;&amp;             
         dontAllowSelection == viewController)   
    {
        return NO;
    }
    currentlySelected = viewController;

    if (currentlySelected == someViewIWantToDisableOtherFor)
    {
        dontAllowSelection = anotherViewIWantDisabled; 
    }
    else
    {
        dontAllowSelection = nil; 
    }

    return YES;
}
</code></pre>
