• 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
Quicktime+GWorld+NSQuickDrawView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Quicktime+GWorld+NSQuickDrawView


  • Subject: Quicktime+GWorld+NSQuickDrawView
  • From: Scott Andrew <email@hidden>
  • Date: Thu, 12 Jun 2003 09:44:36 -0700

I don't know if this is the right list to ask this.. I am newbie
jumping right into a tough one.

I am working on my compositing issue and i have it working but I am
concerned about being a system hog and calling paint too many times. I
load my movie assign it an offscreen GWORLD to paint into my
NSQuickDrawView using CopyBits. After i load i then decide to embed a
text view into my NSQuickDrawView. I tell quicktime not use the overlay
and then i spawn a new thread whose job is really simple. It has a few
lines of code.

- (void)playMovie:(id)anObject
{
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];

while(!IsMovieDone(movie))
{
if (isPlaying)
{
MoviesTask(movie,0);

[self setNeedsDisplay:YES];
}
}
[pool release];
}

I am conerned that this is too tight. That i really need to double
check if the frame image has really changed.. I get the effect that
want i can composite an NSTextItem ontop and paint on top of it and all
is compositing nicely. But typing text is slow because of the constant
updates. This was quick and dirty code to try. I know it's not the
best..

Scott Andrew
_______________________________________________
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.

  • Prev by Date: Re: [OT] Mouse buttons (was Re: troubling article)
  • Next by Date: Re: Shouldn't there be a cocoa-talk mailing list?
  • Previous by thread: Re: WWDC tools wishlist (Bring back EOF!)
  • Next by thread: unexpected crash in _addDragTypesTo method
  • Index(es):
    • Date
    • Thread