File tree Expand file tree Collapse file tree 3 files changed +15
-23
lines changed Expand file tree Collapse file tree 3 files changed +15
-23
lines changed Original file line number Diff line number Diff line change @@ -247,10 +247,13 @@ APPKIT_EXPORT_CLASS
247
247
/* *
248
248
* GNUstep extension, this allows the user to set a
249
249
* text field to monitor the status of the movie view.
250
- *
250
+ */
251
251
- (void ) setStatusField : (id )field ;
252
+
253
+ /* *
254
+ * GNUstep extension, get the status field.
255
+ */
252
256
- (id ) statusField ;
253
- */
254
257
255
258
@end
256
259
Original file line number Diff line number Diff line change @@ -145,13 +145,6 @@ - (instancetype) initWithFrame: (NSRect)frame
145
145
// Flags...
146
146
_running = NO ;
147
147
_started = NO ;
148
-
149
- /*
150
- [nc addObserver: self
151
- selector: @selector(handleNotification:)
152
- name: NSApplicationWillTerminateNotification
153
- object: nil];
154
- */
155
148
}
156
149
return self;
157
150
}
@@ -188,23 +181,9 @@ - (void)dealloc
188
181
DESTROY (_audioPlayer);
189
182
DESTROY (_currentFrame);
190
183
191
- // Unsubscribe to NSNotification
192
- [nc removeObserver: self ];
193
-
194
184
[super dealloc ];
195
185
}
196
186
197
- // Notification responses...
198
- - (void ) handleNotification : (NSNotification *)notification
199
- {
200
- NSLog (@" [GSMovieView] Shutting down, final pts %ld " , _lastPts);
201
-
202
- [_feedThread cancel ];
203
- [_videoThread cancel ];
204
- [_audioPlayer stopAudio ];
205
- [self stopVideo ];
206
- }
207
-
208
187
// Private methods...
209
188
- (void ) _startFeed
210
189
{
Original file line number Diff line number Diff line change @@ -254,4 +254,14 @@ - (IBAction) selectAll: (id)sender
254
254
{
255
255
}
256
256
257
+ - (void ) setStatusField : (id )field
258
+ {
259
+ ASSIGN (_statusField, field);
260
+ }
261
+
262
+ - (id ) statusField
263
+ {
264
+ return _statusField;
265
+ }
266
+
257
267
@end
You can’t perform that action at this time.
0 commit comments