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
c4969929
Commit
c4969929
authored
Mar 24, 2003
by
Derk-Jan Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* more interface support for directories.
parent
3f822b5c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
6 deletions
+15
-6
extras/MacOSX/vlc.pbproj/project.pbxproj
extras/MacOSX/vlc.pbproj/project.pbxproj
+3
-3
modules/gui/macosx/open.m
modules/gui/macosx/open.m
+12
-3
No files found.
extras/MacOSX/vlc.pbproj/project.pbxproj
View file @
c4969929
...
...
@@ -125,12 +125,12 @@
<string>Viewer</string>
</dict>
<dict>
<key>CFBundleTypeMIMETypes</key>
<key>CFBundleTypeName</key>
<string>Folder</string>
<key>CFBundleTypeOSTypes</key>
<array>
<string>fold</string>
</array>
<key>CFBundleTypeName</key>
<string>Folder</string>
<key>CFBundleTypeRole</key>
<string>Viewer</string>
</dict>
...
...
modules/gui/macosx/open.m
View file @
c4969929
...
...
@@ -2,7 +2,7 @@
* open.m: MacOS X plugin for vlc
*****************************************************************************
* Copyright (C) 2002-2003 VideoLAN
* $Id: open.m,v 1.2
4 2003/03/06 11:43:07
hartman Exp $
* $Id: open.m,v 1.2
5 2003/03/24 15:20:26
hartman Exp $
*
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
* Christophe Massiot <massiot@via.ecp.fr>
...
...
@@ -348,11 +348,18 @@ NSArray *GetEjectableMediaOfClass( const char *psz_class )
NSString
*
o_filename
=
[
o_file_path
stringValue
];
NSString
*
o_ext
=
[
o_filename
pathExtension
];
vlc_bool_t
b_stream
=
[
o_file_stream
state
];
BOOL
b_dir
=
NO
;
[[
NSFileManager
defaultManager
]
fileExistsAtPath
:
o_filename
isDirectory
:
&
b_dir
];
if
([
o_ext
isEqualToString
:
@"bin"
]
||
if
(
b_dir
)
{
o_mrl_string
=
[
NSString
stringWithFormat
:
@"dir:%@"
,
o_filename
];
}
else
if
(
[
o_ext
isEqualToString
:
@"bin"
]
||
[
o_ext
isEqualToString
:
@"cue"
]
||
[
o_ext
isEqualToString
:
@"vob"
]
||
[
o_ext
isEqualToString
:
@"iso"
])
[
o_ext
isEqualToString
:
@"iso"
]
)
{
o_mrl_string
=
o_filename
;
}
...
...
@@ -370,6 +377,7 @@ NSArray *GetEjectableMediaOfClass( const char *psz_class )
NSOpenPanel
*
o_open_panel
=
[
NSOpenPanel
openPanel
];
[
o_open_panel
setAllowsMultipleSelection
:
NO
];
[
o_open_panel
setCanChooseDirectories
:
YES
];
[
o_open_panel
setTitle
:
_NS
(
"Open File"
)];
[
o_open_panel
setPrompt
:
_NS
(
"Open"
)];
...
...
@@ -797,6 +805,7 @@ NSArray *GetEjectableMediaOfClass( const char *psz_class )
NSOpenPanel
*
o_open_panel
=
[
NSOpenPanel
openPanel
];
[
o_open_panel
setAllowsMultipleSelection
:
YES
];
[
o_open_panel
setCanChooseDirectories
:
YES
];
[
o_open_panel
setTitle
:
_NS
(
"Open File"
)];
[
o_open_panel
setPrompt
:
_NS
(
"Open"
)];
...
...
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