1
- /* * <title>NSMovie</title>
1
+ /* <title>NSMovie</title>
2
2
3
3
<abstract>Encapsulate a Quicktime movie</abstract>
4
4
5
5
Copyright <copy>(C) 2003 Free Software Foundation, Inc.</copy>
6
6
7
+ Author: Gregory John Casamento <greg.casamento@gmail.com>
8
+ Date: May 2025
7
9
Author: Fred Kiefer <FredKiefer@gmx.de>
8
10
Date: March 2003
9
11
28
30
29
31
#ifndef _GNUstep_H_NSMovie
30
32
#define _GNUstep_H_NSMovie
31
- #import < AppKit/AppKitDefines.h>
32
-
33
33
#import < Foundation/NSObject.h>
34
+ #import " AppKit/AppKitDefines.h"
35
+
36
+ /* *
37
+ * NSMovie
38
+ *
39
+ * Encapsulates a QuickTime movie object, providing methods to initialize and
40
+ * retrieve movie data from various sources, such as NSData, NSURL, or NSPasteboard.
41
+ *
42
+ * Instance Variables:
43
+ * _movie:
44
+ * The raw NSData representing the contents of the QuickTime movie.
45
+ *
46
+ * _url:
47
+ * The URL from which the movie was loaded. May be nil if not URL-based.
48
+ *
49
+ * _tmp:
50
+ * A boolean indicating whether the movie data is temporary (not persisted).
51
+ */
34
52
35
53
@class NSArray ;
36
54
@class NSData ;
@@ -41,19 +59,49 @@ APPKIT_EXPORT_CLASS
41
59
@interface NSMovie : NSObject <NSCopying , NSCoding >
42
60
{
43
61
@private
44
- NSData * _movie;
45
- NSURL * _url;
62
+ NSData * _movie;
63
+ NSURL * _url;
64
+ BOOL _tmp;
46
65
}
47
66
67
+ /* *
68
+ * An array of all of the types NSMovie can support.
69
+ */
48
70
+ (NSArray *) movieUnfilteredFileTypes ;
71
+
72
+ /* *
73
+ * An array of all of the pasteboard types NSMovie can support.
74
+ */
49
75
+ (NSArray *) movieUnfilteredPasteboardTypes ;
76
+
77
+ /* *
78
+ * Returns YES, if the object can be initialized with the given pasteboard.
79
+ */
50
80
+ (BOOL ) canInitWithPasteboard : (NSPasteboard *)pasteboard ;
51
81
52
- - (id ) initWithMovie : (void *)movie ;
53
- - (id ) initWithURL : (NSURL *)url byReference : (BOOL )byRef ;
54
- - (id ) initWithPasteboard : (NSPasteboard *)pasteboard ;
82
+ /* *
83
+ * Returns an NSMovie with the raw data pointed to by movie.
84
+ */
85
+ - (instancetype ) initWithMovie : (void *)movie ;
55
86
87
+ /* *
88
+ * Returns an NSMovie with the given URL. byRef should be YES if it is by reference.
89
+ */
90
+ - (instancetype ) initWithURL : (NSURL *)url byReference : (BOOL )byRef ;
91
+
92
+ /* *
93
+ * Returns an NSMovie initialized with the pasteboard passed in.
94
+ */
95
+ - (instancetype ) initWithPasteboard : (NSPasteboard *)pasteboard ;
96
+
97
+ /* *
98
+ * Returns the raw data for the movie.
99
+ */
56
100
- (void *) QTMovie ;
101
+
102
+ /* *
103
+ * Returns the URL of the movie to be played.
104
+ */
57
105
- (NSURL *) URL ;
58
106
59
107
@end
0 commit comments