views:

351

answers:

2

I can't seem to wire events to my UITextView.

I'm expecting that the list of events that are available for the UITextField ("Did End On Exit", "Editing Changed", etc) , should all be available for the UITextView.

However this isn't the case. UITextView in its events listing shows nothing.

What's going on here and how do I trap events for UITextView?

A: 

Are you setting a delegate which implements the UITextViewDelegate protocol?

JBRWilkinson
No, I am not. I see there is a different outlet here in the UITextView called "delegate", but its not clear what I do with that outlet. How do I hook that outlet up to my class which implements the UITextViewDelegate protocol? An example would be nice.
bobobobo
See iPhone SDK sample 'UICatalog', files TextViewController.h and TextViewController.m.http://developer.apple.com/iPhone/library/samplecode/UICatalog/index.html#//apple_ref/doc/uid/DTS40007710
JBRWilkinson
A: 

if your Files Owner implements the UITextFieldDelegate connect the delegate output of your UITextView to the Files Owner. Simple

Aran Mulholland
Well yeah that makes sense.
bobobobo