Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
a1a89a9f
Commit
a1a89a9f
authored
Nov 23, 2007
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MacOSX/Framework/Sources/VLCMediaList.m: Use @"media" binding key instead of @"Media".
parent
895551c4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
extras/MacOSX/Framework/Sources/VLCMediaList.m
extras/MacOSX/Framework/Sources/VLCMediaList.m
+6
-6
No files found.
extras/MacOSX/Framework/Sources/VLCMediaList.m
View file @
a1a89a9f
...
@@ -68,7 +68,7 @@ static void HandleMediaListItemDeleted( const libvlc_event_t * event, void * use
...
@@ -68,7 +68,7 @@ static void HandleMediaListItemDeleted( const libvlc_event_t * event, void * use
}
}
@implementation
VLCMediaList
(
KeyValueCodingCompliance
)
@implementation
VLCMediaList
(
KeyValueCodingCompliance
)
/* For the @"
M
edia" key */
/* For the @"
m
edia" key */
-
(
int
)
countOfMedia
-
(
int
)
countOfMedia
{
{
return
[
self
count
];
return
[
self
count
];
...
@@ -154,7 +154,7 @@ static void HandleMediaListItemDeleted( const libvlc_event_t * event, void * use
...
@@ -154,7 +154,7 @@ static void HandleMediaListItemDeleted( const libvlc_event_t * event, void * use
-
(
void
)
insertMedia
:(
VLCMedia
*
)
media
atIndex
:
(
int
)
index
-
(
void
)
insertMedia
:(
VLCMedia
*
)
media
atIndex
:
(
int
)
index
{
{
[
media
retain
];
[
media
retain
];
// Add it to the libvlc's medialist
// Add it to the libvlc's medialist
libvlc_exception_t
p_e
;
libvlc_exception_t
p_e
;
libvlc_exception_init
(
&
p_e
);
libvlc_exception_init
(
&
p_e
);
...
@@ -268,9 +268,9 @@ static void HandleMediaListItemDeleted( const libvlc_event_t * event, void * use
...
@@ -268,9 +268,9 @@ static void HandleMediaListItemDeleted( const libvlc_event_t * event, void * use
int
index
=
[[
args
objectForKey
:
@"index"
]
intValue
];
int
index
=
[[
args
objectForKey
:
@"index"
]
intValue
];
VLCMedia
*
media
=
[
args
objectForKey
:
@"media"
];
VLCMedia
*
media
=
[
args
objectForKey
:
@"media"
];
[
self
willChange
:
NSKeyValueChangeInsertion
valuesAtIndexes
:[
NSIndexSet
indexSetWithIndex
:
index
]
forKey
:
@"
M
edia"
];
[
self
willChange
:
NSKeyValueChangeInsertion
valuesAtIndexes
:[
NSIndexSet
indexSetWithIndex
:
index
]
forKey
:
@"
m
edia"
];
[
cachedMedia
insertObject
:
media
atIndex
:
index
];
[
cachedMedia
insertObject
:
media
atIndex
:
index
];
[
self
didChange
:
NSKeyValueChangeInsertion
valuesAtIndexes
:[
NSIndexSet
indexSetWithIndex
:
index
]
forKey
:
@"
M
edia"
];
[
self
didChange
:
NSKeyValueChangeInsertion
valuesAtIndexes
:[
NSIndexSet
indexSetWithIndex
:
index
]
forKey
:
@"
m
edia"
];
// Post the notification
// Post the notification
[[
NSNotificationCenter
defaultCenter
]
postNotificationName
:
VLCMediaListItemAdded
[[
NSNotificationCenter
defaultCenter
]
postNotificationName
:
VLCMediaListItemAdded
...
@@ -284,9 +284,9 @@ static void HandleMediaListItemDeleted( const libvlc_event_t * event, void * use
...
@@ -284,9 +284,9 @@ static void HandleMediaListItemDeleted( const libvlc_event_t * event, void * use
-
(
void
)
mediaListItemRemoved
:(
NSNumber
*
)
index
-
(
void
)
mediaListItemRemoved
:(
NSNumber
*
)
index
{
{
[
self
willChange
:
NSKeyValueChangeInsertion
valuesAtIndexes
:[
NSIndexSet
indexSetWithIndex
:[
index
intValue
]]
forKey
:
@"
M
edia"
];
[
self
willChange
:
NSKeyValueChangeInsertion
valuesAtIndexes
:[
NSIndexSet
indexSetWithIndex
:[
index
intValue
]]
forKey
:
@"
m
edia"
];
[
cachedMedia
removeObjectAtIndex
:[
index
intValue
]];
[
cachedMedia
removeObjectAtIndex
:[
index
intValue
]];
[
self
didChange
:
NSKeyValueChangeInsertion
valuesAtIndexes
:[
NSIndexSet
indexSetWithIndex
:[
index
intValue
]]
forKey
:
@"
M
edia"
];
[
self
didChange
:
NSKeyValueChangeInsertion
valuesAtIndexes
:[
NSIndexSet
indexSetWithIndex
:[
index
intValue
]]
forKey
:
@"
m
edia"
];
// Post the notification
// Post the notification
[[
NSNotificationCenter
defaultCenter
]
postNotificationName
:
VLCMediaListItemDeleted
[[
NSNotificationCenter
defaultCenter
]
postNotificationName
:
VLCMediaListItemDeleted
...
...
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