Re: NSMovieView & movie controller separating :-0
Re: NSMovieView & movie controller separating :-0
- Subject: Re: NSMovieView & movie controller separating :-0
- From: Andy Lee <email@hidden>
- Date: Fri, 1 Mar 2002 01:41:42 -0500
At 1:18 AM -0500 3/1/02, Andy Lee wrote:
Finally, after a few more random guesses, I tried removing and
re-adding the NSMovieView to its superview. My actual code looks
like this:
- (void)testAction:(id)sender
{
NSMovieView *mv = (NSMovieView *)thing;
NSView *superView = [mv superview];
NSRect newFrame = NSOffsetRect([mv frame], 10, 10);
[mv removeFromSuperview];
[superView setNeedsDisplayInRect:[mv frame]];
[superView addSubview:mv];
[superView display];
}
Oops, I left out a line:
- (void)testAction:(id)sender
{
NSMovieView *mv = (NSMovieView *)thing;
NSView *superView = [mv superview]; NSRect newFrame =
NSOffsetRect([mv frame], 10, 10);
[superView setNeedsDisplayInRect:[mv frame]];
[mv removeFromSuperview]; [mv setFrame:newFrame]; // <-- the
line I left out [superView addSubview:mv];
[superView display];
}
I could have sworn the code I sent before was what was working.
--Andy
_______________________________________________
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.