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: Is it just me?



heh,
welcome to QuickTimeLand!!!
the qtj was designed to be in accordance with the pre-existing C QT API
which isn't object oriented. because of this, the methods reflect their
sister C native functions as closely as they could make them.

the reason for the constants is that they are the same constants that are
used in the C. apple's convention is kConstant not CONSTANT (which comes I
believe from Unix C conventions hence their usage in java).

for a pure java programmer who's jumping into this stuff i can totally see
your frustration. i came to QTJ from more of a C mac programming background,
so it made a lot of sense to me.

as far as docs go, you need to look at the C API reference and translate
into java. the words and concepts are identical, though the example code is
mostly in C, it is simple code -- you can see similar java code examples in
the sdk.

http://developer.apple.com/techpubs/quicktime/qtdevdocs/RM/frameset2.htm

i have examples that i've written of insertMedia for most media types if you
need some help, you were inserting image media right?

rf


> I have been programming with Java for a few years now and I
> am a SCJP, but I find this QT Java API rather confusing. It just
> doesn't seem very Java like to me.
>
> Things that I would expect to be rather simple and intuitive
> just aren't. Granted, I just started working with this, but I've
> been fighting the API all the way.
>
> insertMedia()
> I'm still trying to figure this one out.
>
> 10 argument methods
> Surely, there has got to be a better way. Is this OOP?
>
> Weak documentation
> About the only thing I can find is some JavaDoc and
> the examples in the SDK. AFAIK, there is only one
> book on the subject and that is almost 3 years old.
>
> Constants
> Shouldn't these be capitalized?
>
> Intellisense
> For some reason (reflection API?), I'm not getting much
> info from the intellisense in my IDE regarding the QTJ methods.
> Normally, I would get a get some labels that describe the arguments,
> but with this API, I just get something like (int p1, int p2, int p3,
> int p4, int p5).
>
> Sorry, but I had to get this off my chest.
>
> I'm sure that QTJ is a powerful API and all, but trying to get a grasp
> of it from a purely Java perspective seems a bit daunting.


References: 
 >Is it just me? (From: "Drew Lane" <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.