Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
462d6d04
Commit
462d6d04
authored
Oct 02, 2008
by
Derk-Jan Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: allow to specify where you want the download to be save and how it should be called.
parent
97f83156
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
modules/gui/macosx/update.m
modules/gui/macosx/update.m
+5
-7
No files found.
modules/gui/macosx/update.m
View file @
462d6d04
...
...
@@ -137,13 +137,11 @@ static VLCUpdate *_o_sharedInstance = nil;
{
/* provide a save dialogue */
SEL
sel
=
@selector
(
getLocationForSaving
:
returnCode
:
contextInfo
:
);
NS
OpenPanel
*
saveFilePanel
=
[[
NSOpen
Panel
alloc
]
init
];
NS
SavePanel
*
saveFilePanel
=
[[
NSSave
Panel
alloc
]
init
];
[
saveFilePanel
set
CanChooseFiles
:
NO
];
[
saveFilePanel
setCan
ChooseDirectories
:
YES
];
[
saveFilePanel
set
RequiredFileType
:
@"dmg"
];
[
saveFilePanel
setCan
SelectHiddenExtension
:
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
:
@"~/Downloads"
file
:
...
...
@@ -154,14 +152,14 @@ static VLCUpdate *_o_sharedInstance = nil;
contextInfo:
nil
];
}
-
(
void
)
getLocationForSaving
:
(
NS
OpenPanel
*
)
sheet
-
(
void
)
getLocationForSaving
:
(
NS
SavePanel
*
)
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
directory
]];
[
NSThread
detachNewThreadSelector
:
@selector
(
performDownload
:)
toTarget
:
self
withObject
:
[
sheet
filename
]];
}
[
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