sticky video/audio files in NSTextView with GC on
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