Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: oddness with StdQtConstants
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: oddness with StdQtConstants



No,

That's not his problem as he was correctly specifying the import statement
(I don't know what is his problem:) - but that's another story...

Its also a *BAD* idea to implement this interface. By implementing it the
interface has to be loaded when you're class is loaded and is these
interfaces are big data chunks that can be expensive.

All they generally contain is public static final int constants, so by
referring to them in your code as StdQTConstants.kConstant the compiler gets
to inline this value in your code and the StdQTConstants interfaces don't
need to be loaded at run time - a good saving

Bill

on 17/7/01 1:44 AM, Jamie Shotton wrote:
> You need to implement quicktime.std.StdQTConstants if you want to get
> unqualified access to them.
>
> Jamie
>
>
>>
>>
>> I keep having a problem where my programs seem to have
>> difficulty with StdQtConstants using Project Builder. I am importing
>> quicktime.std.*, but it just doesn't seem to do anything. As soon as
>> I put the full pathname in here, it works again - if if I
>> write Track vidSource = theMovie.getIndTrackType(1,
>> quicktime.std.StdQTConstants.videoMediaType,
>> quicktime.std.StdQTConstants.movieTrackMediaType);
>>
>> rather than
>>
>> Track vidSource = theMovie.getIndTrackType(1,
>> videoMediaType,movieTrackMediaType);
>>
>> it works.
>> Its easy to work around but annoying. Is there some special
>> import line I need to put in?
>> Cheers
>> David
>> _______________________________________________
>> quicktime-java mailing list
>> email@hidden
>> http://www.lists.apple.com/mailman/listinfo/qu> icktime-java
> _______________________________________________
> quicktime-java mailing list
> email@hidden
> http://www.lists.apple.com/mailman/listinfo/quicktime-java


mailto:email@hidden
tel: +1 408 974 4056
__________________________________________________________________________
Cat: "Leave me alone, I'm trying to nap... Ah, What's that clicking noise?"
__________________________________________________________________________


References: 
 >RE: oddness with StdQtConstants (From: "Jamie Shotton" <email@hidden>)



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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.