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
e2fd56a1
Commit
e2fd56a1
authored
Apr 03, 2009
by
Derk-Jan Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: remove NSValue around VLCAutogeneratedMenu
parent
8bfec18d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
modules/gui/macosx/controls.m
modules/gui/macosx/controls.m
+5
-5
No files found.
modules/gui/macosx/controls.m
View file @
e2fd56a1
...
...
@@ -710,13 +710,13 @@
case
VLC_VAR_VOID
:
o_data
=
[[
VLCAutoGeneratedMenuContent
alloc
]
initWithVariableName
:
psz_variable
ofObject
:
p_object
andValue:
val
ofType
:
i_type
];
[
o_mi
setRepresentedObject
:
[
NSValue
valueWithPointer
:[
o_data
autorelease
]
]];
[
o_mi
setRepresentedObject
:
[
o_data
autorelease
]];
break
;
case
VLC_VAR_BOOL
:
o_data
=
[[
VLCAutoGeneratedMenuContent
alloc
]
initWithVariableName
:
psz_variable
ofObject
:
p_object
andValue:
val
ofType
:
i_type
];
[
o_mi
setRepresentedObject
:
[
NSValue
valueWithPointer
:[
o_data
autorelease
]
]];
[
o_mi
setRepresentedObject
:
[
o_data
autorelease
]];
if
(
!
(
i_type
&
VLC_VAR_ISCOMMAND
)
)
[
o_mi
setState
:
val
.
b_bool
?
TRUE
:
FALSE
];
break
;
...
...
@@ -821,7 +821,7 @@
o_lmi
=
[
o_menu
addItemWithTitle
:
o_title
action
:
pf_callback
keyEquivalent
:
@""
];
o_data
=
[[
VLCAutoGeneratedMenuContent
alloc
]
initWithVariableName
:
strdup
(
psz_variable
)
ofObject
:
p_object
andValue:
another_val
ofType
:
i_type
];
[
o_lmi
setRepresentedObject
:
[
NSValue
valueWithPointer
:[
o_data
autorelease
]
]];
[
o_lmi
setRepresentedObject
:
[
o_data
autorelease
]];
[
o_lmi
setTarget
:
self
];
if
(
!
strcmp
(
val
.
psz_string
,
val_list
.
p_list
->
p_values
[
i
].
psz_string
)
&&
!
(
i_type
&
VLC_VAR_ISCOMMAND
)
)
...
...
@@ -839,7 +839,7 @@
o_lmi
=
[
o_menu
addItemWithTitle
:
o_title
action
:
pf_callback
keyEquivalent
:
@""
];
o_data
=
[[
VLCAutoGeneratedMenuContent
alloc
]
initWithVariableName
:
strdup
(
psz_variable
)
ofObject
:
p_object
andValue:
val_list
.
p_list
->
p_values
[
i
]
ofType
:
i_type
];
[
o_lmi
setRepresentedObject
:
[
NSValue
valueWithPointer
:[
o_data
autorelease
]
]];
[
o_lmi
setRepresentedObject
:
[
o_data
autorelease
]];
[
o_lmi
setTarget
:
self
];
if
(
val_list
.
p_list
->
p_values
[
i
].
i_int
==
val
.
i_int
&&
!
(
i_type
&
VLC_VAR_ISCOMMAND
)
)
...
...
@@ -867,7 +867,7 @@
-
(
IBAction
)
toggleVar
:(
id
)
sender
{
NSMenuItem
*
o_mi
=
(
NSMenuItem
*
)
sender
;
VLCAutoGeneratedMenuContent
*
o_data
=
[
[
o_mi
representedObject
]
pointerValue
];
VLCAutoGeneratedMenuContent
*
o_data
=
[
o_mi
representedObject
];
[
NSThread
detachNewThreadSelector
:
@selector
(
toggleVarThread
:)
toTarget:
self
withObject
:
o_data
];
...
...
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