• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSMovieView & movie controller separating :-0
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: NSMovieView & movie controller separating :-0
      • From: "Michael P. Rogers" <email@hidden>
References: 
 >Re: NSMovieView & movie controller separating :-0 (From: Andy Lee <email@hidden>)

  • Prev by Date: Re: NSMovieView & movie controller separating :-0
  • Next by Date: Re: re Hiding controls and another question
  • Previous by thread: Re: NSMovieView & movie controller separating :-0
  • Next by thread: Re: NSMovieView & movie controller separating :-0
  • Index(es):
    • Date
    • Thread