• 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: UITextView as its own delegate - infinite loop on keyboard select
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: UITextView as its own delegate - infinite loop on keyboard select


  • Subject: Re: UITextView as its own delegate - infinite loop on keyboard select
  • From: Roland King <email@hidden>
  • Date: Mon, 1 Mar 2010 19:44:40 +0800

On 01-Mar-2010, at 7:34 PM, Uli Kusterer wrote:

> On 01.03.2010, at 12:05, Roland King wrote:
>> Firstly if that's what happened, the program would recurse, the stack would be full of textViewDidChangeSelection: calls each calling the next, but that is not what happens, the program hangs, the code infinitely loops, but it does not recurse, the stack stays about 20 stack frames deep.
>
>
> I haven't read that thread, so you may well be true, but just going by your description, tail recursion optimizations, as well as IMP cacheing, could cause the behaviour you're observing.
>

That is true, if the method actually existed at all and was called and recursed, those optimizations could look like that, thanks for pointing it out.

In this case there's the extra point that the method doesn't actually exist and it's not being called at all (it's just being checked for in respondsToSelector:)_______________________________________________

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

References: 
 >Re: UITextView as its own delegate - infinite loop on keyboard select (From: Roland King <email@hidden>)
 >Re: UITextView as its own delegate - infinite loop on keyboard select (From: Uli Kusterer <email@hidden>)

  • Prev by Date: Re: UITextView as its own delegate - infinite loop on keyboard select
  • Next by Date: Private ivars, not marked as IBOutlet, visible in IB
  • Previous by thread: Re: UITextView as its own delegate - infinite loop on keyboard select
  • Next by thread: Private ivars, not marked as IBOutlet, visible in IB
  • Index(es):
    • Date
    • Thread