[vlc-commits] [Git][videolan/vlc][master] macosx/media collection view: fix loading the xib

Felix Paul Kühne (@fkuehne) gitlab at videolan.org
Tue Jul 14 17:46:51 UTC 2026



Felix Paul Kühne pushed to branch master at VideoLAN / VLC


Commits:
2daeac05 by Felix Paul Kühne at 2026-07-14T19:30:20+02:00
macosx/media collection view: fix loading the xib

All our xib are owned by the main bundle. Regression from d3a5300da7

- - - - -


1 changed file:

- modules/gui/macosx/views/VLCMediaItemCollectionViewItem.m


Changes:

=====================================
modules/gui/macosx/views/VLCMediaItemCollectionViewItem.m
=====================================
@@ -49,8 +49,9 @@ const CGFloat VLCMediaItemCollectionViewItemMaximumDisplayedProgress = 0.95;
     self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
     if (self) {
         if (nibNameOrNil == nil) {
-            NSBundle * const bundle = [NSBundle bundleForClass:self.class];
-            [bundle loadNibNamed:@"VLCMediaItemCollectionViewItem" owner:self topLevelObjects:nil];
+            [NSBundle.mainBundle loadNibNamed:@"VLCMediaItemCollectionViewItem"
+                                        owner:self
+                              topLevelObjects:nil];
         }
     }
     return self;



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/2daeac0552c954f76340b777c4a414798fbdab73

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/2daeac0552c954f76340b777c4a414798fbdab73
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help




More information about the vlc-commits mailing list