Re: Removing text container from layout manager stops delegate messages
Re: Removing text container from layout manager stops delegate messages
- Subject: Re: Removing text container from layout manager stops delegate messages
- From: Douglas Davidson <email@hidden>
- Date: Mon, 2 Feb 2004 11:33:57 -0800
On Feb 1, 2004, at 2:41 AM, Aram Greenman wrote:
So I have a page-layout-type view where each page has its own text
view, with all the text views sharing the same layout manager, pages
are added and removed as needed, pretty much based on MultiplePageView
in the TextEdit example code.
The problem is after I the first time I remove a page (i.e. remove a
text container from the layout manager) my text view's delegate stops
receiving certain events, including textViewDidChangeSelection: and
textViewDidChangeTypingAttributes: (but it still receives
textView:doCommandBySelector:). I added a textViewDidChangeSelection:
method to the TextEdit example code and found it has the same problem.
Any suggestions?
Please file a bug. The delegate should not need to do anything special
for this. Note that other views receiving notifications need to listen
to the NSTextViewWillChangeNotifyingTextViewNotification so as to
change the object they are listening to if the first text view goes
away; if that is the issue, it may be that listening to this
notification will help.
Douglas Davidson
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.