Re: Delegate for multiple NSTextViews
Re: Delegate for multiple NSTextViews
- Subject: Re: Delegate for multiple NSTextViews
- From: Rob Minerick <email@hidden>
- Date: Wed, 14 Apr 2004 17:20:15 -0500
When multiple text views share a single layout manager, they also
share significant portions of their state, since they represent
succeeding pages or other regions for text layout within the same
document. For example, they share the selection, and the typing
attributes, and many other pieces of state--including the delegate.
Most delegate methods are sent from the first text view, called the
"notifying" text view. When the notifying text view changes, there is
a notification sent out so that notification listeners can change the
object they are listening to, but delegates don't have to worry about
that.
Looking at what I wrote, I don't think I was clear about what the
problem is. The problem I'm having is that when I make an edit in the
second text view (i.e. when it is the key view), neither the first text
view (which the second shares a layout manager with), nor the second
text view call the delegate. When an edit is made in the first text
view, the delegate is called correctly. I would have thought, by
looking at the docs and what you wrote above, that the first text view
would call it's delegate when an edit was made in the second, but that
doesn't seem to be the case...
--
Rob
_______________________________________________
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.