mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 13:10:59 +00:00
Add -[NSMenu popUpMenuPositioningItem:atLocation:inView:]
This commit is contained in:
parent
157695e2cb
commit
6aff0bd0f8
2 changed files with 17 additions and 3 deletions
|
@ -436,9 +436,14 @@ APPKIT_EXPORT_CLASS
|
|||
#endif
|
||||
|
||||
#if OS_API_VERSION(MAC_OS_X_VERSION_10_6, GS_API_LATEST)
|
||||
// Provided for source compatibility with GNUstep-specific code.
|
||||
// This method is just an alternate name for popUpMenuPositioningItem:atLocation:inView:
|
||||
- (void) popUpMenuPositionItem: (NSMenuItem *)item
|
||||
atLocation: (NSPoint) point
|
||||
inView: (NSView *) view;
|
||||
- (void) popUpMenuPositioningItem: (NSMenuItem *)item
|
||||
atLocation: (NSPoint) point
|
||||
inView: (NSView *) view;
|
||||
#endif
|
||||
|
||||
#if OS_API_VERSION(MAC_OS_X_VERSION_10_2, GS_API_LATEST)
|
||||
|
|
|
@ -1445,9 +1445,9 @@ static BOOL menuBarVisible = YES;
|
|||
[menu _rightMouseDisplay: event];
|
||||
}
|
||||
|
||||
- (void) popUpMenuPositionItem: (NSMenuItem *)item
|
||||
atLocation: (NSPoint) point
|
||||
inView: (NSView *) view
|
||||
- (void) popUpMenuPositioningItem: (NSMenuItem *)item
|
||||
atLocation: (NSPoint) point
|
||||
inView: (NSView *) view
|
||||
{
|
||||
NSRect cellFrame = [view convertRect: [view bounds] toView: nil];
|
||||
NSWindow *w = [view window];
|
||||
|
@ -1465,6 +1465,15 @@ static BOOL menuBarVisible = YES;
|
|||
selectedItem: selectedItem];
|
||||
}
|
||||
|
||||
- (void) popUpMenuPositionItem: (NSMenuItem *)item
|
||||
atLocation: (NSPoint) point
|
||||
inView: (NSView *) view
|
||||
{
|
||||
[self popUpMenuPositioningItem: item
|
||||
atLocation: point
|
||||
inView: view];
|
||||
}
|
||||
|
||||
/*
|
||||
* NSObject Protocol
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue