mirror of
https://github.com/textmate/textmate.git
synced 2026-04-28 03:00:34 -04:00
Remove ‘parentItem’ NSMenu category extension
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
@interface NSMenu (Additions)
|
||||
- (NSMenuItem*)parentMenuItem;
|
||||
@end
|
||||
@@ -1,9 +0,0 @@
|
||||
#import "NSMenu Additions.h"
|
||||
|
||||
@implementation NSMenu (Additions)
|
||||
- (NSMenuItem*)parentMenuItem
|
||||
{
|
||||
NSInteger i = [self.supermenu indexOfItemWithSubmenu:self];
|
||||
return i != -1 ? self.supermenu.itemArray[i] : nil;
|
||||
}
|
||||
@end
|
||||
Reference in New Issue
Block a user