Commit b0aa6c5f authored by Felix Paul Kühne's avatar Felix Paul Kühne

macosx: re-written the messages panel to use a table view instead of a text...

macosx: re-written the messages panel to use a table view instead of a text view. this vastly improves its performance and prevents any related crashes known to me so far

thanks to poldi for the idea
parent 6e37e198
...@@ -21,16 +21,16 @@ ...@@ -21,16 +21,16 @@
</object> </object>
<object class="NSMutableArray" key="IBDocument.EditedObjectIDs"> <object class="NSMutableArray" key="IBDocument.EditedObjectIDs">
<bool key="EncodedWithXMLCoder">YES</bool> <bool key="EncodedWithXMLCoder">YES</bool>
<integer value="283"/> <integer value="2730"/>
<integer value="29"/> <integer value="4717"/>
<integer value="4596"/> <integer value="4596"/>
<integer value="1617"/>
<integer value="4895"/>
<integer value="4722"/> <integer value="4722"/>
<integer value="2770"/> <integer value="2770"/>
<integer value="2730"/>
<integer value="4717"/>
<integer value="915"/> <integer value="915"/>
<integer value="1617"/>
<integer value="29"/>
<integer value="283"/>
<integer value="4895"/>
</object> </object>
<object class="NSArray" key="IBDocument.PluginDependencies"> <object class="NSArray" key="IBDocument.PluginDependencies">
<bool key="EncodedWithXMLCoder">YES</bool> <bool key="EncodedWithXMLCoder">YES</bool>
...@@ -133,7 +133,7 @@ ...@@ -133,7 +133,7 @@
<int key="NSCellFlags">67239488</int> <int key="NSCellFlags">67239488</int>
<int key="NSCellFlags2">2048</int> <int key="NSCellFlags2">2048</int>
<string key="NSContents">Text Cell</string> <string key="NSContents">Text Cell</string>
<object class="NSFont" key="NSSupport"> <object class="NSFont" key="NSSupport" id="747390061">
<string key="NSName">LucidaGrande</string> <string key="NSName">LucidaGrande</string>
<double key="NSSize">11</double> <double key="NSSize">11</double>
<int key="NSfFlags">16</int> <int key="NSfFlags">16</int>
...@@ -1000,7 +1000,7 @@ ...@@ -1000,7 +1000,7 @@
<object class="NSColor" key="NSTextColor"> <object class="NSColor" key="NSTextColor">
<int key="NSColorSpace">3</int> <int key="NSColorSpace">3</int>
<bytes key="NSWhite">MC4yNQA</bytes> <bytes key="NSWhite">MC4yNQA</bytes>
<object class="NSColorSpace" key="NSCustomColorSpace" id="399243099"> <object class="NSColorSpace" key="NSCustomColorSpace">
<int key="NSID">2</int> <int key="NSID">2</int>
</object> </object>
</object> </object>
...@@ -2571,7 +2571,7 @@ ...@@ -2571,7 +2571,7 @@
<object class="NSButton" id="23828214"> <object class="NSButton" id="23828214">
<reference key="NSNextResponder" ref="584094047"/> <reference key="NSNextResponder" ref="584094047"/>
<int key="NSvFlags">292</int> <int key="NSvFlags">292</int>
<string key="NSFrame">{{15, 12}, {185, 28}}</string> <string key="NSFrame">{{8, 7}, {185, 28}}</string>
<reference key="NSSuperview" ref="584094047"/> <reference key="NSSuperview" ref="584094047"/>
<bool key="NSEnabled">YES</bool> <bool key="NSEnabled">YES</bool>
<object class="NSButtonCell" key="NSCell" id="411915326"> <object class="NSButtonCell" key="NSCell" id="411915326">
...@@ -2595,206 +2595,172 @@ ...@@ -2595,206 +2595,172 @@
<int key="NSPeriodicInterval">25</int> <int key="NSPeriodicInterval">25</int>
</object> </object>
</object> </object>
<object class="NSScrollView" id="135002307"> <object class="NSButton" id="158197552">
<reference key="NSNextResponder" ref="584094047"/>
<int key="NSvFlags">292</int>
<string key="NSFrame">{{191, 7}, {185, 28}}</string>
<reference key="NSSuperview" ref="584094047"/>
<bool key="NSEnabled">YES</bool>
<object class="NSButtonCell" key="NSCell" id="1059676164">
<int key="NSCellFlags">67239424</int>
<int key="NSCellFlags2">138018816</int>
<string key="NSContents">Save this Log...</string>
<reference key="NSSupport" ref="26"/>
<reference key="NSControlView" ref="158197552"/>
<int key="NSButtonFlags">-2038284033</int>
<int key="NSButtonFlags2">1</int>
<reference key="NSAlternateImage" ref="59758337"/>
<string key="NSAlternateContents"/>
<object class="NSMutableString" key="NSKeyEquivalent">
<characters key="NS.bytes"/>
</object>
<int key="NSPeriodicDelay">200</int>
<int key="NSPeriodicInterval">25</int>
</object>
</object>
<object class="NSScrollView" id="59081481">
<reference key="NSNextResponder" ref="584094047"/> <reference key="NSNextResponder" ref="584094047"/>
<int key="NSvFlags">274</int> <int key="NSvFlags">274</int>
<object class="NSMutableArray" key="NSSubviews"> <object class="NSMutableArray" key="NSSubviews">
<bool key="EncodedWithXMLCoder">YES</bool> <bool key="EncodedWithXMLCoder">YES</bool>
<object class="NSClipView" id="374521922"> <object class="NSClipView" id="760419593">
<reference key="NSNextResponder" ref="135002307"/> <reference key="NSNextResponder" ref="59081481"/>
<int key="NSvFlags">2304</int> <int key="NSvFlags">2304</int>
<object class="NSMutableArray" key="NSSubviews"> <object class="NSMutableArray" key="NSSubviews">
<bool key="EncodedWithXMLCoder">YES</bool> <bool key="EncodedWithXMLCoder">YES</bool>
<object class="NSTextView" id="944193845"> <object class="NSTableView" id="694979328">
<reference key="NSNextResponder" ref="374521922"/> <reference key="NSNextResponder" ref="760419593"/>
<int key="NSvFlags">2322</int> <int key="NSvFlags">256</int>
<object class="NSMutableSet" key="NSDragTypes"> <string key="NSFrameSize">{601, 328}</string>
<bool key="EncodedWithXMLCoder">YES</bool> <reference key="NSSuperview" ref="760419593"/>
<object class="NSArray" key="set.sortedObjects"> <string key="NSReuseIdentifierKey">_NS:1843</string>
<bool key="EncodedWithXMLCoder">YES</bool> <object class="_NSCornerView" key="NSCornerView">
<string>Apple HTML pasteboard type</string> <nil key="NSNextResponder"/>
<string>Apple PDF pasteboard type</string> <int key="NSvFlags">-2147483392</int>
<string>Apple PICT pasteboard type</string> <string key="NSFrame">{{224, 0}, {16, 17}}</string>
<string>Apple PNG pasteboard type</string> <string key="NSReuseIdentifierKey">_NS:1848</string>
<string>Apple URL pasteboard type</string>
<string>CorePasteboardFlavorType 0x6D6F6F76</string>
<string>NSColor pasteboard type</string>
<string>NSFilenamesPboardType</string>
<string>NSStringPboardType</string>
<string>NeXT Encapsulated PostScript v1.2 pasteboard type</string>
<string>NeXT RTFD pasteboard type</string>
<string>NeXT Rich Text Format v1.0 pasteboard type</string>
<string>NeXT TIFF v4.0 pasteboard type</string>
<string>NeXT font pasteboard type</string>
<string>NeXT ruler pasteboard type</string>
<string>WebURLsWithTitlesPboardType</string>
<string>public.url</string>
</object>
</object>
<string key="NSFrameSize">{557, 14}</string>
<reference key="NSSuperview" ref="374521922"/>
<object class="NSTextContainer" key="NSTextContainer" id="453757644">
<object class="NSLayoutManager" key="NSLayoutManager">
<object class="NSTextStorage" key="NSTextStorage">
<object class="NSMutableString" key="NSString">
<characters key="NS.bytes"/>
</object>
<nil key="NSDelegate"/>
</object> </object>
<object class="NSMutableArray" key="NSTextContainers"> <object class="NSMutableArray" key="NSTableColumns">
<bool key="EncodedWithXMLCoder">YES</bool> <bool key="EncodedWithXMLCoder">YES</bool>
<reference ref="453757644"/> <object class="NSTableColumn" id="416288623">
</object> <double key="NSWidth">598</double>
<int key="NSLMFlags">6</int> <double key="NSMinWidth">40</double>
<nil key="NSDelegate"/> <double key="NSMaxWidth">1000</double>
</object> <object class="NSTableHeaderCell" key="NSHeaderCell">
<reference key="NSTextView" ref="944193845"/> <int key="NSCellFlags">612499008</int>
<double key="NSWidth">557</double> <int key="NSCellFlags2">2048</int>
<int key="NSTCFlags">1</int> <string key="NSContents"/>
</object> <reference key="NSSupport" ref="26"/>
<object class="NSTextViewSharedData" key="NSSharedData"> <object class="NSColor" key="NSBackgroundColor">
<int key="NSFlags">100674407</int>
<int key="NSTextCheckingTypes">0</int>
<nil key="NSMarkedAttributes"/>
<object class="NSColor" key="NSBackgroundColor" id="208330917">
<int key="NSColorSpace">3</int> <int key="NSColorSpace">3</int>
<bytes key="NSWhite">MAA</bytes> <bytes key="NSWhite">MC4zMzMzMzI5ODU2AA</bytes>
<reference key="NSCustomColorSpace" ref="399243099"/>
</object> </object>
<object class="NSDictionary" key="NSSelectedAttributes"> <reference key="NSTextColor" ref="141148336"/>
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="NSArray" key="dict.sortedKeys">
<bool key="EncodedWithXMLCoder">YES</bool>
<string>NSBackgroundColor</string>
<string>NSColor</string>
</object> </object>
<object class="NSMutableArray" key="dict.values"> <object class="NSTextFieldCell" key="NSDataCell" id="1020558889">
<bool key="EncodedWithXMLCoder">YES</bool> <int key="NSCellFlags">604110400</int>
<object class="NSColor" id="250925261"> <int key="NSCellFlags2">1073747968</int>
<string key="NSContents">Text Cell</string>
<reference key="NSSupport" ref="747390061"/>
<reference key="NSControlView" ref="694979328"/>
<object class="NSColor" key="NSBackgroundColor" id="758677672">
<int key="NSColorSpace">6</int> <int key="NSColorSpace">6</int>
<string key="NSCatalogName">System</string> <string key="NSCatalogName">System</string>
<string key="NSColorName">selectedTextBackgroundColor</string> <string key="NSColorName">controlDarkShadowColor</string>
<reference key="NSColor" ref="528917951"/> <reference key="NSColor" ref="563235091"/>
</object> </object>
<object class="NSColor" id="883753529"> <object class="NSColor" key="NSTextColor">
<int key="NSColorSpace">6</int> <int key="NSColorSpace">6</int>
<string key="NSCatalogName">System</string> <string key="NSCatalogName">System</string>
<string key="NSColorName">selectedTextColor</string> <string key="NSColorName">selectedInactiveColor</string>
<reference key="NSColor" ref="563235091"/> <reference key="NSColor" ref="528917951"/>
</object>
</object>
</object> </object>
<reference key="NSInsertionColor" ref="563235091"/>
<object class="NSDictionary" key="NSLinkAttributes">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="NSArray" key="dict.sortedKeys">
<bool key="EncodedWithXMLCoder">YES</bool>
<string>NSColor</string>
<string>NSUnderline</string>
</object> </object>
<object class="NSMutableArray" key="dict.values"> <int key="NSResizingMask">3</int>
<bool key="EncodedWithXMLCoder">YES</bool> <bool key="NSIsResizeable">YES</bool>
<reference ref="829159933"/> <reference key="NSTableView" ref="694979328"/>
<integer value="1"/>
</object> </object>
</object> </object>
<nil key="NSDefaultParagraphStyle"/> <double key="NSIntercellSpacingWidth">3</double>
<nil key="NSTextFinder"/> <double key="NSIntercellSpacingHeight">2</double>
<int key="NSPreferredTextFinderStyle">1</int> <object class="NSColor" key="NSBackgroundColor">
<int key="NSColorSpace">6</int>
<string key="NSCatalogName">System</string>
<string key="NSColorName">shadowColor</string>
<reference key="NSColor" ref="563235091"/>
</object> </object>
<int key="NSTVFlags">6</int> <object class="NSColor" key="NSGridColor">
<string key="NSMaxSize">{1116, 10000000}</string> <int key="NSColorSpace">1</int>
<string key="NSMinize">{114, 0}</string> <bytes key="NSRGB">MCAwIDAAA</bytes>
<nil key="NSDelegate"/>
</object> </object>
<double key="NSRowHeight">17</double>
<int key="NSTvFlags">306184192</int>
<reference key="NSDelegate"/>
<reference key="NSDataSource"/>
<int key="NSColumnAutoresizingStyle">4</int>
<int key="NSDraggingSourceMaskForLocal">15</int>
<int key="NSDraggingSourceMaskForNonLocal">0</int>
<bool key="NSAllowsTypeSelect">NO</bool>
<int key="NSTableViewDraggingDestinationStyle">0</int>
<int key="NSTableViewGroupRowStyle">1</int>
</object> </object>
<string key="NSFrame">{{1, 1}, {557, 302}}</string>
<reference key="NSSuperview" ref="135002307"/>
<reference key="NSNextKeyView" ref="944193845"/>
<reference key="NSDocView" ref="944193845"/>
<reference key="NSBGColor" ref="208330917"/>
<object class="NSCursor" key="NSCursor" id="1071817267">
<string key="NSHotSpot">{4, -5}</string>
<int key="NSCursorType">1</int>
</object> </object>
<string key="NSFrameSize">{601, 328}</string>
<reference key="NSSuperview" ref="59081481"/>
<reference key="NSNextKeyView" ref="694979328"/>
<string key="NSReuseIdentifierKey">_NS:1841</string>
<reference key="NSDocView" ref="694979328"/>
<reference key="NSBGColor" ref="758677672"/>
<int key="NScvFlags">4</int> <int key="NScvFlags">4</int>
</object> </object>
<object class="NSScroller" id="658731325"> <object class="NSScroller" id="230047761">
<reference key="NSNextResponder" ref="135002307"/> <reference key="NSNextResponder" ref="59081481"/>
<int key="NSvFlags">-2147483392</int> <int key="NSvFlags">-2147483392</int>
<string key="NSFrame">{{547, 1}, {11, 302}}</string> <string key="NSFrame">{{224, 17}, {15, 102}}</string>
<reference key="NSSuperview" ref="135002307"/> <reference key="NSSuperview" ref="59081481"/>
<int key="NSsFlags">256</int> <string key="NSReuseIdentifierKey">_NS:1860</string>
<reference key="NSTarget" ref="135002307"/> <reference key="NSTarget" ref="59081481"/>
<string key="NSAction">_doScroller:</string> <string key="NSAction">_doScroller:</string>
<double key="NSPercent">0.94666669999999997</double> <double key="NSPercent">0.99690402476780182</double>
</object> </object>
<object class="NSScroller" id="487661939"> <object class="NSScroller" id="1022181688">
<reference key="NSNextResponder" ref="135002307"/> <reference key="NSNextResponder" ref="59081481"/>
<int key="NSvFlags">-2147483392</int> <int key="NSvFlags">-2147483392</int>
<string key="NSFrame">{{-100, -100}, {87, 18}}</string> <string key="NSFrame">{{1, 299.97265625}, {597.5703125, 15}}</string>
<reference key="NSSuperview" ref="135002307"/> <reference key="NSSuperview" ref="59081481"/>
<int key="NSsFlags">257</int> <string key="NSReuseIdentifierKey">_NS:1862</string>
<reference key="NSTarget" ref="135002307"/> <int key="NSsFlags">1</int>
<reference key="NSTarget" ref="59081481"/>
<string key="NSAction">_doScroller:</string> <string key="NSAction">_doScroller:</string>
<double key="NSCurValue">1</double> <double key="NSPercent">0.99833887043189373</double>
<double key="NSPercent">0.94565220000000005</double>
</object>
</object> </object>
<string key="NSFrame">{{20, 44}, {559, 304}}</string>
<reference key="NSSuperview" ref="584094047"/>
<reference key="NSNextKeyView" ref="374521922"/>
<int key="NSsFlags">133650</int>
<reference key="NSVScroller" ref="658731325"/>
<reference key="NSHScroller" ref="487661939"/>
<reference key="NSContentView" ref="374521922"/>
</object> </object>
<object class="NSButton" id="158197552"> <string key="NSFrame">{{-1, 41}, {601, 328}}</string>
<reference key="NSNextResponder" ref="584094047"/>
<int key="NSvFlags">292</int>
<string key="NSFrame">{{198, 12}, {185, 28}}</string>
<reference key="NSSuperview" ref="584094047"/> <reference key="NSSuperview" ref="584094047"/>
<bool key="NSEnabled">YES</bool> <reference key="NSNextKeyView" ref="760419593"/>
<object class="NSButtonCell" key="NSCell" id="1059676164"> <string key="NSReuseIdentifierKey">_NS:1839</string>
<int key="NSCellFlags">67239424</int> <int key="NSsFlags">133680</int>
<int key="NSCellFlags2">138018816</int> <reference key="NSVScroller" ref="230047761"/>
<string key="NSContents">Save this Log...</string> <reference key="NSHScroller" ref="1022181688"/>
<reference key="NSSupport" ref="26"/> <reference key="NSContentView" ref="760419593"/>
<reference key="NSControlView" ref="158197552"/> <bytes key="NSScrollAmts">QSAAAEEgAABBmAAAQZgAAA</bytes>
<int key="NSButtonFlags">-2038284033</int> </object>
<int key="NSButtonFlags2">1</int> <object class="NSButton" id="293609884">
<reference key="NSAlternateImage" ref="59758337"/>
<string key="NSAlternateContents"/>
<object class="NSMutableString" key="NSKeyEquivalent">
<characters key="NS.bytes"/>
</object>
<int key="NSPeriodicDelay">200</int>
<int key="NSPeriodicInterval">25</int>
</object>
</object>
<object class="NSButton" id="911014409">
<reference key="NSNextResponder" ref="584094047"/> <reference key="NSNextResponder" ref="584094047"/>
<int key="NSvFlags">289</int> <int key="NSvFlags">289</int>
<string key="NSFrame">{{383, 17}, {198, 18}}</string> <string key="NSFrame">{{560, 4}, {32, 32}}</string>
<reference key="NSSuperview" ref="584094047"/> <reference key="NSSuperview" ref="584094047"/>
<string key="NSReuseIdentifierKey">_NS:682</string> <string key="NSReuseIdentifierKey">_NS:4108</string>
<bool key="NSEnabled">YES</bool> <bool key="NSEnabled">YES</bool>
<object class="NSButtonCell" key="NSCell" id="647591294"> <object class="NSButtonCell" key="NSCell" id="238101701">
<int key="NSCellFlags">67239424</int> <int key="NSCellFlags">67239424</int>
<int key="NSCellFlags2">67239936</int> <int key="NSCellFlags2">131072</int>
<string key="NSContents">Live Update</string> <string key="NSContents"/>
<reference key="NSSupport" ref="26"/> <reference key="NSSupport" ref="26"/>
<string key="NSCellIdentifier">_NS:682</string> <string key="NSCellIdentifier">_NS:4108</string>
<reference key="NSControlView" ref="911014409"/> <reference key="NSControlView" ref="293609884"/>
<int key="NSButtonFlags">1210864127</int> <int key="NSButtonFlags">-2033975041</int>
<int key="NSButtonFlags2">2</int> <int key="NSButtonFlags2">135</int>
<object class="NSCustomResource" key="NSNormalImage">
<string key="NSClassName">NSImage</string>
<string key="NSResourceName">NSSwitch</string>
</object>
<object class="NSButtonImageSource" key="NSAlternateImage" id="1063">
<string key="NSImageName">NSSwitch</string>
</object>
<string key="NSAlternateContents"/> <string key="NSAlternateContents"/>
<string key="NSKeyEquivalent"/> <string key="NSKeyEquivalent"/>
<int key="NSPeriodicDelay">200</int> <int key="NSPeriodicDelay">200</int>
...@@ -3960,8 +3926,18 @@ LCAuLi4</string> ...@@ -3960,8 +3926,18 @@ LCAuLi4</string>
</object> </object>
<object class="NSMutableArray" key="dict.values"> <object class="NSMutableArray" key="dict.values">
<bool key="EncodedWithXMLCoder">YES</bool> <bool key="EncodedWithXMLCoder">YES</bool>
<reference ref="250925261"/> <object class="NSColor">
<reference ref="883753529"/> <int key="NSColorSpace">6</int>
<string key="NSCatalogName">System</string>
<string key="NSColorName">selectedTextBackgroundColor</string>
<reference key="NSColor" ref="528917951"/>
</object>
<object class="NSColor">
<int key="NSColorSpace">6</int>
<string key="NSCatalogName">System</string>
<string key="NSColorName">selectedTextColor</string>
<reference key="NSColor" ref="563235091"/>
</object>
</object> </object>
</object> </object>
<reference key="NSInsertionColor" ref="563235091"/> <reference key="NSInsertionColor" ref="563235091"/>
...@@ -3993,7 +3969,10 @@ LCAuLi4</string> ...@@ -3993,7 +3969,10 @@ LCAuLi4</string>
<reference key="NSNextKeyView" ref="550703508"/> <reference key="NSNextKeyView" ref="550703508"/>
<reference key="NSDocView" ref="550703508"/> <reference key="NSDocView" ref="550703508"/>
<reference key="NSBGColor" ref="712893775"/> <reference key="NSBGColor" ref="712893775"/>
<reference key="NSCursor" ref="1071817267"/> <object class="NSCursor" key="NSCursor">
<string key="NSHotSpot">{4, -5}</string>
<int key="NSCursorType">1</int>
</object>
<int key="NScvFlags">4</int> <int key="NScvFlags">4</int>
</object> </object>
<object class="NSScroller" id="444566474"> <object class="NSScroller" id="444566474">
...@@ -4081,7 +4060,9 @@ LCAuLi4</string> ...@@ -4081,7 +4060,9 @@ LCAuLi4</string>
<reference key="NSControlView" ref="511315905"/> <reference key="NSControlView" ref="511315905"/>
<int key="NSButtonFlags">1211912703</int> <int key="NSButtonFlags">1211912703</int>
<int key="NSButtonFlags2">2</int> <int key="NSButtonFlags2">2</int>
<reference key="NSAlternateImage" ref="1063"/> <object class="NSButtonImageSource" key="NSAlternateImage">
<string key="NSImageName">NSSwitch</string>
</object>
<string key="NSAlternateContents"/> <string key="NSAlternateContents"/>
<string key="NSKeyEquivalent"/> <string key="NSKeyEquivalent"/>
<int key="NSPeriodicDelay">200</int> <int key="NSPeriodicDelay">200</int>
...@@ -5458,14 +5439,6 @@ LCAuLi4</string> ...@@ -5458,14 +5439,6 @@ LCAuLi4</string>
</object> </object>
<int key="connectionID">4149</int> <int key="connectionID">4149</int>
</object> </object>
<object class="IBConnectionRecord">
<object class="IBOutletConnection" key="connection">
<string key="label">o_messages</string>
<reference key="source" ref="199714555"/>
<reference key="destination" ref="944193845"/>
</object>
<int key="connectionID">4253</int>
</object>
<object class="IBConnectionRecord"> <object class="IBConnectionRecord">
<object class="IBOutletConnection" key="connection"> <object class="IBOutletConnection" key="connection">
<string key="label">o_msgs_save_btn</string> <string key="label">o_msgs_save_btn</string>
...@@ -7364,27 +7337,43 @@ LCAuLi4</string> ...@@ -7364,27 +7337,43 @@ LCAuLi4</string>
</object> </object>
<object class="IBConnectionRecord"> <object class="IBConnectionRecord">
<object class="IBOutletConnection" key="connection"> <object class="IBOutletConnection" key="connection">
<string key="label">o_msgs_liveUpdate_ckb</string> <string key="label">o_sidebar_scrollview</string>
<reference key="source" ref="498338108"/>
<reference key="destination" ref="979766179"/>
</object>
<int key="connectionID">4925</int>
</object>
<object class="IBConnectionRecord">
<object class="IBOutletConnection" key="connection">
<string key="label">o_msgs_table</string>
<reference key="source" ref="199714555"/> <reference key="source" ref="199714555"/>
<reference key="destination" ref="911014409"/> <reference key="destination" ref="694979328"/>
</object> </object>
<int key="connectionID">4923</int> <int key="connectionID">4935</int>
</object>
<object class="IBConnectionRecord">
<object class="IBOutletConnection" key="connection">
<string key="label">dataSource</string>
<reference key="source" ref="694979328"/>
<reference key="destination" ref="199714555"/>
</object>
<int key="connectionID">4936</int>
</object> </object>
<object class="IBConnectionRecord"> <object class="IBConnectionRecord">
<object class="IBActionConnection" key="connection"> <object class="IBActionConnection" key="connection">
<string key="label">liveUpdateMessagesPanel:</string> <string key="label">updateMessagesPanel:</string>
<reference key="source" ref="199714555"/> <reference key="source" ref="199714555"/>
<reference key="destination" ref="911014409"/> <reference key="destination" ref="293609884"/>
</object> </object>
<int key="connectionID">4924</int> <int key="connectionID">4939</int>
</object> </object>
<object class="IBConnectionRecord"> <object class="IBConnectionRecord">
<object class="IBOutletConnection" key="connection"> <object class="IBOutletConnection" key="connection">
<string key="label">o_sidebar_scrollview</string> <string key="label">o_msgs_refresh_btn</string>
<reference key="source" ref="498338108"/> <reference key="source" ref="199714555"/>
<reference key="destination" ref="979766179"/> <reference key="destination" ref="293609884"/>
</object> </object>
<int key="connectionID">4925</int> <int key="connectionID">4940</int>
</object> </object>
</object> </object>
<object class="IBMutableOrderedSet" key="objectRecords"> <object class="IBMutableOrderedSet" key="objectRecords">
...@@ -8447,9 +8436,9 @@ LCAuLi4</string> ...@@ -8447,9 +8436,9 @@ LCAuLi4</string>
<object class="NSMutableArray" key="children"> <object class="NSMutableArray" key="children">
<bool key="EncodedWithXMLCoder">YES</bool> <bool key="EncodedWithXMLCoder">YES</bool>
<reference ref="23828214"/> <reference ref="23828214"/>
<reference ref="135002307"/>
<reference ref="158197552"/> <reference ref="158197552"/>
<reference ref="911014409"/> <reference ref="59081481"/>
<reference ref="293609884"/>
</object> </object>
<reference key="parent" ref="509304476"/> <reference key="parent" ref="509304476"/>
</object> </object>
...@@ -8462,22 +8451,6 @@ LCAuLi4</string> ...@@ -8462,22 +8451,6 @@ LCAuLi4</string>
</object> </object>
<reference key="parent" ref="584094047"/> <reference key="parent" ref="584094047"/>
</object> </object>
<object class="IBObjectRecord">
<int key="objectID">4250</int>
<reference key="object" ref="135002307"/>
<object class="NSMutableArray" key="children">
<bool key="EncodedWithXMLCoder">YES</bool>
<reference ref="944193845"/>
<reference ref="658731325"/>
<reference ref="487661939"/>
</object>
<reference key="parent" ref="584094047"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">4251</int>
<reference key="object" ref="944193845"/>
<reference key="parent" ref="135002307"/>
</object>
<object class="IBObjectRecord"> <object class="IBObjectRecord">
<int key="objectID">4254</int> <int key="objectID">4254</int>
<reference key="object" ref="158197552"/> <reference key="object" ref="158197552"/>
...@@ -9273,16 +9246,6 @@ LCAuLi4</string> ...@@ -9273,16 +9246,6 @@ LCAuLi4</string>
<reference key="object" ref="223969546"/> <reference key="object" ref="223969546"/>
<reference key="parent" ref="820893005"/> <reference key="parent" ref="820893005"/>
</object> </object>
<object class="IBObjectRecord">
<int key="objectID">4363</int>
<reference key="object" ref="658731325"/>
<reference key="parent" ref="135002307"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">4364</int>
<reference key="object" ref="487661939"/>
<reference key="parent" ref="135002307"/>
</object>
<object class="IBObjectRecord"> <object class="IBObjectRecord">
<int key="objectID">4368</int> <int key="objectID">4368</int>
<reference key="object" ref="444566474"/> <reference key="object" ref="444566474"/>
...@@ -10150,18 +10113,62 @@ LCAuLi4</string> ...@@ -10150,18 +10113,62 @@ LCAuLi4</string>
<reference key="parent" ref="129808516"/> <reference key="parent" ref="129808516"/>
</object> </object>
<object class="IBObjectRecord"> <object class="IBObjectRecord">
<int key="objectID">4921</int> <int key="objectID">4926</int>
<reference key="object" ref="911014409"/> <reference key="object" ref="59081481"/>
<object class="NSMutableArray" key="children">
<bool key="EncodedWithXMLCoder">YES</bool>
<reference ref="230047761"/>
<reference ref="1022181688"/>
<reference ref="694979328"/>
</object>
<reference key="parent" ref="584094047"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">4927</int>
<reference key="object" ref="230047761"/>
<reference key="parent" ref="59081481"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">4928</int>
<reference key="object" ref="1022181688"/>
<reference key="parent" ref="59081481"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">4929</int>
<reference key="object" ref="694979328"/>
<object class="NSMutableArray" key="children">
<bool key="EncodedWithXMLCoder">YES</bool>
<reference ref="416288623"/>
</object>
<reference key="parent" ref="59081481"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">4931</int>
<reference key="object" ref="416288623"/>
<object class="NSMutableArray" key="children">
<bool key="EncodedWithXMLCoder">YES</bool>
<reference ref="1020558889"/>
</object>
<reference key="parent" ref="694979328"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">4934</int>
<reference key="object" ref="1020558889"/>
<reference key="parent" ref="416288623"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">4937</int>
<reference key="object" ref="293609884"/>
<object class="NSMutableArray" key="children"> <object class="NSMutableArray" key="children">
<bool key="EncodedWithXMLCoder">YES</bool> <bool key="EncodedWithXMLCoder">YES</bool>
<reference ref="647591294"/> <reference ref="238101701"/>
</object> </object>
<reference key="parent" ref="584094047"/> <reference key="parent" ref="584094047"/>
</object> </object>
<object class="IBObjectRecord"> <object class="IBObjectRecord">
<int key="objectID">4922</int> <int key="objectID">4938</int>
<reference key="object" ref="647591294"/> <reference key="object" ref="238101701"/>
<reference key="parent" ref="911014409"/> <reference key="parent" ref="293609884"/>
</object> </object>
</object> </object>
</object> </object>
...@@ -10665,10 +10672,6 @@ LCAuLi4</string> ...@@ -10665,10 +10672,6 @@ LCAuLi4</string>
<string>413.ImportedFromIB2</string> <string>413.ImportedFromIB2</string>
<string>4147.IBPluginDependency</string> <string>4147.IBPluginDependency</string>
<string>4147.ImportedFromIB2</string> <string>4147.ImportedFromIB2</string>
<string>4250.IBPluginDependency</string>
<string>4250.ImportedFromIB2</string>
<string>4251.IBPluginDependency</string>
<string>4251.ImportedFromIB2</string>
<string>4254.IBPluginDependency</string> <string>4254.IBPluginDependency</string>
<string>4254.ImportedFromIB2</string> <string>4254.ImportedFromIB2</string>
<string>4257.IBPluginDependency</string> <string>4257.IBPluginDependency</string>
...@@ -10723,10 +10726,6 @@ LCAuLi4</string> ...@@ -10723,10 +10726,6 @@ LCAuLi4</string>
<string>4360.IBPluginDependency</string> <string>4360.IBPluginDependency</string>
<string>4361.IBPluginDependency</string> <string>4361.IBPluginDependency</string>
<string>4362.IBPluginDependency</string> <string>4362.IBPluginDependency</string>
<string>4363.IBPluginDependency</string>
<string>4363.IBShouldRemoveOnLegacySave</string>
<string>4364.IBPluginDependency</string>
<string>4364.IBShouldRemoveOnLegacySave</string>
<string>4368.IBPluginDependency</string> <string>4368.IBPluginDependency</string>
<string>4368.IBShouldRemoveOnLegacySave</string> <string>4368.IBShouldRemoveOnLegacySave</string>
<string>4369.IBPluginDependency</string> <string>4369.IBPluginDependency</string>
...@@ -10890,9 +10889,16 @@ LCAuLi4</string> ...@@ -10890,9 +10889,16 @@ LCAuLi4</string>
<string>4904.CustomClassName</string> <string>4904.CustomClassName</string>
<string>4904.IBPluginDependency</string> <string>4904.IBPluginDependency</string>
<string>4919.IBPluginDependency</string> <string>4919.IBPluginDependency</string>
<string>4921.IBPluginDependency</string> <string>4926.IBPluginDependency</string>
<string>4921.IBViewBoundsToFrameTransform</string> <string>4926.IBViewBoundsToFrameTransform</string>
<string>4922.IBPluginDependency</string> <string>4927.IBPluginDependency</string>
<string>4928.IBPluginDependency</string>
<string>4929.IBPluginDependency</string>
<string>4931.IBPluginDependency</string>
<string>4934.IBPluginDependency</string>
<string>4937.IBPluginDependency</string>
<string>4937.IBViewBoundsToFrameTransform</string>
<string>4938.IBPluginDependency</string>
<string>5.IBPluginDependency</string> <string>5.IBPluginDependency</string>
<string>5.ImportedFromIB2</string> <string>5.ImportedFromIB2</string>
<string>56.IBPluginDependency</string> <string>56.IBPluginDependency</string>
...@@ -11123,9 +11129,9 @@ LCAuLi4</string> ...@@ -11123,9 +11129,9 @@ LCAuLi4</string>
<string>{{430, 565}, {137, 103}}</string> <string>{{430, 565}, {137, 103}}</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<boolean value="YES"/> <boolean value="YES"/>
<string>{{1017, 498}, {604, 310}}</string> <string>{{676, 446}, {604, 310}}</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>{{1017, 498}, {604, 310}}</string> <string>{{676, 446}, {604, 310}}</string>
<boolean value="YES"/> <boolean value="YES"/>
<boolean value="NO"/> <boolean value="NO"/>
<boolean value="YES"/> <boolean value="YES"/>
...@@ -11470,10 +11476,6 @@ LCAuLi4</string> ...@@ -11470,10 +11476,6 @@ LCAuLi4</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<boolean value="YES"/> <boolean value="YES"/>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<boolean value="YES"/>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<boolean value="YES"/>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
...@@ -11520,10 +11522,6 @@ LCAuLi4</string> ...@@ -11520,10 +11522,6 @@ LCAuLi4</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<boolean value="YES"/> <boolean value="YES"/>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<boolean value="YES"/>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<boolean value="YES"/>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<object class="NSAffineTransform"> <object class="NSAffineTransform">
<bytes key="NSTransformStruct">P4AAAL+AAABCsAAAw3cAAA</bytes> <bytes key="NSTransformStruct">P4AAAL+AAABCsAAAw3cAAA</bytes>
</object> </object>
...@@ -11734,7 +11732,16 @@ LCAuLi4</string> ...@@ -11734,7 +11732,16 @@ LCAuLi4</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<object class="NSAffineTransform"> <object class="NSAffineTransform">
<bytes key="NSTransformStruct">P4AAAL+AAABDyoAAwhAAAA</bytes> <bytes key="NSTransformStruct">P4AAAL+AAABCRAAAw5kAAA</bytes>
</object>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<object class="NSAffineTransform">
<bytes key="NSTransformStruct">P4AAAL+AAABECkAAwhwAAA</bytes>
</object> </object>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
...@@ -11796,7 +11803,7 @@ LCAuLi4</string> ...@@ -11796,7 +11803,7 @@ LCAuLi4</string>
</object> </object>
</object> </object>
<nil key="sourceID"/> <nil key="sourceID"/>
<int key="maxID">4925</int> <int key="maxID">4940</int>
</object> </object>
<object class="IBClassDescriber" key="IBDocument.Classes"> <object class="IBClassDescriber" key="IBDocument.Classes">
<object class="NSMutableArray" key="referencedPartialClassDescriptions"> <object class="NSMutableArray" key="referencedPartialClassDescriptions">
...@@ -14805,10 +14812,10 @@ LCAuLi4</string> ...@@ -14805,10 +14812,10 @@ LCAuLi4</string>
<object class="NSArray" key="dict.sortedKeys"> <object class="NSArray" key="dict.sortedKeys">
<bool key="EncodedWithXMLCoder">YES</bool> <bool key="EncodedWithXMLCoder">YES</bool>
<string>crashReporterAction:</string> <string>crashReporterAction:</string>
<string>liveUpdateMessagesPanel:</string>
<string>openCrashLog:</string> <string>openCrashLog:</string>
<string>saveDebugLog:</string> <string>saveDebugLog:</string>
<string>showMessagesPanel:</string> <string>showMessagesPanel:</string>
<string>updateMessagesPanel:</string>
</object> </object>
<object class="NSMutableArray" key="dict.values"> <object class="NSMutableArray" key="dict.values">
<bool key="EncodedWithXMLCoder">YES</bool> <bool key="EncodedWithXMLCoder">YES</bool>
...@@ -14824,10 +14831,10 @@ LCAuLi4</string> ...@@ -14824,10 +14831,10 @@ LCAuLi4</string>
<object class="NSArray" key="dict.sortedKeys"> <object class="NSArray" key="dict.sortedKeys">
<bool key="EncodedWithXMLCoder">YES</bool> <bool key="EncodedWithXMLCoder">YES</bool>
<string>crashReporterAction:</string> <string>crashReporterAction:</string>
<string>liveUpdateMessagesPanel:</string>
<string>openCrashLog:</string> <string>openCrashLog:</string>
<string>saveDebugLog:</string> <string>saveDebugLog:</string>
<string>showMessagesPanel:</string> <string>showMessagesPanel:</string>
<string>updateMessagesPanel:</string>
</object> </object>
<object class="NSMutableArray" key="dict.values"> <object class="NSMutableArray" key="dict.values">
<bool key="EncodedWithXMLCoder">YES</bool> <bool key="EncodedWithXMLCoder">YES</bool>
...@@ -14835,10 +14842,6 @@ LCAuLi4</string> ...@@ -14835,10 +14842,6 @@ LCAuLi4</string>
<string key="name">crashReporterAction:</string> <string key="name">crashReporterAction:</string>
<string key="candidateClassName">id</string> <string key="candidateClassName">id</string>
</object> </object>
<object class="IBActionInfo">
<string key="name">liveUpdateMessagesPanel:</string>
<string key="candidateClassName">id</string>
</object>
<object class="IBActionInfo"> <object class="IBActionInfo">
<string key="name">openCrashLog:</string> <string key="name">openCrashLog:</string>
<string key="candidateClassName">id</string> <string key="candidateClassName">id</string>
...@@ -14851,6 +14854,10 @@ LCAuLi4</string> ...@@ -14851,6 +14854,10 @@ LCAuLi4</string>
<string key="name">showMessagesPanel:</string> <string key="name">showMessagesPanel:</string>
<string key="candidateClassName">id</string> <string key="candidateClassName">id</string>
</object> </object>
<object class="IBActionInfo">
<string key="name">updateMessagesPanel:</string>
<string key="candidateClassName">id</string>
</object>
</object> </object>
</object> </object>
<object class="NSMutableDictionary" key="outlets"> <object class="NSMutableDictionary" key="outlets">
...@@ -14875,9 +14882,10 @@ LCAuLi4</string> ...@@ -14875,9 +14882,10 @@ LCAuLi4</string>
<string>o_mainmenu</string> <string>o_mainmenu</string>
<string>o_messages</string> <string>o_messages</string>
<string>o_msgs_crashlog_btn</string> <string>o_msgs_crashlog_btn</string>
<string>o_msgs_liveUpdate_ckb</string>
<string>o_msgs_panel</string> <string>o_msgs_panel</string>
<string>o_msgs_refresh_btn</string>
<string>o_msgs_save_btn</string> <string>o_msgs_save_btn</string>
<string>o_msgs_table</string>
<string>o_open</string> <string>o_open</string>
<string>o_playlist</string> <string>o_playlist</string>
<string>o_prefs</string> <string>o_prefs</string>
...@@ -14904,9 +14912,10 @@ LCAuLi4</string> ...@@ -14904,9 +14912,10 @@ LCAuLi4</string>
<string>id</string> <string>id</string>
<string>NSTextView</string> <string>NSTextView</string>
<string>NSButton</string> <string>NSButton</string>
<string>NSButton</string>
<string>NSWindow</string> <string>NSWindow</string>
<string>NSButton</string> <string>NSButton</string>
<string>NSButton</string>
<string>id</string>
<string>id</string> <string>id</string>
<string>VLCPlaylist</string> <string>VLCPlaylist</string>
<string>id</string> <string>id</string>
...@@ -14936,9 +14945,10 @@ LCAuLi4</string> ...@@ -14936,9 +14945,10 @@ LCAuLi4</string>
<string>o_mainmenu</string> <string>o_mainmenu</string>
<string>o_messages</string> <string>o_messages</string>
<string>o_msgs_crashlog_btn</string> <string>o_msgs_crashlog_btn</string>
<string>o_msgs_liveUpdate_ckb</string>
<string>o_msgs_panel</string> <string>o_msgs_panel</string>
<string>o_msgs_refresh_btn</string>
<string>o_msgs_save_btn</string> <string>o_msgs_save_btn</string>
<string>o_msgs_table</string>
<string>o_open</string> <string>o_open</string>
<string>o_playlist</string> <string>o_playlist</string>
<string>o_prefs</string> <string>o_prefs</string>
...@@ -15019,18 +15029,22 @@ LCAuLi4</string> ...@@ -15019,18 +15029,22 @@ LCAuLi4</string>
<string key="name">o_msgs_crashlog_btn</string> <string key="name">o_msgs_crashlog_btn</string>
<string key="candidateClassName">NSButton</string> <string key="candidateClassName">NSButton</string>
</object> </object>
<object class="IBToOneOutletInfo">
<string key="name">o_msgs_liveUpdate_ckb</string>
<string key="candidateClassName">NSButton</string>
</object>
<object class="IBToOneOutletInfo"> <object class="IBToOneOutletInfo">
<string key="name">o_msgs_panel</string> <string key="name">o_msgs_panel</string>
<string key="candidateClassName">NSWindow</string> <string key="candidateClassName">NSWindow</string>
</object> </object>
<object class="IBToOneOutletInfo">
<string key="name">o_msgs_refresh_btn</string>
<string key="candidateClassName">NSButton</string>
</object>
<object class="IBToOneOutletInfo"> <object class="IBToOneOutletInfo">
<string key="name">o_msgs_save_btn</string> <string key="name">o_msgs_save_btn</string>
<string key="candidateClassName">NSButton</string> <string key="candidateClassName">NSButton</string>
</object> </object>
<object class="IBToOneOutletInfo">
<string key="name">o_msgs_table</string>
<string key="candidateClassName">id</string>
</object>
<object class="IBToOneOutletInfo"> <object class="IBToOneOutletInfo">
<string key="name">o_open</string> <string key="name">o_open</string>
<string key="candidateClassName">id</string> <string key="candidateClassName">id</string>
...@@ -17664,7 +17678,6 @@ LCAuLi4</string> ...@@ -17664,7 +17678,6 @@ LCAuLi4</string>
<string>NSApplicationIcon</string> <string>NSApplicationIcon</string>
<string>NSMenuCheckmark</string> <string>NSMenuCheckmark</string>
<string>NSMenuMixedState</string> <string>NSMenuMixedState</string>
<string>NSSwitch</string>
<string>back</string> <string>back</string>
<string>back-pressed</string> <string>back-pressed</string>
<string>dropzone</string> <string>dropzone</string>
...@@ -17707,7 +17720,6 @@ LCAuLi4</string> ...@@ -17707,7 +17720,6 @@ LCAuLi4</string>
<string>{128, 128}</string> <string>{128, 128}</string>
<string>{9, 8}</string> <string>{9, 8}</string>
<string>{7, 2}</string> <string>{7, 2}</string>
<string>{15, 15}</string>
<string>{35, 23}</string> <string>{35, 23}</string>
<string>{35, 23}</string> <string>{35, 23}</string>
<string>{128, 128}</string> <string>{128, 128}</string>
......
/***************************************************************************** /*****************************************************************************
* intf.h: MacOS X interface module * intf.h: MacOS X interface module
***************************************************************************** *****************************************************************************
* Copyright (C) 2002-2011 VLC authors and VideoLAN * Copyright (C) 2002-2012 VLC authors and VideoLAN
* $Id$ * $Id$
* *
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net> * Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
...@@ -116,15 +116,14 @@ struct intf_sys_t ...@@ -116,15 +116,14 @@ struct intf_sys_t
IBOutlet VLCControls * o_controls; /* VLCControls */ IBOutlet VLCControls * o_controls; /* VLCControls */
IBOutlet VLCPlaylist * o_playlist; /* VLCPlaylist */ IBOutlet VLCPlaylist * o_playlist; /* VLCPlaylist */
IBOutlet NSTextView * o_messages; /* messages tv */
IBOutlet NSWindow * o_msgs_panel; /* messages panel */ IBOutlet NSWindow * o_msgs_panel; /* messages panel */
NSMutableArray * o_msg_arr; /* messages array */ NSMutableArray * o_msg_arr; /* messages array */
NSLock * o_msg_lock; /* messages lock */ NSLock * o_msg_lock; /* messages lock */
BOOL b_msg_arr_changed; /* did the array change? */ BOOL b_msg_arr_changed; /* did the array change? */
IBOutlet NSButton * o_msgs_crashlog_btn; /* messages open crashlog */ IBOutlet NSButton * o_msgs_crashlog_btn; /* messages open crashlog */
IBOutlet NSButton * o_msgs_save_btn; /* save the log as rtf */ IBOutlet NSButton * o_msgs_save_btn; /* save the log as rtf */
IBOutlet NSButton * o_msgs_liveUpdate_ckb; /* always update the panel when visible */ IBOutlet NSButton * o_msgs_refresh_btn; /* update the panel */
BOOL b_msg_live_update; IBOutlet id o_msgs_table;
/* CrashReporter panel */ /* CrashReporter panel */
IBOutlet NSButton * o_crashrep_dontSend_btn; IBOutlet NSButton * o_crashrep_dontSend_btn;
...@@ -195,13 +194,11 @@ struct intf_sys_t ...@@ -195,13 +194,11 @@ struct intf_sys_t
- (void)initStrings; - (void)initStrings;
- (BOOL)application:(NSApplication *)o_app openFile:(NSString *)o_filename; - (BOOL)application:(NSApplication *)o_app openFile:(NSString *)o_filename;
- (void)updateMessageDisplay;
- (IBAction)crashReporterAction:(id)sender; - (IBAction)crashReporterAction:(id)sender;
- (IBAction)openCrashLog:(id)sender; - (IBAction)openCrashLog:(id)sender;
- (IBAction)saveDebugLog:(id)sender; - (IBAction)saveDebugLog:(id)sender;
- (IBAction)showMessagesPanel:(id)sender; - (IBAction)showMessagesPanel:(id)sender;
- (IBAction)liveUpdateMessagesPanel:(id)sender; - (IBAction)updateMessagesPanel:(id)sender;
- (void)processReceivedlibvlcMessage:(const msg_item_t *) item ofType: (int)type withStr: (char *)str; - (void)processReceivedlibvlcMessage:(const msg_item_t *) item ofType: (int)type withStr: (char *)str;
......
...@@ -611,8 +611,7 @@ static VLCMain *_o_sharedMainInstance = nil; ...@@ -611,8 +611,7 @@ static VLCMain *_o_sharedMainInstance = nil;
[o_remote setClickCountEnabledButtons: kRemoteButtonPlay]; [o_remote setClickCountEnabledButtons: kRemoteButtonPlay];
[o_remote setDelegate: _o_sharedMainInstance]; [o_remote setDelegate: _o_sharedMainInstance];
b_msg_live_update = [[NSUserDefaults standardUserDefaults] boolForKey:@"LiveUpdateTheMessagesPanel"]; [o_msgs_refresh_btn setImage: [NSImage imageNamed: NSImageNameRefreshTemplate]];
[o_msgs_liveUpdate_ckb setState: b_msg_live_update];
/* yeah, we are done */ /* yeah, we are done */
b_nativeFullscreenMode = config_GetInt( p_intf, "macosx-nativefullscreenmode" ); b_nativeFullscreenMode = config_GetInt( p_intf, "macosx-nativefullscreenmode" );
...@@ -660,7 +659,6 @@ static VLCMain *_o_sharedMainInstance = nil; ...@@ -660,7 +659,6 @@ static VLCMain *_o_sharedMainInstance = nil;
[o_msgs_panel setTitle: _NS("Messages")]; [o_msgs_panel setTitle: _NS("Messages")];
[o_msgs_crashlog_btn setTitle: _NS("Open CrashLog...")]; [o_msgs_crashlog_btn setTitle: _NS("Open CrashLog...")];
[o_msgs_save_btn setTitle: _NS("Save this Log...")]; [o_msgs_save_btn setTitle: _NS("Save this Log...")];
[o_msgs_liveUpdate_ckb setTitle: _NS("Live Update")];
/* crash reporter panel */ /* crash reporter panel */
[o_crashrep_send_btn setTitle: _NS("Send")]; [o_crashrep_send_btn setTitle: _NS("Send")];
...@@ -1837,15 +1835,9 @@ unsigned int CocoaKeyToVLC( unichar i_key ) ...@@ -1837,15 +1835,9 @@ unsigned int CocoaKeyToVLC( unichar i_key )
#pragma mark - #pragma mark -
#pragma mark Errors, warnings and messages #pragma mark Errors, warnings and messages
- (IBAction)liveUpdateMessagesPanel:(id)sender - (IBAction)updateMessagesPanel:(id)sender
{ {
if ([[NSUserDefaults standardUserDefaults] boolForKey:@"LiveUpdateTheMessagesPanel"]) [self windowDidBecomeKey:nil];
[[NSUserDefaults standardUserDefaults] setObject:@"NO" forKey:@"LiveUpdateTheMessagesPanel"];
else
[[NSUserDefaults standardUserDefaults] setObject:@"YES" forKey:@"LiveUpdateTheMessagesPanel"];
b_msg_live_update = [[NSUserDefaults standardUserDefaults] boolForKey:@"LiveUpdateTheMessagesPanel"];
[o_msgs_liveUpdate_ckb setState: b_msg_live_update];
} }
- (IBAction)showMessagesPanel:(id)sender - (IBAction)showMessagesPanel:(id)sender
...@@ -1855,29 +1847,20 @@ unsigned int CocoaKeyToVLC( unichar i_key ) ...@@ -1855,29 +1847,20 @@ unsigned int CocoaKeyToVLC( unichar i_key )
- (void)windowDidBecomeKey:(NSNotification *)o_notification - (void)windowDidBecomeKey:(NSNotification *)o_notification
{ {
if( [o_notification object] == o_msgs_panel ) [o_msgs_table reloadData];
[self updateMessageDisplay]; [o_msgs_table scrollRowToVisible: [o_msg_arr count] - 1];
} }
- (void)updateMessageDisplay - (NSInteger)numberOfRowsInTableView:(NSTableView *)aTableView
{ {
if( [o_msgs_panel isVisible] && (b_msg_live_update || [o_msgs_panel isKeyWindow]) && b_msg_arr_changed ) if (aTableView == o_msgs_table)
{ return [o_msg_arr count];
id o_msg; return 0;
NSEnumerator * o_enum; }
[o_messages setString: @""];
[o_msg_lock lock];
o_enum = [o_msg_arr objectEnumerator];
while( ( o_msg = [o_enum nextObject] ) != NULL )
[o_messages insertText: o_msg];
b_msg_arr_changed = NO; - (id)tableView:(NSTableView *)aTableView objectValueForTableColumn:(NSTableColumn *)aTableColumn row:(NSInteger)rowIndex
[o_msg_lock unlock]; {
} return [o_msg_arr objectAtIndex: rowIndex];
} }
- (void)processReceivedlibvlcMessage:(const msg_item_t *) item ofType: (int)i_type withStr: (char *)str - (void)processReceivedlibvlcMessage:(const msg_item_t *) item ofType: (int)i_type withStr: (char *)str
...@@ -1886,12 +1869,13 @@ unsigned int CocoaKeyToVLC( unichar i_key ) ...@@ -1886,12 +1869,13 @@ unsigned int CocoaKeyToVLC( unichar i_key )
NSColor *o_red = [NSColor redColor]; NSColor *o_red = [NSColor redColor];
NSColor *o_yellow = [NSColor yellowColor]; NSColor *o_yellow = [NSColor yellowColor];
NSColor *o_gray = [NSColor grayColor]; NSColor *o_gray = [NSColor grayColor];
NSString * firstString, * secondString;
NSColor * pp_color[4] = { o_white, o_red, o_yellow, o_gray }; NSColor * pp_color[4] = { o_white, o_red, o_yellow, o_gray };
static const char * ppsz_type[4] = { ": ", " error: ", " warning: ", " debug: " }; static const char * ppsz_type[4] = { ": ", " error: ", " warning: ", " debug: " };
NSDictionary *o_attr; NSDictionary *o_attr;
NSAttributedString *o_msg_color; NSMutableAttributedString *o_msg_color;
[o_msg_lock lock]; [o_msg_lock lock];
...@@ -1900,19 +1884,17 @@ unsigned int CocoaKeyToVLC( unichar i_key ) ...@@ -1900,19 +1884,17 @@ unsigned int CocoaKeyToVLC( unichar i_key )
[o_msg_arr removeObjectAtIndex: 0]; [o_msg_arr removeObjectAtIndex: 0];
[o_msg_arr removeObjectAtIndex: 1]; [o_msg_arr removeObjectAtIndex: 1];
} }
firstString = [NSString stringWithFormat:@"%s%s", item->psz_module, ppsz_type[i_type]];
o_attr = [NSDictionary dictionaryWithObject: pp_color[3] forKey: NSForegroundColorAttributeName]; secondString = [NSString stringWithFormat:@"%@%s\n", firstString, str];
o_msg_color = [[NSAttributedString alloc] initWithString: [NSString stringWithFormat: @"%s%s", item->psz_module, ppsz_type[i_type]] attributes: o_attr];
[o_msg_arr addObject: [o_msg_color autorelease]];
o_attr = [NSDictionary dictionaryWithObject: pp_color[i_type] forKey: NSForegroundColorAttributeName]; o_attr = [NSDictionary dictionaryWithObject: pp_color[i_type] forKey: NSForegroundColorAttributeName];
o_msg_color = [[NSAttributedString alloc] initWithString: [NSString stringWithFormat: @"%s\n", str] attributes: o_attr]; o_msg_color = [[NSMutableAttributedString alloc] initWithString: secondString attributes: o_attr];
o_attr = [NSDictionary dictionaryWithObject: pp_color[3] forKey: NSForegroundColorAttributeName];
[o_msg_color setAttributes: o_attr range: NSMakeRange( 0, [firstString length] )];
[o_msg_arr addObject: [o_msg_color autorelease]]; [o_msg_arr addObject: [o_msg_color autorelease]];
b_msg_arr_changed = YES; b_msg_arr_changed = YES;
[o_msg_lock unlock]; [o_msg_lock unlock];
[self performSelectorOnMainThread:@selector(updateMessageDisplay) withObject: nil waitUntilDone:NO];
} }
- (IBAction)saveDebugLog:(id)sender - (IBAction)saveDebugLog:(id)sender
...@@ -1930,7 +1912,15 @@ unsigned int CocoaKeyToVLC( unichar i_key ) ...@@ -1930,7 +1912,15 @@ unsigned int CocoaKeyToVLC( unichar i_key )
BOOL b_returned; BOOL b_returned;
if( returnCode == NSOKButton ) if( returnCode == NSOKButton )
{ {
b_returned = [o_messages writeRTFDToFile: [[sheet URL] path] atomically: YES]; NSUInteger count = [o_msg_arr count];
NSMutableAttributedString * string = [[NSMutableAttributedString alloc] init];
for (NSUInteger i = 0; i < count; i++)
{
[string appendAttributedString: [o_msg_arr objectAtIndex: i]];
}
b_returned = [[string RTFDFileWrapperFromRange:NSMakeRange( 0, [string length] ) documentAttributes:[NSDictionary dictionaryWithObject: NSRTFDTextDocumentType forKey: NSDocumentTypeDocumentAttribute]] writeToFile:[[sheet URL] path] atomically:YES updateFilenames:NO];
[string release];
if(! b_returned ) if(! b_returned )
msg_Warn( p_intf, "Error while saving the debug log" ); msg_Warn( p_intf, "Error while saving the debug log" );
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment