• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
help with delegate problem (understanding)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: Random crash
  • Next by Date: Re: ANNOUNCE: UI Tracking sample code posted for free
  • Previous by thread: Re: What about using xpdf? (was: am i loading this pdf data correctly or not?)
  • Next by thread: Re: ANNOUNCE: UI Tracking sample code posted for free
  • Index(es):
    • Date
    • Thread