Quartz Composer deprecated in Xcode 5.1.1??
Quartz Composer deprecated in Xcode 5.1.1??
- Subject: Quartz Composer deprecated in Xcode 5.1.1??
- From: Wayne <email@hidden>
- Date: Sun, 20 Apr 2014 19:55:27 -0700
Hello.
It seems as if the Quartz Composer framework can still be found buried inside of the Quartz framework.
However Xcode is unable to compile a xib file that has a Quartz Composer view.
I get the following error:
/Users/wayne/sandbox/Test/en.lproj/MainMenu.xib: The document "MainMenu.xib" could not be opened. The operation couldn’t be completed. (com.apple.InterfaceBuilder error -1.)
Deleting the composer view clears the error. The app compiles and runs.
Adding the composer view restores the error. The app can not be compiled.
How do you use Quartz Composer inside of an application in Xcode 5.1.1?
[UPDATE] I was able to get my composer view back by adding the following code to awakeFromNib
NSView *superview = [mVisualizerWindow contentView]; NSRect frame = NSMakeRect(10, 10, 400, 400); mVisualizer = [[QCView alloc] initWithFrame:frame]; [superview addSubview:mVisualizer];
[mVisualizer unloadComposition]; [mVisualizer loadCompositionFromFile:[[NSBundle mainBundle] pathForResource:@"UI Mk.5" ofType:@"qtz"]]; [mVisualizer setMaxRenderingFrameRate: 30.0]; [mVisualizer startRendering];
Bugs in Xcode? Say it isn’t so!
Wayne |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden