]> git.sesse.net Git - vlc/commitdiff
macosx: added some bits of documentation
authorFelix Paul Kühne <fkuehne@videolan.org>
Tue, 27 Dec 2011 22:35:42 +0000 (23:35 +0100)
committerFelix Paul Kühne <fkuehne@videolan.org>
Tue, 27 Dec 2011 22:35:42 +0000 (23:35 +0100)
modules/gui/macosx/MainWindowTitle.m

index ffcd9317e8d28529548bbe385fc7b9c9b3bd8ed2..7753e804476e59e1cc335c8bbeb54c33dd2ae45f 100644 (file)
 
 /*****************************************************************************
  * VLCMainWindowTitleView
+ *
+ * this is our title bar, which can do anything a title should do
+ * it relies on the VLCWindowButtonCell to display the correct traffic light
+ * states, since we can't capture the mouse-moved events here correctly
  *****************************************************************************/
 
 @implementation VLCMainWindowTitleView
 
 @end
 
+/*****************************************************************************
+ * VLCWindowButtonCell
+ *
+ * since the title bar cannot fetch these mouse events (the more top-level
+ * NSButton is unable fetch them as well), we are using a subclass of the
+ * button cell to do so. It's set in the nib for the respective objects.
+ *****************************************************************************/
+
 @implementation VLCWindowButtonCell
 
 - (void)mouseEntered:(NSEvent *)theEvent
 
 @end
 
+
+/*****************************************************************************
+ * VLCResizeControl
+ *
+ * For Leopard and Snow Leopard, we need to emulate the resize control on the
+ * bottom right of the window, since it is gone by using the borderless window
+ * mask. A proper fix would be Lion-only.
+ *****************************************************************************/
+
 @implementation VLCResizeControl
 
 - (void)mouseDragged:(NSEvent *)theEvent