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
41041ace
Commit
41041ace
authored
Aug 23, 2012
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx/CAS: replace deprecated API calls with modern blocks-based counterparts
parent
b03db9b5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
27 deletions
+21
-27
modules/gui/macosx/ConvertAndSave.m
modules/gui/macosx/ConvertAndSave.m
+21
-27
No files found.
modules/gui/macosx/ConvertAndSave.m
View file @
41041ace
...
@@ -298,17 +298,14 @@ static VLCConvertAndSave *_o_sharedInstance = nil;
...
@@ -298,17 +298,14 @@ static VLCConvertAndSave *_o_sharedInstance = nil;
[
openPanel
setCanChooseDirectories
:
NO
];
[
openPanel
setCanChooseDirectories
:
NO
];
[
openPanel
setResolvesAliases
:
YES
];
[
openPanel
setResolvesAliases
:
YES
];
[
openPanel
setAllowsMultipleSelection
:
NO
];
[
openPanel
setAllowsMultipleSelection
:
NO
];
[
openPanel
beginSheetForDirectory
:
nil
file
:
nil
types
:
nil
modalForWindow
:
_window
modalDelegate
:
self
didEndSelector
:
@selector
(
openPanelDidEnd
:
returnCode
:
contextInfo
:
)
contextInfo
:
nil
];
[
openPanel
beginSheetModalForWindow
:
_window
completionHandler
:
^
(
NSInteger
returnCode
)
{
}
if
(
returnCode
==
NSOKButton
)
{
-
(
void
)
openPanelDidEnd
:(
NSOpenPanel
*
)
panel
returnCode
:(
int
)
returnCode
contextInfo
:(
void
*
)
contextInfo
[
self
setMRL
:
[
NSString
stringWithUTF8String
:
vlc_path2uri
([[[
openPanel
URL
]
path
]
UTF8String
],
NULL
)]];
{
[
self
updateOKButton
];
if
(
returnCode
==
NSOKButton
)
[
self
updateDropView
];
{
}
[
self
setMRL
:
[
NSString
stringWithUTF8String
:
vlc_path2uri
([[[
panel
URL
]
path
]
UTF8String
],
NULL
)]];
}];
[
self
updateOKButton
];
[
self
updateDropView
];
}
}
}
-
(
IBAction
)
switchProfile
:(
id
)
sender
-
(
IBAction
)
switchProfile
:(
id
)
sender
...
@@ -418,22 +415,19 @@ static VLCConvertAndSave *_o_sharedInstance = nil;
...
@@ -418,22 +415,19 @@ static VLCConvertAndSave *_o_sharedInstance = nil;
[
saveFilePanel
setCanCreateDirectories
:
YES
];
[
saveFilePanel
setCanCreateDirectories
:
YES
];
if
([[
_customize_encap_matrix
selectedCell
]
tag
]
!=
RAW
)
// there is no clever guess for this
if
([[
_customize_encap_matrix
selectedCell
]
tag
]
!=
RAW
)
// there is no clever guess for this
[
saveFilePanel
setAllowedFileTypes
:[
NSArray
arrayWithObject
:[
self
currentEncapsulationFormatAsFileExtension
:
YES
]]];
[
saveFilePanel
setAllowedFileTypes
:[
NSArray
arrayWithObject
:[
self
currentEncapsulationFormatAsFileExtension
:
YES
]]];
[
saveFilePanel
beginSheetForDirectory
:
nil
file
:
nil
modalForWindow
:
_window
modalDelegate
:
self
didEndSelector
:
@selector
(
savePanelDidEnd
:
returnCode
:
contextInfo
:
)
contextInfo
:
nil
];
[
saveFilePanel
beginSheetModalForWindow
:
_window
completionHandler
:
^
(
NSInteger
returnCode
)
{
}
if
(
returnCode
==
NSOKButton
)
{
[
self
setOutputDestination
:[[
saveFilePanel
URL
]
path
]];
-
(
void
)
savePanelDidEnd
:(
NSSavePanel
*
)
sheet
returnCode
:(
int
)
returnCode
contextInfo
:(
void
*
)
contextInfo
[
_destination_filename_lbl
setStringValue
:
[[
NSFileManager
defaultManager
]
displayNameAtPath
:
_outputDestination
]];
{
[[
_destination_filename_stub_lbl
animator
]
setHidden
:
YES
];
if
(
returnCode
==
NSOKButton
)
{
[[
_destination_filename_lbl
animator
]
setHidden
:
NO
];
[
self
setOutputDestination
:[[
sheet
URL
]
path
]];
}
else
{
[
_destination_filename_lbl
setStringValue
:
[[
NSFileManager
defaultManager
]
displayNameAtPath
:
_outputDestination
]];
[
self
setOutputDestination
:
@""
];
[[
_destination_filename_stub_lbl
animator
]
setHidden
:
YES
];
[[
_destination_filename_lbl
animator
]
setHidden
:
YES
];
[[
_destination_filename_lbl
animator
]
setHidden
:
NO
];
[[
_destination_filename_stub_lbl
animator
]
setHidden
:
NO
];
}
else
{
}
[
self
setOutputDestination
:
@""
];
[
self
updateOKButton
];
[[
_destination_filename_lbl
animator
]
setHidden
:
YES
];
}];
[[
_destination_filename_stub_lbl
animator
]
setHidden
:
NO
];
}
[
self
updateOKButton
];
}
}
-
(
IBAction
)
showStreamPanel
:(
id
)
sender
-
(
IBAction
)
showStreamPanel
:(
id
)
sender
...
...
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