first attempt at delegation failing
first attempt at delegation failing
- Subject: first attempt at delegation failing
- From: Paul Cezanne <email@hidden>
- Date: Wed, 29 May 2002 14:25:18 -0400
In one of my controllers I have this code:
- (NSString *)comboBox:(NSComboBox *)aComboBox completedString:(NSString *)inputString {
printf("completedString %s\n", [inputString cString]);
}
and in .h file I have this:
- (NSString *)comboBox:(NSComboBox *)aComboBox completedString:(NSString *)inputString;
and then I dragged the .h file to the .nib file and then in the nib I have control dragged from my combobox to the "File's Owner" and clicked the delegate label, then clicked the connect button.
My ComboBox does NOT have an external data source.
When I start typing in the combobox (and watch it auto complete), my printf does not trigger. Clearly I have done my delegation incorrectly.
(I also realize that this is the wrong method to delegate since I want to be notified whenever any typing occurs anywhere, I'll have to grab one of NSTextField's delagators for that, but I'm sure I can figure that out once I get a simple delagator working.)
Thanks in advance.
Paul
_______________________________________________
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.