Implementation is the same for both menu items. Menu validation
is used to check before if an item is a local file and existing.
Action is passed from main menu via responder chain to playlist.
Adds helper method createItemsFromExternalPasteboard: returning
an array of file items from the pasteboard.
performDragOperation: in VLCCoreInteraction is the now only place
where we try to add the dropped file as a subtitle.
This renames the playlist related class files to match the class name,
which makes it easier to find the which belongs to a certain class and
follows common Cocoa/Obj C file naming conventions.
Signed-off-by: Felix Paul Kühne <fkuehne@videolan.org>
Most of the IBOutlets that used Hungarian notation are renamed and
the bindings in the MainWindow.xib were adjusted accordingly.
Additonally all IBOutlets are properties now instead of ivars.
Removed spacing in front of arguments in Objective C methods.
Replace another unnecessary iteration used for source list item
expansion.
Signed-off-by: David Fuhrmann <dfuhrmann@videolan.org>
This replaces the iteration over all items and expanding them with a
single call to the expand method, passing nil for the item, which
causes all items to expand.
This works since OS X 10.5.
Signed-off-by: David Fuhrmann <dfuhrmann@videolan.org>
In the previous implementation was so unsafe that the ARC
compiler was not able work properly and printed a warning.
While there was no real problem here, switch to blocks to
silence the compiler and see potential errors earlier.
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. :-)
- Remove black lines below podcast controls
- fix uncentered dropzone when starting native fullscreen, by slightly
increasing the min height
- fix disappearing or uncentered dropzone when changing between
normal and minimum view quickly
- consolidate dropzone and podcast sizings in interface builder