[vlc-commits] macosx: Add new playlist model

David Fuhrmann git at videolan.org
Tue Dec 30 16:11:59 CET 2014


vlc | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Sat Nov 15 12:33:30 2014 +0100| [c39aaf28bcd9e628dc5f13b6e0a01528eb476e68] | committer: David Fuhrmann

macosx: Add new playlist model

The current playlist model directly operates on the core playlist
datastructures without proper locking for a complete playlist table
reload/update. This resulted in various ugly hacks and workarounds.

The new playlist model encapsulates the data in own objects like
in the qt interface. This allows a much easier integration with
the table view and proper updates from the core playlist.

This way, the previous playlist objects, stored in an ugly map with
pointer strings as keys, pointing to the same pointer inside a
NSValue, is obsolete finally. :-)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c39aaf28bcd9e628dc5f13b6e0a01528eb476e68
---

 modules/gui/macosx/CoreInteraction.m |    3 +-
 modules/gui/macosx/MainWindow.m      |   47 +++--
 modules/gui/macosx/Modules.am        |    4 +
 modules/gui/macosx/PLItem.h          |   50 +++++
 modules/gui/macosx/PLItem.m          |   86 ++++++++
 modules/gui/macosx/PLModel.h         |   64 ++++++
 modules/gui/macosx/PLModel.m         |  359 ++++++++++++++++++++++++++++++++++
 modules/gui/macosx/intf.m            |   53 ++++-
 modules/gui/macosx/playlist.h        |    7 +-
 modules/gui/macosx/playlist.m        |  353 ++++++++++++++++-----------------
 10 files changed, 814 insertions(+), 212 deletions(-)

Diff:   http://git.videolan.org/gitweb.cgi/vlc.git/?a=commitdiff;h=c39aaf28bcd9e628dc5f13b6e0a01528eb476e68


More information about the vlc-commits mailing list