• 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: NSMovieView in NSTextAttachment
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSMovieView in NSTextAttachment


  • Subject: Re: NSMovieView in NSTextAttachment
  • From: Douglas Davidson <email@hidden>
  • Date: Mon, 17 Dec 2001 15:23:04 -0800

On Monday, December 17, 2001, at 02:57 PM, Robert Miller wrote:

Here's a simple question, (I hope) I'm able to embed a movie file
into an NSTextView using an attributed string and an NSTextAttachment.
When doing so it appears that an NSMovieView is created with a movie
controller, etc. The question is how do I obtain an object reference to
this movie view so that I can control some aspects of its UI namely
hiding the controller, etc. Is this possible ? I tried the NSCell
representedObject and obectValue methods and they return NULL. Is it
possible to get at the object reference contained in an NSCell. ?

There is some (currently) private machinery involved here; it may be made public in the future, but the view here definitely is not the represented object of the text attachment cell--for one thing, since there can be multiple text views on a given text storage, there may potentially be multiple movie views for a given attachment. In the meantime, you can try looking through the text view's subviews for an NSMovieView with the right location and size. There's no guarantee that you will always find it--if the attachment is not visible, the movie view need not have been created--but if it is there you should be able to find it this way.

Douglas Davidson


References: 
 >NSMovieView in NSTextAttachment (From: Robert Miller <email@hidden>)

  • Prev by Date: Re: Sending a paste event to another app?
  • Next by Date: THANK YOU OSX GANG
  • Previous by thread: NSMovieView in NSTextAttachment
  • Next by thread: THANK YOU OSX GANG
  • Index(es):
    • Date
    • Thread