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
0b9a75bc
Commit
0b9a75bc
authored
Feb 05, 2003
by
Derk-Jan Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* More support for handling URLs. Still need to create the scriptsuite.
parent
aa2280f6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
3 deletions
+34
-3
modules/gui/macosx/open.h
modules/gui/macosx/open.h
+4
-1
modules/gui/macosx/open.m
modules/gui/macosx/open.m
+30
-2
No files found.
modules/gui/macosx/open.h
View file @
0b9a75bc
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* open.h: MacOS X plugin for vlc
* open.h: MacOS X plugin for vlc
*****************************************************************************
*****************************************************************************
* Copyright (C) 2002 VideoLAN
* Copyright (C) 2002 VideoLAN
* $Id: open.h,v 1.
9 2003/01/26 14:53:08
hartman Exp $
* $Id: open.h,v 1.
10 2003/02/05 02:31:27
hartman Exp $
*
*
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
* Christophe Massiot <massiot@via.ecp.fr>
* Christophe Massiot <massiot@via.ecp.fr>
...
@@ -131,3 +131,6 @@ NSArray *GetEjectableMediaOfClass( const char *psz_class );
...
@@ -131,3 +131,6 @@ NSArray *GetEjectableMediaOfClass( const char *psz_class );
-
(
IBAction
)
openFile
:(
id
)
sender
;
-
(
IBAction
)
openFile
:(
id
)
sender
;
@end
@end
@interface
VLGetURLScriptCommand
:
NSScriptCommand
@end
modules/gui/macosx/open.m
View file @
0b9a75bc
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* open.m: MacOS X plugin for vlc
* open.m: MacOS X plugin for vlc
*****************************************************************************
*****************************************************************************
* Copyright (C) 2002 VideoLAN
* Copyright (C) 2002 VideoLAN
* $Id: open.m,v 1.1
8 2003/02/01 23:46:24 massiot
Exp $
* $Id: open.m,v 1.1
9 2003/02/05 02:31:27 hartman
Exp $
*
*
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
* Christophe Massiot <massiot@via.ecp.fr>
* Christophe Massiot <massiot@via.ecp.fr>
...
@@ -288,7 +288,7 @@ NSArray *GetEjectableMediaOfClass( const char *psz_class )
...
@@ -288,7 +288,7 @@ NSArray *GetEjectableMediaOfClass( const char *psz_class )
[
o_tabview
selectTabViewItemAtIndex
:
i_type
];
[
o_tabview
selectTabViewItemAtIndex
:
i_type
];
[
o_ckbox_enqueue
setState
:
NSOffState
];
[
o_ckbox_enqueue
setState
:
NSOffState
];
[
o_file_sub_path
setStringValue
:
@""
];
[
o_file_sub_path
setStringValue
:
@""
];
[
o_file_sub_ckbox
setState
:
NSO
ff
State
];
[
o_file_sub_ckbox
setState
:
NSO
n
State
];
[
o_file_sub_path
setEnabled
:
NO
];
[
o_file_sub_path
setEnabled
:
NO
];
[
o_file_sub_btn_browse
setEnabled
:
NO
];
[
o_file_sub_btn_browse
setEnabled
:
NO
];
...
@@ -872,3 +872,31 @@ NSArray *GetEjectableMediaOfClass( const char *psz_class )
...
@@ -872,3 +872,31 @@ NSArray *GetEjectableMediaOfClass( const char *psz_class )
}
}
@end
@end
@implementation
VLGetURLScriptCommand
-
(
id
)
performDefaultImplementation
{
NSString
*
command
=
[[
self
commandDescription
]
commandName
];
NSString
*
urlString
=
[
self
directParameter
];
if
(
[
command
isEqualToString
:
@"GetURL"
]
)
{
intf_thread_t
*
p_intf
=
[
NSApp
getIntf
];
playlist_t
*
p_playlist
=
vlc_object_find
(
p_intf
,
VLC_OBJECT_PLAYLIST
,
FIND_ANYWHERE
);
if
(
p_playlist
==
NULL
)
{
return
nil
;
}
[
p_playlist
appendArray
:
[
NSArray
arrayWithObject
:
urlString
]
atPos
:
-
1
enqueue
:
NO
];
vlc_object_release
(
p_playlist
);
}
return
nil
;
}
@end
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