help with delegate problem (understanding)
help with delegate problem (understanding)
- Subject: help with delegate problem (understanding)
- From: Theodore Petrosky <email@hidden>
- Date: Thu, 7 Aug 2003 07:46:23 -0700 (PDT)
I am trying to get an NSTextField to respond
different(ly) to the arrow keys. If I use the method
below, I can not seem to get it (the textField) to
work as I expect.
if I use: if (commandSelector ==
@selector(insertNewline:)) //works as expected
but
if (commandSelector == @selector(moveUp:)) or anything
else doesn't.
I would like the textField to respond to the up and
down arrow keys (or page up and down) to scroll
through an NSArray. I don't want a comboBox.
Please... what am I missing?
method in question:
- (BOOL)control: (NSControl *)control textView:
(NSTextView *)textView doCommandBySelector: (SEL)commandSelector
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
_______________________________________________
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.