• R/O
  • SSH
  • HTTPS

xspfqt: Commit


Commit MetaInfo

Révision382 (tree)
l'heure2013-06-19 22:31:03
Auteurmasakih

Message de Log

[Refactoring] 名称変更 qtView -> movieViewPlaceholder

Change Summary

Modification

--- branches/divideMovieViewController/XspfQTMovieWindowController.h (revision 381)
+++ branches/divideMovieViewController/XspfQTMovieWindowController.h (revision 382)
@@ -67,7 +67,7 @@
6767
6868 @interface XspfQTMovieWindowController : NSWindowController <NSWindowDelegate>
6969 {
70- IBOutlet NSView *qtView;
70+ IBOutlet NSView *movieViewPlaceholder;
7171
7272 XspfQTMovieViewController *_movieViewController;
7373 IBOutlet NSButton *playButton;
--- branches/divideMovieViewController/XspfQTMovieWindowController.m (revision 381)
+++ branches/divideMovieViewController/XspfQTMovieWindowController.m (revision 382)
@@ -156,12 +156,12 @@
156156 - (void)awakeFromNib
157157 {
158158 _movieViewController = [[XspfQTMovieViewController alloc] init];
159- NSView *contentView = [qtView superview];
159+ NSView *contentView = [movieViewPlaceholder superview];
160160 NSView *movieView = [self.movieViewController view];
161- [movieView setFrame:[qtView frame]];
162- [contentView replaceSubview:qtView with:movieView];
163- qtView = movieView;
164- [qtView bind:@"movie"
161+ [movieView setFrame:[movieViewPlaceholder frame]];
162+ [contentView replaceSubview:movieViewPlaceholder with:movieView];
163+ movieViewPlaceholder = movieView;
164+ [movieViewPlaceholder bind:@"movie"
165165 toObject:self
166166 withKeyPath:@"qtMovie"
167167 options:nil];
@@ -368,15 +368,15 @@
368368 }
369369 - (void)play
370370 {
371- [qtView performSelectorOnMainThread:@selector(play:) withObject:self waitUntilDone:NO];
371+ [self.movieViewController performSelectorOnMainThread:@selector(play:) withObject:self waitUntilDone:NO];
372372 }
373373 - (void)pause
374374 {
375- [qtView performSelectorOnMainThread:@selector(pause:) withObject:self waitUntilDone:NO];
375+ [self.movieViewController performSelectorOnMainThread:@selector(pause:) withObject:self waitUntilDone:NO];
376376 }
377377 - (void)stop
378378 {
379- [qtView performSelectorOnMainThread:@selector(pause:) withObject:self waitUntilDone:YES];
379+ [self.movieViewController performSelectorOnMainThread:@selector(pause:) withObject:self waitUntilDone:YES];
380380 }
381381 - (void)enterFullScreen
382382 {
Afficher sur ancien navigateur de dépôt.