I am using - (BOOL)control:(NSControl *)control
textShouldBeginEditing:(NSText *)fieldEditor to detect when the
user types in the text field of the NSComboBox and this works
great. However, I have been unable to actually extract the contents
of the textbox itself!
Calling [fieldEditor string] should work. Or you can use -stringValue
and -setStringValue: on the NSComboBox itself, since it's a subclass
of NSTextField. Also, be sure to heed your compiler's warnings,
rather than counting on runtime errors like "selector not recognized".
--
Mike Blaguszewski / Cocoa Hacker / Ambrosia Software, Inc.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com