Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
6bdb92a0
Commit
6bdb92a0
authored
Aug 06, 2006
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* fix compilation warnings by adding _defaultTableHeader*SortImage to NSOutlineView's interface
parent
db7965b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
20 deletions
+18
-20
modules/gui/macosx/playlist.m
modules/gui/macosx/playlist.m
+18
-20
No files found.
modules/gui/macosx/playlist.m
View file @
6bdb92a0
...
@@ -323,6 +323,19 @@ NSLog( @"expandable" );
...
@@ -323,6 +323,19 @@ NSLog( @"expandable" );
@end
@end
/*****************************************************************************
* extension to NSOutlineView's interface to fix compilation warnings
* and let us access these 2 functions properly
* this uses a private Apple-API, but works fine on all current OSX releases
* keep checking for compatiblity with future releases though
*****************************************************************************/
@interface
NSOutlineView
(
UndocumentedSortImages
)
+
(
NSImage
*
)
_defaultTableHeaderSortImage
;
+
(
NSImage
*
)
_defaultTableHeaderReverseSortImage
;
@end
/*****************************************************************************
/*****************************************************************************
* VLCPlaylist implementation
* VLCPlaylist implementation
*****************************************************************************/
*****************************************************************************/
...
@@ -357,26 +370,11 @@ NSLog( @"expandable" );
...
@@ -357,26 +370,11 @@ NSLog( @"expandable" );
@"VLCPlaylistItemPboardType"
,
nil
]];
@"VLCPlaylistItemPboardType"
,
nil
]];
[
o_outline_view
setIntercellSpacing
:
NSMakeSize
(
0
.
0
,
1
.
0
)];
[
o_outline_view
setIntercellSpacing
:
NSMakeSize
(
0
.
0
,
1
.
0
)];
/* We need to check whether _defaultTableHeaderSortImage exists, since it
/* this uses private Apple API which works fine until 10.4,
belongs to an Apple hidden private API, and then can "disapear" at any time*/
* but keep checking in the future!
* These methods are being added artificially to NSOutlineView's interface above */
if
(
[[
NSOutlineView
class
]
respondsToSelector
:
@selector
(
_defaultTableHeaderSortImage
)]
)
o_ascendingSortingImage
=
[[
NSOutlineView
class
]
_defaultTableHeaderSortImage
];
{
o_descendingSortingImage
=
[[
NSOutlineView
class
]
_defaultTableHeaderReverseSortImage
];
o_ascendingSortingImage
=
[[
NSOutlineView
class
]
_defaultTableHeaderSortImage
];
}
else
{
o_ascendingSortingImage
=
nil
;
}
if
(
[[
NSOutlineView
class
]
respondsToSelector
:
@selector
(
_defaultTableHeaderReverseSortImage
)]
)
{
o_descendingSortingImage
=
[[
NSOutlineView
class
]
_defaultTableHeaderReverseSortImage
];
}
else
{
o_descendingSortingImage
=
nil
;
}
o_tc_sortColumn
=
nil
;
o_tc_sortColumn
=
nil
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment