Files
textmate/Frameworks/OakAppKit/src/NSMenu Additions.mm
Allan Odgaard 0ceff6beab Remove old tab trigger render code
This code was using (the no longer there in the 10.7 SDK) GetPortBounds() to be able to render into a CGContextRef.

It was also using the private _NSGetCarbonMenu to be able to install the menu handler (that augmented the rendering).
2012-08-14 21:29:51 +02:00

18 lines
283 B
Plaintext

#import "NSMenu Additions.h"
@implementation NSMenu (Additions)
- (NSMenuItem*)parentMenuItem;
{
NSMenuItem* superItem = nil;
for(NSMenuItem* item in [[self supermenu] itemArray])
{
if([item submenu] == self)
{
superItem = item;
break;
}
}
return superItem;
}
@end