Mailing Lists: Apple Mailing Lists

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

compile error from QTKit and quicktime



From an absolute quicktime begginer -- this is my first foray into the
quicktime api's
I'm modeling my code on the QTKitCreateMovie example from apple.  I am
looking to create a qt movie from a series of NSImages.

The QTKitCreateMovie example compiles fine, the errors come when I
literally try and cut and paste apple's code into my project.

I have a single object that references the quicktime api's.  This is
were all the heavy lifting is done.

#import <QTKit/QTKit.h> //<-- error here
#import <Cocoa/Cocoa.h>
#import <QuickTime/QuickTime.h> //<-- error here

@interface TSMovie : NSObject
{
	QTMovie *mMovie;
	DataHandler mDataHandlerRef;
}
- (id)initwithImage: (NSImage *) img andPath: (NSString *) pathToMovie;
- (Movie) quicktimeMovieFromTempFile: (DataHandler *) outDataHandler
error: (OSErr *) outErr;
- (void) buildQTKitMovie: (NSImage *) img;
//accessors
- (void) setMovie: (QTMovie *) movie;
- (QTMovie *) mMovie;
@end

I get a: "error: parse error before numeric constant" that is being
referenced from QTKit and QuickTime.  If I comment out the lines
marked "error here" everything compiles just fine (without the obvious
quicktime functionality of course)

the error chain:
from
--> TSMovie (my object)
from
QTKit.framework/Headers/QTKit.h:10
from
QTKit.framework/Headers/QTDataReference.h
from
QuickTime.framework/Headers/QuickTime.h
from
Carbon.framework/Headers/Carbon.h
from
Carbon.framework/Frameworks/HIToolbox.framework/Headers/HIToolbox.h
from
Carbon.framework/Frameworks/HIToolbox.framework/Headers/TextServices.h
--> error: parse error before numeric constant

I've tried the xcode list but I haven't gotten a response since I
think that this has more to do with how I've set up the project rather
than quicktime, but I haven't gotten a response.  So I thought that I
would try here.

I've gone through the project settings comparing my project to
QTKitCreateMovie's project and target settings, but this has not
corrected the problem.

My project does not have an associated movie view.  I am mere opening
up a series of images and adding them (via addImage:) to a QTMovie,
and then saving it to disk.  (all happeing in the TSMovie object)
Apple's example is a document based app, mine is not.

It is something simple I'm sure, I just can't see it.  If you need
more info, just let know and I'll post more code.

thanks
--
----
Bruce Johnson
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-API mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quicktime-api/email@hidden

This email sent to 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.