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
8dd2cd4f
Commit
8dd2cd4f
authored
Feb 27, 2014
by
David Fuhrmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: fix compilation on snow leopard by not using [] syntax for arrays
parent
919034b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
modules/gui/macosx/AddonManager.m
modules/gui/macosx/AddonManager.m
+7
-7
No files found.
modules/gui/macosx/AddonManager.m
View file @
8dd2cd4f
...
...
@@ -146,7 +146,7 @@ static VLCAddonManager *_o_sharedInstance = nil;
if
(
selectedRow
>
_displayedAddons
.
count
-
1
||
selectedRow
<
0
)
return
;
NSDictionary
*
currentItem
=
_displayedAddons
[
selectedRow
];
NSDictionary
*
currentItem
=
[
_displayedAddons
objectAtIndex
:
selectedRow
];
[
self
_installAddonWithID
:[[
currentItem
objectForKey
:
@"uuid"
]
pointerValue
]];
}
...
...
@@ -156,7 +156,7 @@ static VLCAddonManager *_o_sharedInstance = nil;
if
(
selectedRow
>
_displayedAddons
.
count
-
1
||
selectedRow
<
0
)
return
;
NSDictionary
*
currentItem
=
_displayedAddons
[
selectedRow
];
NSDictionary
*
currentItem
=
[
_displayedAddons
objectAtIndex
:
selectedRow
];
[
self
_removeAddonWithID
:[[
currentItem
objectForKey
:
@"uuid"
]
pointerValue
]];
}
...
...
@@ -181,7 +181,7 @@ static VLCAddonManager *_o_sharedInstance = nil;
return
;
}
NSDictionary
*
currentItem
=
_displayedAddons
[
selectedRow
];
NSDictionary
*
currentItem
=
[
_displayedAddons
objectAtIndex
:
selectedRow
];
[
_name
setStringValue
:[
currentItem
objectForKey
:
@"name"
]];
[
_author
setStringValue
:[
currentItem
objectForKey
:
@"author"
]];
[
_version
setStringValue
:[
currentItem
objectForKey
:
@"version"
]];
...
...
@@ -192,13 +192,13 @@ static VLCAddonManager *_o_sharedInstance = nil;
{
NSString
*
identifier
=
[
aTableColumn
identifier
];
if
([
identifier
isEqualToString
:
@"installed"
])
{
if
([[
_displayedAddons
[
rowIndex
]
objectForKey
:
@"state"
]
intValue
]
==
ADDON_INSTALLED
)
if
([[
[
_displayedAddons
objectAtIndex
:
rowIndex
]
objectForKey
:
@"state"
]
intValue
]
==
ADDON_INSTALLED
)
return
@"✔"
;
return
@"✘"
;
}
else
if
([
identifier
isEqualToString
:
@"type"
])
return
[
self
_getAddonType
:[[
_displayedAddons
[
rowIndex
]
objectForKey
:
@"type"
]
intValue
]];
return
[
self
_getAddonType
:[[
[
_displayedAddons
objectAtIndex
:
rowIndex
]
objectForKey
:
@"type"
]
intValue
]];
return
[
_displayedAddons
[
rowIndex
]
objectForKey
:
identifier
];
return
[
[
_displayedAddons
objectAtIndex
:
rowIndex
]
objectForKey
:
identifier
];
}
#pragma mark - data handling
...
...
@@ -250,7 +250,7 @@ static VLCAddonManager *_o_sharedInstance = nil;
NSMutableArray
*
filteredItems
=
[[
NSMutableArray
alloc
]
initWithCapacity
:
count
];
NSDictionary
*
currentItem
;
for
(
NSUInteger
x
=
0
;
x
<
count
;
x
++
)
{
currentItem
=
_addons
[
x
];
currentItem
=
[
_addons
objectAtIndex
:
x
];
if
(
type
!=
-
1
)
{
if
([[
currentItem
objectForKey
:
@"type"
]
intValue
]
==
type
)
{
if
(
installedOnly
)
{
...
...
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