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
dd9ef423
Commit
dd9ef423
authored
Aug 23, 2012
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx/simpleprefs: replaced deprecated API call with modern counterpart using ObjC 2.0 blocks
parent
3c4998f6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
27 deletions
+17
-27
modules/gui/macosx/simple_prefs.m
modules/gui/macosx/simple_prefs.m
+17
-27
No files found.
modules/gui/macosx/simple_prefs.m
View file @
dd9ef423
...
@@ -1145,32 +1145,17 @@ static inline void save_module_list( intf_thread_t * p_intf, id object, const ch
...
@@ -1145,32 +1145,17 @@ static inline void save_module_list( intf_thread_t * p_intf, id object, const ch
[
o_selectFolderPanel
setMessage
:
_NS
(
"Choose the folder to save your video snapshots to."
)];
[
o_selectFolderPanel
setMessage
:
_NS
(
"Choose the folder to save your video snapshots to."
)];
[
o_selectFolderPanel
setCanCreateDirectories
:
YES
];
[
o_selectFolderPanel
setCanCreateDirectories
:
YES
];
[
o_selectFolderPanel
setPrompt
:
_NS
(
"Choose"
)];
[
o_selectFolderPanel
setPrompt
:
_NS
(
"Choose"
)];
[
o_selectFolderPanel
beginSheetForDirectory
:
nil
file
:
nil
modalForWindow
:
o_sprefs_win
[
o_selectFolderPanel
beginSheetModalForWindow
:
o_sprefs_win
completionHandler
:
^
(
NSInteger
returnCode
)
{
modalDelegate:
self
didEndSelector:
@selector
(
savePanelDidEnd
:
returnCode
:
contextInfo
:
)
contextInfo:
o_video_snap_folder_btn
];
}
else
b_videoSettingChanged
=
YES
;
}
-
(
void
)
savePanelDidEnd
:(
NSOpenPanel
*
)
panel
returnCode
:
(
int
)
returnCode
contextInfo
:
(
void
*
)
contextInfo
{
if
(
returnCode
==
NSOKButton
)
if
(
returnCode
==
NSOKButton
)
{
if
(
contextInfo
==
o_video_snap_folder_btn
)
{
{
[
o_video_snap_folder_fld
setStringValue
:
[[
o_selectFolderPanel
URL
]
path
]];
[
o_video_snap_folder_fld
setStringValue
:
[[
o_selectFolderPanel
URL
]
path
]];
b_videoSettingChanged
=
YES
;
b_videoSettingChanged
=
YES
;
}
}
else
if
(
contextInfo
==
o_input_record_btn
)
}];
{
[
o_input_record_fld
setStringValue
:
[[
o_selectFolderPanel
URL
]
path
]];
b_inputSettingChanged
=
YES
;
}
}
[
o_selectFolderPanel
release
];
[
o_selectFolderPanel
release
];
}
else
b_videoSettingChanged
=
YES
;
}
}
-
(
void
)
showVideoSettings
-
(
void
)
showVideoSettings
...
@@ -1256,10 +1241,15 @@ static inline void save_module_list( intf_thread_t * p_intf, id object, const ch
...
@@ -1256,10 +1241,15 @@ static inline void save_module_list( intf_thread_t * p_intf, id object, const ch
[
o_selectFolderPanel
setMessage
:
_NS
(
"Choose the directory or filename where the records will be stored."
)];
[
o_selectFolderPanel
setMessage
:
_NS
(
"Choose the directory or filename where the records will be stored."
)];
[
o_selectFolderPanel
setCanCreateDirectories
:
YES
];
[
o_selectFolderPanel
setCanCreateDirectories
:
YES
];
[
o_selectFolderPanel
setPrompt
:
_NS
(
"Choose"
)];
[
o_selectFolderPanel
setPrompt
:
_NS
(
"Choose"
)];
[
o_selectFolderPanel
beginSheetForDirectory
:
nil
file
:
nil
modalForWindow
:
o_sprefs_win
[
o_selectFolderPanel
beginSheetModalForWindow
:
o_sprefs_win
completionHandler
:
^
(
NSInteger
returnCode
)
{
modalDelegate:
self
if
(
returnCode
==
NSOKButton
)
didEndSelector:
@selector
(
savePanelDidEnd
:
returnCode
:
contextInfo
:
)
{
contextInfo:
o_input_record_btn
];
[
o_input_record_fld
setStringValue
:
[[
o_selectFolderPanel
URL
]
path
]];
b_inputSettingChanged
=
YES
;
}
}];
[
o_selectFolderPanel
release
];
return
;
return
;
}
}
...
...
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