Re: Converting From Simple to Doc Based App - Problems with Menus

2008-04-30 Thread Peter Zegelin
OK - thanks - that makes sense. Bummer - I had it all set up nicely:-) regards, Peter On 01/05/2008, at 3:48 PM, Graham Cox wrote: Change the targets for the menu items to be first responder instead of the views themselves. The views will still get the actions when they are made first resp

Re: beginSheetModalForWindow: and Distributed Objects

2008-04-30 Thread Michael Vannorsdel
I'm fairly certain this method keeps the loop in default mode; the docs are probably copy and pasted or contain archaic info. Just to recap, how do you know messages are not being processed? And where are these originating, another process, a secondary thread? When you end the sheet does

Detect click on view during animation

2008-04-30 Thread Colin Harris
Hi All, I'm new to Obj-C, Cocoa, iPhone dev and this list so I'm sorry if this is a silly question. I'm trying to detect a click (or touch) on an image that's being animated (moved from one side of the screen to the other). I don't think this is iPhone specific as the same things would ap

Re: Converting From Simple to Doc Based App - Problems with Menus

2008-04-30 Thread Graham Cox
Change the targets for the menu items to be first responder instead of the views themselves. The views will still get the actions when they are made first responder, which happens automatically. Menus in the main menu bar should target either first responder or some object that lives in the

Converting From Simple to Doc Based App - Problems with Menus

2008-04-30 Thread Peter Zegelin
Being new to Cocoa I started my project with a Simple Cocoa Application template. I have now converted to a Doc Based template by adding all my code and adding my delegates and substituting my window in the Document nib. However I have a problem with some of the menus. Most of my menus go

Re: FSCopyObjectASync Not Calling Callback In Cocoa

