How do you create a QTMovieView programmatically?

2011-08-19 Thread Charles Srstka
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?

Thanks,
Charles___

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


Re: How do you create a QTMovieView programmatically?

2011-08-19 Thread Kyle Sluder
On Fri, Aug 19, 2011 at 1:54 PM, Charles Srstka
cocoa...@charlessoft.com 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?

--Kyle Sluder
___

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


Re: How do you create a QTMovieView programmatically?

2011-08-19 Thread Charles Srstka
On Aug 19, 2011, at 4:00 PM, Kyle Sluder wrote:

 On Fri, Aug 19, 2011 at 1:54 PM, Charles Srstka
 cocoa...@charlessoft.com 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?

Charles___

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


Re: How do you create a QTMovieView programmatically?

2011-08-19 Thread Seth Willits
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


Re: How do you create a QTMovieView programmatically?

2011-08-19 Thread Stephane Sudre
On Fri, Aug 19, 2011 at 11:51 PM, Seth Willits sli...@araelium.com 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 (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