• 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
Re: Delegate for multiple NSTextViews
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Delegate for multiple NSTextViews (From: Rob Minerick <email@hidden>)
 >Re: Delegate for multiple NSTextViews (From: Glenn Andreas <email@hidden>)

  • Prev by Date: Re: Delegate for multiple NSTextViews
  • Next by Date: Re: [OT] Mamasam Archives ...
  • Previous by thread: Re: Delegate for multiple NSTextViews
  • Next by thread: Re: Delegate for multiple NSTextViews
  • Index(es):
    • Date
    • Thread