2008-04-30 Thread Steve Christensen
I noticed in some sample code (http://developer.apple.com/samplecode/ FSFileOperation/listing1.html), that after creating the FSFileOperationRef, it calls FSFileOperationScheduleWithRunLoop, specifying the current run loop. Just a guess that you're probably not making that association so the

Re: Immediate memory release

2008-04-30 Thread j o a r
On Apr 30, 2008, at 7:27 PM, Jens Alfke wrote: I also changed the pool calls to the current recommended names: +new and -drain. Can you point me to where the official documentation recommends the use of +new over +alloc-init? Thanks, j o a r __

TransformProcessType fails to show menu bar

2008-04-30 Thread Michael Ash
I wasn't sure if this should go to carbon-dev or cocoa-dev, but ultimately since this is a pretty low-level API and I suspect my problem interacts with Cocoa, I figured cocoa-dev would do. I have an application which I would like to function in both "background" and "foreground" mode. Basically, w

Re: Immediate memory release

2008-04-30 Thread Melissa J. Turner
On Apr 30, 2008, at 19:59, Chris Suter wrote: On 01/05/2008, at 12:27 PM, Jens Alfke wrote: On 30 Apr '08, at 5:53 PM, Graham Cox wrote: If throws an exception won't that mean that is leaked? (and all of its contents up to that point too; applies to both of our code examples). Yup.

Re: Immediate memory release

2008-04-30 Thread Chris Suter
On 01/05/2008, at 12:27 PM, Jens Alfke wrote: On 30 Apr '08, at 5:53 PM, Graham Cox wrote: If throws an exception won't that mean that is leaked? (and all of its contents up to that point too; applies to both of our code examples). Yup. You can work around that by using @finally:

Re: Immediate memory release

2008-04-30 Thread Graham Cox
Well, because of Matt's post I read up more on autorelease pools. The docs state: "If you release an autorelease pool that is not the top of the stack, this causes all (unreleased) autorelease pools above it on the stack to be released, along with all their objects. If you neglect to send

Re: Cache Class review (low priority)

2008-04-30 Thread Jens Alfke
On 30 Apr '08, at 3:14 PM, Western Botanicals wrote: I do have a question about the NSMutableDictionary though. The reason I didn't go with that, is that I didn't know how to fit the timestamp in there. Any thoughts? Make the values in the dictionary be compound objects. Either define a

Re: Read-Only ABRecord

2008-04-30 Thread Jens Alfke
On 30 Apr '08, at 4:47 PM, Alexander Hartner wrote: I would like to find out how to set a ABRecord as read-only, and if a record is configured to be read-only is it possible to edit it in the Address Book Application. I don't think read-only means what you think it does. It's not some ki

Re: Immediate memory release

2008-04-30 Thread Jens Alfke
On 30 Apr '08, at 5:53 PM, Graham Cox wrote: If throws an exception won't that mean that is leaked? (and all of its contents up to that point too; applies to both of our code examples). Yup. You can work around that by using @finally: for (i = 0; i < count; i++) {

Re: Trouble with NSPopUpButton and hierarchical menus?

2008-04-30 Thread Graham Cox
I can confirm this bug, it's the same (or similar to) one I mentioned a few months ago but had some trouble reproducing at the time. I thought it was related to importing older IB files, but I can make it happen with any. Create a pop-up button. Set it to "pull down" mode. The first menu

Re: Immediate memory release

2008-04-30 Thread Graham Cox
If throws an exception won't that mean that is leaked? (and all of its contents up to that point too; applies to both of our code examples). Or is there some special handling of autorelease pools when an exception is thrown? If so, I wasn't aware of it - can you point to the relevant docs

FSCopyObjectASync Not Calling Callback In Cocoa

2008-04-30 Thread Matt Long
I execute this code and it successfully copies my file from source to destination: - (IBAction)startCopy:(id)sender; { FSFileOperationRef fileOp = FSFileOperationCreate(NULL); FSRef source; FSRef destination; FSPathMakeRef( (const UInt8 *)[[sourceFilePath stringValue] cStrin

Re: Trouble with NSPopUpButton and hierarchical menus?

2008-04-30 Thread Peter Ammon
On Apr 30, 2008, at 3:58 PM, John Stiles wrote: I've been trying to create an NSPopUpButton in IB3, in pull-down mode, that has a submenu. It doesn't seem to work properly though. After I drag in the "Menu >" item into the pop-up button's menu, the pop-up seems to be irrevocably broken-it rando

Read-Only ABRecord

2008-04-30 Thread Alexander Hartner
The ABRecord class provides the isReadOnly method. Use isReadOnly to determine whether or not a record is read-only. http://developer.apple.com/documentation/UserExperience/Reference/ AddressBook/Classes/ABRecord_Class/Reference/Reference.html I would like to find out how to set a ABRecord as

NSViewController binding problem

2008-04-30 Thread Dan Messing
Hi, I'm working on refactoring some views into their own nib files, and am taking a stab at using NSViewControllers. When I instantiate the view controller I set its representedObject to an NSArrayController. Something like this: viewController = [[SSCustomViewController alloc] initWithNi

Re: How is "Apple + Ctrl + D" implemented?

2008-04-30 Thread Evan Gross
On 30/04/08 11:00 AM, "Nathan Vander Wilt" <[EMAIL PROTECTED]> wrote: > What none of this explains is why Preview.app won't give a pop-up > dictionary even when a PDF has selectable text (which can be pulled up > in Dictionary.app). For me, that would be an interesting explanation > to hear. A go

Trouble with NSPopUpButton and hierarchical menus?

2008-04-30 Thread John Stiles
I've been trying to create an NSPopUpButton in IB3, in pull-down mode, that has a submenu. It doesn't seem to work properly though. After I drag in the "Menu >" item into the pop-up button's menu, the pop-up seems to be irrevocably broken-it randomly neglects to display some items, or fails to show

Re: Any actor or coroutine implementations for Cocoa?

2008-04-30 Thread Michael Ash
On Wed, Apr 30, 2008 at 5:37 PM, Jens Alfke <[EMAIL PROTECTED]> wrote: > > On 30 Apr '08, at 12:35 PM, Michael Ash wrote: > > > > This doesn't work because you can have multiple sheets which get > > dismissed out of order. > > For example, method X shows sheet A, method Y shows sheet B, user > > d

Re: beginSheetModalForWindow: and Distributed Objects

2008-04-30 Thread Michael Ash
On Wed, Apr 30, 2008 at 5:29 PM, Andrew Kimpton <[EMAIL PROTECTED]> wrote: > > On Apr 30, 2008, at 3:59 PM, Michael Vannorsdel wrote: > > > > This is true of course but since he's getting loop mode issues I'm just > assuming either he's actually running a modal window or displaying a sheet > on a

Re: Cache Class review (low priority)

2008-04-30 Thread Western Botanicals
Thank you for your response, I will definitely put them to good use. I do have a question about the NSMutableDictionary though. The reason I didn't go with that, is that I didn't know how to fit the timestamp in there. Any thoughts? Justin Giboney __

NSTextView, undo does not reset typingAttributes

2008-04-30 Thread Ross Carter
I just noticed this behavior, which has been around at least since Tiger. Select some text in a NSTextView and then change a text attribute, such as font or foreground color. Then undo the change. Without clearing the selection, start typing. The new characters appear with the attribute tha

Re: Icons on the NSTabview

2008-04-30 Thread Jens Alfke
On 30 Apr '08, at 2:23 PM, Development wrote: Create a nsview to act a a wrapper. Place a Tabless tabview inside this Also place another nsview where ever you would like tabs to appear Now you can use buttons, which can easily have icons, as the tabs Good idea. (I did my icon-tab-view back ba

Re: Any actor or coroutine implementations for Cocoa?

2008-04-30 Thread Jens Alfke
On 30 Apr '08, at 12:35 PM, Michael Ash wrote: This doesn't work because you can have multiple sheets which get dismissed out of order. For example, method X shows sheet A, method Y shows sheet B, user dismisses sheet A. Now you need to return back to method X but method Y is still on the call

Re: beginSheetModalForWindow: and Distributed Objects

2008-04-30 Thread Andrew Kimpton
On Apr 30, 2008, at 3:59 PM, Michael Vannorsdel wrote: This is true of course but since he's getting loop mode issues I'm just assuming either he's actually running a modal window or displaying a sheet on a modal window. If it's a normal stock sheet there would have been no issues with NS

Re: Icons on the NSTabview

2008-04-30 Thread Development
Funny you should mention this. I JUST had to contend with this myself. I did it a little different, more parts but easier to deal with I think, than trying to recalculate labels and all. Create a nsview to act a a wrapper. Place a Tabless tabview inside this Also place another nsview where ev

Re: [MEET] May CocoaHeads Mac Developer Meetings

2008-04-30 Thread Andy Lee
Also, the NYC CocoaHeads group will meet on Thursday, May 8, from 6:00-8:00 PM. Location: Tekserve, on 23rd St. west of 6th Ave www.tekserve.com> --Andy ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or m

Re: beginSheetModalForWindow: and Distributed Objects

2008-04-30 Thread Michael Vannorsdel
This is true of course but since he's getting loop mode issues I'm just assuming either he's actually running a modal window or displaying a sheet on a modal window. If it's a normal stock sheet there would have been no issues with NSConnection. On Apr 30, 2008, at 1:36 PM, Michael Ash wr

Re: beginSheetModalForWindow: and Distributed Objects

2008-04-30 Thread Michael Ash
On Wed, Apr 30, 2008 at 1:52 PM, Michael Vannorsdel <[EMAIL PROTECTED]> wrote: > NSModalPanelRunLoopMode. It definitely shouldn't be. A properly implemented sheet should run in NSDefaultRunLoopMode, as sheets do not block the flow of program execution. It's possible to have an application-modal sh

Re: Any actor or coroutine implementations for Cocoa?

2008-04-30 Thread Michael Ash
On Wed, Apr 30, 2008 at 12:18 PM, Jens Alfke <[EMAIL PROTECTED]> wrote: > On 29 Apr '08, at 7:16 PM, Michael Ash wrote: > > There were a lot of problems with Cocoa and returning to the runloop > > without returning back the way I came > > > > Yes, I can see that there would have to be a rule that

[MEET] May CocoaHeads Mac Developer Meetings

2008-04-30 Thread Stephen Zyszkiewicz
Greetings, CocoaHeads is an international Mac programmer's group. We specialize in Cocoa, but everything Mac programming related is welcome. Why Should I Attend? Meeting other Mac OS X developers in person is both fun and immensely useful. There's no better way to learn Cocoa or get help with p

Re: beginSheetModalForWindow: and Distributed Objects

2008-04-30 Thread Michael Vannorsdel
NSModalPanelRunLoopMode. On Apr 30, 2008, at 5:59 AM, Andrew Kimpton wrote: hat'll help - once I can find out what mode the beginSheetModalForWindow: is using... ? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin r

Re: Modal window and 'hanging' menu [SOLVED]

2008-04-30 Thread John Stiles
Manfred Schwind wrote: You probably shouldn't be putting up a modal dialog from within the menu-tracking runloop mode. You can use -performSelector:withObject:afterDelay:inModes: to defer the call that opens the modal dialog; use a delay of 0.0 but a modes array that includes only the default

Re: Modal window and 'hanging' menu [SOLVED]

2008-04-30 Thread Manfred Schwind
You probably shouldn't be putting up a modal dialog from within the menu-tracking runloop mode. You can use - performSelector:withObject:afterDelay:inModes: to defer the call that opens the modal dialog; use a delay of 0.0 but a modes array that includes only the default runloop mode. Than

Re: Stuttering Multiple QTMovieLayers in Single Window

2008-04-30 Thread David Duncan
On Apr 30, 2008, at 12:28 AM, Greg Sutton wrote: I have a single QTMovie with one video track playing well in a QTMovieLayer within a window. In fact I can have three or more of these windows open all playing separate videos without noticeable slow down. However when I add a second QTMovieL

Re: Any actor or coroutine implementations for Cocoa?

2008-04-30 Thread Jens Alfke
On 29 Apr '08, at 7:16 PM, Michael Ash wrote: There were a lot of problems with Cocoa and returning to the runloop without returning back the way I came Yes, I can see that there would have to be a rule that only the main coroutine (i.e. the original 'real' stack) gets to use the runloop.

Re: Is there any compression library for Cocoa?

2008-04-30 Thread Christopher Nebel
On Apr 30, 2008, at 4:40 AM, Trygve Inda wrote: On 30 Apr 2008, at 12:35, Trygve Inda wrote: So why the need for + dataWithBytesNoCopy:length:freeWhenDone: ? It would seem that if freeWhenDone is YES, these are identical calls? Because sometimes you might want to use NO. i.e maybe its a n

Re: do i have to convert each unichar on ppc and intel

2008-04-30 Thread Jean-Daniel Dupas
Le 30 avr. 08 à 17:24, Nick Rogers a écrit : hi, I'm using: [NSString stringWithCharacters:gptEntry.partName length:36]; where gptEntry struct have been filled in from the disk. The string shows correct on ppc, while shows garbage on intel. So how can I convert an entire such unichar array to c

do i have to convert each unichar on ppc and intel

2008-04-30 Thread Nick Rogers
hi, I'm using: [NSString stringWithCharacters:gptEntry.partName length:36]; where gptEntry struct have been filled in from the disk. The string shows correct on ppc, while shows garbage on intel. So how can I convert an entire such unichar array to correct-endian format? Is there any built-in s

Re: Icons on the NSTabview

2008-04-30 Thread Jens Alfke
On 30 Apr '08, at 7:54 AM, yogesh kumar wrote: If is it possible to add the icons pictures on the NSTabviews? Any direction is appriciated. Thanks. There's no built-in support for icons. You'd have to subclass NSTabViewItem and then override a few methods: - (void)drawLabel:(BOOL)shouldT

Re: Cache Class review (low priority)

2008-04-30 Thread Jens Alfke
I can't say whether this code will work or not, but it has quite a lot of problems with its design. * As Jean-Daniel pointed out, most of what you're doing here is re- implementing NSMutableDictionary, only much less efficiently (by using linear search instead of hashing.) * Doing the peri

Re: How is "Apple + Ctrl + D" implemented?

2008-04-30 Thread Nathan Vander Wilt
On Apr 28, 2008, at 5:35 AM, John Joyce wrote: Graham, Thanks for your reply! But how can I "find the range of the word" given the glyph index? I just can not find an API doing so. [snip] The range of the word is up to you to find and depends on the language. If it is any common language f

Icons on the NSTabview

2008-04-30 Thread yogesh kumar
If is it possible to add the icons pictures on the NSTabviews? Any direction is appriciated. Thanks. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at co

Re: how do I post my queries and see them published?

2008-04-30 Thread I. Savant
On Wed, Apr 30, 2008 at 10:42 AM, yogesh kumar <[EMAIL PROTECTED]> wrote: > how do I post my queries and see them published? You just did. -- I.S. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

Re: Cache Class review (low priority)

2008-04-30 Thread Jean-Daniel Dupas
I think you may read the Cocoa Collection documentation. The NSDictionary class may interess you. Le 30 avr. 08 à 15:50, Western Botanicals a écrit : This is one of my first projects in Cocoa, but I probably got a lot of things wrong, so if I can get a review of this class that would help

how do I post my queries and see them published?

2008-04-30 Thread yogesh kumar
how do I post my queries and see them published? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/

Cache Class review (low priority)

2008-04-30 Thread Western Botanicals
This is one of my first projects in Cocoa, but I probably got a lot of things wrong, so if I can get a review of this class that would help a lot. There may be a class like this already, if there is let me know. http://giboneydesigns.com/code/Cacheh.txt http://giboneydesigns.com/code/Cachem.t

Re: Immediate memory release

2008-04-30 Thread matt . gough
Or you could go with: -(IBAction) Generate:(id) sender { for (i = 0; i < count; i++) { NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init]; NSImage* tempSource = [[[NSImage alloc] initWithContentsOfFile:sPath[i]] autorelease]; // autorelease tempSour

Re: Immediate memory release

2008-04-30 Thread Graham Cox
On 30 Apr 2008, at 11:08 pm, Roland King wrote: ok but why? I assume if this works that the NSImage alloc/ initWithContentsOfFile: is doing a retain/autorelease. Of course that wouldn't violate the letter of the memory management documentation, which really just tells you that if you alloc/i

Re: Immediate memory release

2008-04-30 Thread Roland King
ok but why? I assume if this works that the NSImage alloc/ initWithContentsOfFile: is doing a retain/autorelease. Of course that wouldn't violate the letter of the memory management documentation, which really just tells you that if you alloc/init an object, you are responsible for freeing i

wanna extend openGLVideo functionality by adding movie navigation slider

2008-04-30 Thread Shashi Kumar
Hi all ! I am newbie and I want to add own movie navigation controller or NSSlider to apple sample code of openGL- "QTCoreVideo101". http://developer.apple.com/samplecode/QTCoreVideo101/index.html I should be able to navigate movie with that navigation slider and render the movie into the open

Re: Immediate memory release

2008-04-30 Thread Graham Cox
-(IBAction) Generate:(id) sender { for (i = 0; i < count; i++) { NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init]; NSImage* tempSource = [[NSImage alloc] initWithContentsOfFile:sPath[i]]; // some code [tempSource release];

Re: Is there any compression library for Cocoa?

2008-04-30 Thread Luc Heinrich
On 30 avr. 08, at 11:24, Trygve Inda wrote: How could I add buffer to a pool of sorts to be released when the object is released as it is just malloc'd. I believe that this would do the trick: return [NSData dataWithBytesNoCopy:buffer length:bufferLength +sizeof(uLongf) freeWhenDone:YES];

Re: Immediate memory release

2008-04-30 Thread Yannick De Koninck
I deleted everything that was between NSImage* tempSource = [[NSImage alloc] initWithContentsOfFile:sPath[i]; and [tempSource release]; so basically this is the code (sPath is a NSString array containing path names): -(IBAction)Generate:(id)sender { for (i = 0; i < count; i++)

Re: beginSheetModalForWindow: and Distributed Objects

2008-04-30 Thread Andrew Kimpton
Michael Vannorsdel wrote: NSConnection has a addRequestMode: method you can add multiple modes it will work in. That'll help - once I can find out what mode the beginSheetModalForWindow: is using... ? Andrew 8-) ___ Cocoa-dev mailing list (Cocoa-

Re: Updating NSTextView when it gets shorter [SOLVED]

2008-04-30 Thread Graham Cox
Yep, it was something simple, though a bit roundabout: I just made the hosting view receive the frameChanged notification from the editor (after turning this on in the editor) then keeping track of its previous frame and marking it for update. If anyone knows a less roundabout way, please d

Re: Is there any compression library for Cocoa?

2008-04-30 Thread Trygve Inda
> > On 30 Apr 2008, at 12:35, Trygve Inda wrote: > >> So why the need for + dataWithBytesNoCopy:length:freeWhenDone: ? >> >> It would seem that if freeWhenDone is YES, these are identical calls? > > Because sometimes you might want to use NO. i.e maybe its a non- > malloced buffer that you want

Updating NSTextView when it gets shorter

2008-04-30 Thread Graham Cox
In my app I have a NSTextView which is used as a temporary editor, being attached to another view while it edits some text, then removed when I'm done. This is set up to size vertically as the text is entered, and it does. While it's growing, all is well, but if it shrinks by one or more li

Re: Is there any compression library for Cocoa?

2008-04-30 Thread matt . gough
On 30 Apr 2008, at 12:35, Trygve Inda wrote: So why the need for + dataWithBytesNoCopy:length:freeWhenDone: ? It would seem that if freeWhenDone is YES, these are identical calls? Because sometimes you might want to use NO. i.e maybe its a non- malloced buffer that you want to treat as NSDa

Re: Is there any compression library for Cocoa?

2008-04-30 Thread Trygve Inda
> > On 30 Apr 2008, at 11:24, Trygve Inda wrote: > >> If the compression is successful, and I later release the (compressed) >> NSData, buffer is still around, right? > > No, from the documentation for + (id)dataWithBytes: length: > "The returned object takes ownership of the bytes pointer and f

Re: valueForKey to call function

2008-04-30 Thread I. Savant
On Apr 30, 2008, at 5:34 AM, Graham Cox wrote: No, because pickPoint: isn't a property, it depends on some external input as well as the view's state. ... and more to the point, you need to read this document: http://developer.apple.com/documentation/Cocoa/Conceptual/KeyValueCoding/Concept

Re: Is there any compression library for Cocoa?

2008-04-30 Thread matt . gough
On 30 Apr 2008, at 11:24, Trygve Inda wrote: If the compression is successful, and I later release the (compressed) NSData, buffer is still around, right? No, from the documentation for + (id)dataWithBytes: length: "The returned object takes ownership of the bytes pointer and frees it on de

Re: valueForKey to call function

2008-04-30 Thread Graham Cox
No, because pickPoint: isn't a property, it depends on some external input as well as the view's state. G. On 30 Apr 2008, at 7:22 pm, Alexey Baev wrote: I have NSView* view. I can write: [view valueForKey: @"isHidden"] to call property: [view isHidden]. Can I write something like [view

Re: Is there any compression library for Cocoa?

2008-04-30 Thread Trygve Inda
> There's a handy NSData-Compression class in Dustin Mierau's NetSocket > 0.9 sample code available here: > > http://blackholemedia.com/code/ > > Here's a snippet from the header file. > > @interface NSData (Compression) > - (NSData*)compressedData; > - (NSData*)compressedDataWithLevel:(int)inLe

valueForKey to call function

2008-04-30 Thread Alexey Baev
I have NSView* view. I can write: [view valueForKey: @"isHidden"] to call property: [view isHidden]. Can I write something like [view valueForKey: @"..."] to call this: [view pickPoint: mouseLoc], where mouseLoc is NSPoint. Alex. ___ Cocoa-dev

Re: Question about DRFrameworks

2008-04-30 Thread Citizen
On 30 Apr 2008, at 04:21, Development wrote: I am using the DRFrameworks and trying to set the finder window view mode for the disc thats created. According to the documentation this is done by passing an NSNumber to the properties dictionary for the key DRMacWindowView The problem is that

Core Data and Run Loops

2008-04-30 Thread Jonathan Dann
Hi All, I'm now learning Core Data and was working through the persistent document tutorial when I hit a snag. After following the advice in the "Adpoting the Mediator Pattern" the object controller now simply prepares its content and fetches the department object. I then tried in my w

Stuttering Multiple QTMovieLayers in Single Window

2008-04-30 Thread Greg Sutton
I have a single QTMovie with one video track playing well in a QTMovieLayer within a window. In fact I can have three or more of these windows open all playing separate videos without noticeable slow down. However when I add a second QTMovieLayer to a single window things start to fall apar