• 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
sticky video/audio files in NSTextView with GC on
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

sticky video/audio files in NSTextView with GC on


  • Subject: sticky video/audio files in NSTextView with GC on
  • From: Markus Guhe <email@hidden>
  • Date: Mon, 16 Feb 2009 16:42:51 +0000

Hello all,

I have this problem:

1. Drag and drop a video or audio file into an NSTextView (or set the text storage programmatically to an attributed string with such an attachment)
2. a) Set the attributed string of the view's text storage programmatically to a different string
b) Alternatively: delete the video/audio file
3. The video/audio file is still displayed (it can be played back) but it is definitely not part of the text storage any more. (This can be seen, for example, by moving the insertion point in the text view.)


This only happens if garbage collection is on. Without GC everything works as expected.

Here is a simple example project:
http://markusguhe.net/slipbox/error/NSTextViewVideo.zip

Am I missing something? Any help is greatly appreciated as this messes up my application ...

Markus

--
email@hidden
http://markusguhe.net/prof/




The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336.

_______________________________________________

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


  • Follow-Ups:
    • Re: sticky video/audio files in NSTextView with GC on
      • From: Markus Guhe <email@hidden>
  • Prev by Date: Re: iTableView and subclassing NSTableView
  • Next by Date: Re: TableView leaks a lot of memory
  • Previous by thread: Re: NSTimer: Test Results
  • Next by thread: Re: sticky video/audio files in NSTextView with GC on
  • Index(es):
    • Date
    • Thread