API
0.9.6
Main Page
Related Pages
Modules
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Macros
Groups
Pages
CPFlashMovie.j
Go to the documentation of this file.
1
/*
2
* CPFlashMovie.j
3
* AppKit
4
*
5
* Created by Francisco Tolmasky.
6
* Copyright 2008, 280 North, Inc.
7
*
8
* This library is free software; you can redistribute it and/or
9
* modify it under the terms of the GNU Lesser General Public
10
* License as published by the Free Software Foundation; either
11
* version 2.1 of the License, or (at your option) any later version.
12
*
13
* This library is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16
* Lesser General Public License for more details.
17
*
18
* You should have received a copy of the GNU Lesser General Public
19
* License along with this library; if not, write to the Free Software
20
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21
*/
22
23
24
31
@implementation
CPFlashMovie
:
CPObject
32
{
33
CPString
_filename;
34
}
35
41
+ (id)flashMovieWithFile:(
CPString
)aFilename
42
{
43
return
[[
self
alloc
]
initWithFile
:aFilename];
44
}
45
51
- (id)initWithFile:(
CPString
)aFilename
52
{
53
self
= [
super
init
];
54
55
if
(
self
)
56
_filename = aFilename;
57
58
return
self
;
59
}
60
61
- (
CPString
)filename
62
{
63
return
_filename;
64
}
65
66
@end
67
68
var
CPFlashMovieFilenameKey
=
"CPFlashMovieFilenameKey"
;
69
70
@implementation
CPFlashMovie (CPCoding)
71
72
- (id)initWithCoder:(
CPCoder
)aCoder
73
{
74
_filename = [aCoder decodeObjectForKey:CPFlashMovieFilenameKey];
75
76
return
self
;
77
}
78
79
- (void)encodeWithCoder:(
CPCoder
)aCoder
80
{
81
[aCoder encodeObject:_filename forKey:CPFlashMovieFilenameKey];
82
}
83
84
@end
AppKit
CPFlashMovie.j
Generated on Tue Jan 29 2013 20:13:02 for API by
1.8.3