
/*
	NSTabView: Return the tab view item with the given identifier
	Original Source: <http://cocoa.karelia.com/AppKit_Categories/NSTabView__Return_t.m>
	(See copyright notice at <http://cocoa.karelia.com>)
*/

- (NSTabViewItem *)tabViewItemWithIdentifier:(id)identifier
{
  int index = [self indexOfTabViewItemWithIdentifier:identifier];

  if ( index == NSNotFound ) {
    return nil;
  }

  return [self tabViewItemAtIndex:index];
}