On Aug 19, 2011, at 2:19 PM, Charles Srstka wrote:

>>> Looking through the docs for QTMovieView, it seems that not only is its 
>>> only initializer, -initWithFrame: deprecated, but according to the docs 
>>> it’s not even available past OS X 10.5. Surely there must be a way to 
>>> initialize a QTMovieView in code, right? Or is there some other class we’re 
>>> supposed to use instead of QTMovieView to view AV content?
>> 
>> Does -initWithFrame: followed by -setMovie: not do the job?
> 
> I haven’t tried it yet, but I would assume this would not be a good way to go 
> about doing it, given that -[QTMovieView initWithFrame:] is both listed as 
> deprecated and also as “Available Mac OS X 10.3 through 10.5” in the docs, 
> suggesting that it probably won’t work at all in 10.6 and up, and even if it 
> did, it’s deprecated.
> 
> So how are we supposed to make a QTMovieView in code?


Ignore the documentation; it's a bug. Use initWithFrame:

initWithFrame: used to be explicitly listed in the QTMovieView header, and my 
guess is when it was removed, it was marked as deprecated in the documentation 
which was wrong. initWithFrame: is a valid initializer.


--
Seth Willits



_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to