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: Brian Slick <email@hidden>
- Date: Sat, 25 Jul 2009 15:17:45 -0400
I won't pretend to know the answer, but this struck me as odd:
On Jul 25, 2009, at 3:06 PM, WT wrote:
- (void) awakeFromNib
{
super.delegate = self;
super.text = @"Hello world";
NSLog(@"awakeFromNib called - delegate set to self");
}
Shouldn't it be [self setDelegate: self]? I wouldn't think you'd have
an actual 'super' object available to perform the delegate methods.
But I probably don't understand.
Brian
_______________________________________________
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