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
4793c51a
Commit
4793c51a
authored
Sep 30, 2008
by
Derk-Jan Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: finish backport of [
6342bd65
]
parent
3cba2efa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
modules/gui/macosx/update.m
modules/gui/macosx/update.m
+6
-6
No files found.
modules/gui/macosx/update.m
View file @
4793c51a
...
...
@@ -129,16 +129,16 @@ static VLCUpdate *_o_sharedInstance = nil;
{
/* provide a save dialogue */
SEL
sel
=
@selector
(
getLocationForSaving
:
returnCode
:
contextInfo
:
);
NS
SavePanel
*
saveFilePanel
=
[[
NSSave
Panel
alloc
]
init
];
NS
OpenPanel
*
saveFilePanel
=
[[
NSOpen
Panel
alloc
]
init
];
[
saveFilePanel
set
RequiredFileType
:
@"dmg"
];
[
saveFilePanel
setCan
SelectHiddenExtension
:
YES
];
[
saveFilePanel
set
CanChooseFiles
:
NO
];
[
saveFilePanel
setCan
ChooseDirectories
:
YES
];
[
saveFilePanel
setCanCreateDirectories
:
YES
];
[
saveFilePanel
setPrompt
:
_NS
(
"Save"
)];
[
saveFilePanel
setNameFieldLabel
:
_NS
(
"Save As:"
)];
update_release_t
*
p_release
=
update_GetRelease
(
p_u
);
assert
(
p_release
);
[
saveFilePanel
beginSheetForDirectory
:
nil
file
:
[
saveFilePanel
beginSheetForDirectory
:
@"~/Downloads"
file
:
[[[
NSString
stringWithUTF8String
:
p_release
->
psz_url
]
componentsSeparatedByString
:
@"/"
]
lastObject
]
modalForWindow:
o_update_window
modalDelegate:
self
...
...
@@ -146,14 +146,14 @@ static VLCUpdate *_o_sharedInstance = nil;
contextInfo:
nil
];
}
-
(
void
)
getLocationForSaving
:
(
NS
SavePanel
*
)
sheet
-
(
void
)
getLocationForSaving
:
(
NS
OpenPanel
*
)
sheet
returnCode
:
(
int
)
returnCode
contextInfo
:
(
void
*
)
contextInfo
{
if
(
returnCode
==
NSOKButton
)
{
/* perform download and pass the selected path */
[
NSThread
detachNewThreadSelector
:
@selector
(
performDownload
:)
toTarget
:
self
withObject
:
[
sheet
filename
]];
[
NSThread
detachNewThreadSelector
:
@selector
(
performDownload
:)
toTarget
:
self
withObject
:
[
sheet
directory
]];
}
[
sheet
release
];
}
...
...
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