Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: QCView and IB problem.



Maybe an Xcode mis-understanding, but I've followed the tutorial for
"Making a Standalone Composition", and used the IB QCView inspector to
load a .qtx file, but I can't figure out a way of getting the compiled
app to reference a .qtx within the built bundle.

The QCView attributes panel in IB only has load and unload and no
apparent way of telling it to load a file relative to the bundle.

If you don't want to change the composition on the QCView, then loading it on the view within IB, as it gets saved with the .nib, should be fine.


Any ideas? or is the "create a standalone qtx player app without
writing a single line of code" wrong?

If you want to load the composition dynamically, you indeed need to type some code:


Add a reference to the QCView in the controller class of the application, then:

[myQCView loadComposition:[[NSBundle mainBundle] pathForResource:@"myComposition" ofType:@"qtz"]];

________________________________________________________
Pierre-Olivier Latour                            email@hidden
Quartz Composer Architect                Graphics & Imaging Team

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/email@hidden

This email sent to email@hidden
References: 
 >QCView and IB problem. (From: Adrian Milliner <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.