Skip to content
Snippets Groups Projects
Commit 4841da0e authored by David's avatar David
Browse files

macosx: playlist menu: use modern way to load xib

parent 74f92d20
No related branches found
No related tags found
No related merge requests found
......@@ -29,7 +29,7 @@
@interface VLCPlaylist : NSResponder<NSOutlineViewDelegate>
@property (readwrite, weak) IBOutlet NSMenu *playlistMenu;
@property (readwrite, strong) IBOutlet NSMenu *playlistMenu;
@property (readwrite, weak) IBOutlet NSMenuItem *playPlaylistMenuItem;
@property (readwrite, weak) IBOutlet NSMenuItem *deletePlaylistMenuItem;
@property (readwrite, weak) IBOutlet NSMenuItem *infoPlaylistMenuItem;
......
......@@ -686,7 +686,7 @@
- (NSMenu *)menuForEvent:(NSEvent *)o_event
{
if (!b_playlistmenu_nib_loaded)
b_playlistmenu_nib_loaded = [NSBundle loadNibNamed:@"PlaylistMenu" owner:self];
b_playlistmenu_nib_loaded = [[NSBundle mainBundle] loadNibNamed:@"PlaylistMenu" owner:self topLevelObjects:nil];
NSPoint pt = [_outlineView convertPoint: [o_event locationInWindow] fromView: nil];
NSInteger row = [_outlineView rowAtPoint:pt];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment