Re: [iPhone] Why can't a UITextField be its own delegate?
Re: [iPhone] Why can't a UITextField be its own delegate?
- Subject: Re: [iPhone] Why can't a UITextField be its own delegate?
- From: Kyle Sluder <email@hidden>
- Date: Sat, 25 Jul 2009 15:42:59 -0700
On Jul 25, 2009, at 3:36 PM, WT <email@hidden> wrote:
No. -delegate returns the "outside" delegate, not self. As I said,
from the outside world, everything is business as usual. If you call
-setDelegate: to set yourself up as the delegate, then you are
what's returned by a call to -delegate.
If that were the case then your delegate insertion technique would be
useless, since whenever UITextField wanted to ask it's delegate for
something it would always get the external object.
--Kyle Sluder
_______________________________________________
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