Swapping NSMovieViews
Swapping NSMovieViews
- Subject: Swapping NSMovieViews
- From: "Douglas A. Welton" <email@hidden>
- Date: Tue, 22 Jul 2003 10:46:28 -0400
Yo All,
My application has two NSMovieView objects: Current_Movie and
Fullscreen_Movie.
Current_Movie normally points to a 642 by 361 view on my main window and
Fullscreen_Movie always points to a 1024 X 768 view on a borderless window
that is not visible until the user request full screen playback.
The full screen functionality is being added and all the current methods
that manipulate movie playback reference Current_Movie. My strategy for
addressing this is to reassign the Current_Movie pointer when the user
request Full screen mode.
So, I execute the following code segment when the user request full screen
mode:
Saved_Current_Movie = [Current_Movie retain];
Current_Movie = [Fullscreen_Movie_View retain];
This works fine, I get playback in my full screen window. However... when I
stop Full screen playback and try to restore the NSMovieView pointers to the
way things were, I (sometimes... and that9s the tricky part) am unable to
reset each view to it's normal state.
When I stop the movie playback, I execute the following code segment:
[Current_Movie release];
Current_Movie = Saved_Current_Movie;
Has anyone done anything like this before? Can you give me a pointer as to
whether or not I am heading in the right direction?
Any help will be greatly appreciated.
later,
douglas
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.