• 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: How do you create a QTMovieView programmatically?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do you create a QTMovieView programmatically?


  • Subject: Re: How do you create a QTMovieView programmatically?
  • From: Stephane Sudre <email@hidden>
  • Date: Sat, 20 Aug 2011 01:06:42 +0200

On Fri, Aug 19, 2011 at 11:51 PM, Seth Willits <email@hidden> wrote:
> 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.

Also using QTMovieView initWithFrame: for this project:
http://s.sudre.free.fr/Software/SaveHollywood.html (source code
available on the page).
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden

References: 
 >How do you create a QTMovieView programmatically? (From: Charles Srstka <email@hidden>)
 >Re: How do you create a QTMovieView programmatically? (From: Kyle Sluder <email@hidden>)
 >Re: How do you create a QTMovieView programmatically? (From: Charles Srstka <email@hidden>)
 >Re: How do you create a QTMovieView programmatically? (From: Seth Willits <email@hidden>)

  • Prev by Date: Re: How do you create a QTMovieView programmatically?
  • Next by Date: Re: iPhone app behaves differently on every other launch
  • Previous by thread: Re: How do you create a QTMovieView programmatically?
  • Next by thread: Help! Gesture getting canceled
  • Index(es):
    • Date
    • Thread