• 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
Re: QTKit Tutorial
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: QTKit Tutorial


  • Subject: Re: QTKit Tutorial
  • From: email@hidden
  • Date: Sun, 9 Oct 2005 17:01:44 -0700

What version of Xcode are you using?
Are you copying from Safari or Preview?

I remember back in Xcode 1.0... or was it Project Builder (?) well one of those,
if you copied from HTML(Safari) and pasted into xcode it would paste a bunch of
invisible characters that would generate all kinds of errors. I haven't seen
this happen with 10.4 a.ka Safari 2.0 + Xcode 1.1+


Just a thought...

On 17/10/08, at 13:13, Adam Somers wrote:

Hi, this is my first post to this list.

I am a student trying to hack through this stuff.  I am working on an
audio project that performs granular synthesis using audio files.
This means some audio is buffered and small portions of it are played
with a gaussian function controlling amplitude.  I want the user to be
able to select a portion of a longer file to be granulated.  There
should be a view of the waveform where the selection can be made.  For
a first try I thought I would check out QTKit.

The documentation for QTKit is promising, but I have had trouble.  In
the QuickTime Kit Programming Guide, the second tutorial is "Creating
the Extended QTKitPlayer Project."  I found issues such as: ([...] is
where I cut things short)

#[...]

@interface MovieDocument : NSDocument
{
 // movie window
    IBOutlet NSWindow *mMovieWindow;
    IBOutlet QTMovieView *mMovieView;
    [.....]
}

[...]
- (IBAction)doLoop:(id)sender; // toggle looping
- (IBAction)doLoopPalindrome:(id)sender; // toggle palindrome looping
- (IBAction)doClone:(id)sender;
[...]

Insert the following method before the @end directive in the file:

- (BOOL)createMovieDocumentWithFile:(NSString *)fileName asData: (BOOL)asData;
@end


To handle NSDocument overrides, add the following lines of code:

- (NSString *)windowNibName;
- (void)windowControllerDidLoadNib:(NSWindowController*) windowController;
- (NSData *)dataRepresentationOfType:(NSString *)docType;
- (BOOL)writeWithBackupToFile:(NSString *)fullDocumentPath
ofType:(NSString *)type
saveOperation:(NSSaveOperationType)saveOperation;
- (BOOL)readFromFile:(NSString *)fileName ofType:(NSString *)type;
- (void)printShowingPrintPanel:(BOOL)showPanels;


[...]


I didn't know that the compiler accepts method declarations after @end. Well, as far as I can tell, it doesn't. I went through this tutorial, copying the code bit for bit, and had errors that I could not repair. It would be nice if Apple would supply complete code examples for all the tutorials, but oh well.

Has anyone here put the QTKit framework to use?  Anyone have success
with this tutorial?

-Adam Somers
http://oneofmillions.com
_______________________________________________
MacOSX-dev mailing list
email@hidden
http://www.omnigroup.com/mailman/listinfo/macosx-dev


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Prev by Date: NSTextView & HTML table height?
  • Next by Date: Re: NSOutlineView as drag destination
  • Previous by thread: Re: NSTextView & HTML table height?
  • Next by thread: Launching Choose Other Application dialog
  • Index(es):
    • Date
    • Thread