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:25:54 -0500
I'm guessing it is "by design". After all, how else would
"textView:shouldChangeTextInRange:replacementString:" work if there
were multiple delegates that had to be queried? Would it ask all of
them, and if any of them said "yes" it would change them? Or if any
of them said "no" it wouldn't? Personally I would have guessed that
it would use whatever is the key view's delegate, but that would just
have been a guess.
Right, this is what I would have guessed as well (until Douglas pointed
out that only the notifying text view calls its delegate). My problem
is that when the key view isn't the first text view and an edit is
made, neither the delegate for the key text view or the delegates for
any others (including the first) are called. As you said, only one
delegate should be called... but in this case, none of them are.
--
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.