Re: TextField Delegates
Re: TextField Delegates
- Subject: Re: TextField Delegates
- From: Jane <email@hidden>
- Date: Fri, 28 Dec 2001 08:55:55 -0700
Thank you, you are correct. Adding control to the beginning of the
methods worked. Now I understand what the documentation means when it
says, for example: "After validating the new value, posts an
NSControlTextDidEndEditingNotification to the default message center.
This causes the receiver's delegate to receive a
controlTextDidEndEditing message." Oooooohhhhh.
Thanks again, Jane
On Friday, December 28, 2001, at 08:33 AM, Sam Goldman wrote:
>
I dealt with this sooo long ago that I am not sure of this response.
>
>
I think that you are using the wrong delegate methods. Look at
>
NSControl for
>
the correct ones (e.g. ControlTextDidChange).
>
>
- Sam
>
>
On 12/28/01 7:24 AM, "Jane" <email@hidden> wrote:
>
>
> I'm sure I'm missing something elementary but..
>
>
>
> I have a NSTextField object in a window created in IB and designated
>
> my
>
> controller object as its delegate. However, whenever I enter, change
>
> the text , or end editing in the NSTextField, none of my delegate
>
> methods are sent the expected messages.
>
>
>
> I have verified in my awakeFromNib method that my controller is indeed
>
> the delegate (via testing using the NSTextField delegate method is
>
> equal to self) and, using the NSObject method description, that my
>
> IBOutlet is an NSTextField. I put an NSTextView in the window via IB
>
> and set my controller as its delegate. My delegate methods do get the
>
> expected messages from the NSTextView.
>
>
>
> Delegates that I have set up include: textShouldBeginEditing,
>
> textDidEndEditing, textDidChange, among others documented for
>
> NSTextField. What am I doing wrong???
>
>
>
> TIA. Jane
>
> _______________________________________________
>
> 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.