• 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
Re: codeSense
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: codeSense


  • Subject: Re: codeSense
  • From: Ofri Wolfus <email@hidden>
  • Date: Thu, 7 Jun 2007 13:45:43 +0300

I have no idea how it's done, but Colloquy ( http://colloquy.info ) does something like that. Try looking at their source.

- Ofri

- - - - - - - - - - - - - - - - - - -
http://www.dpompa.com
- - - - - - - - - - - - - - - - - - -


On 07/06/2007, at 05:11, Tony Cate wrote:

I'd like to give a textfield codeSense type capabilities. Specifically, display a floating box with guesses that change as the user types. A combobox doesn't work because there can be multiple entries in the one textfield: "Robert, Mary", etc. The delegate method: control:textView:completions:forPartialWordRange:indexOfSelectedItem:, doesn't work because it doesn't display a selection list.

What I've tried is creating a small window with a tableView in it. I use the textFields controlTextDidChange delegate to figure out if I need to display the list. As far as it goes this works. The problems are (so far):

1. When xCode puts up the codeSense selection list, the list accepts up/Down arrows and the textView accepts alpha/numeric keystrokes. I don't see how to do that. I sub-classed NSTableView to capture the keystroke, but then what?

2. The tableView doesn't accept the setDoubleAction: method. In fact, to get the single click action to work I had to set it in IB.

Does anyone have suggestions?
_______________________________________________

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

Help/Unsubscribe/Update your Subscription:
40gmail.com


This email sent to email@hidden

_______________________________________________

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

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >codeSense (From: Tony Cate <email@hidden>)

  • Prev by Date: Add two color for records of NSTableView.
  • Next by Date: Re: How to use bindings on a specific array element
  • Previous by thread: Re: codeSense
  • Next by thread: Add two color for records of NSTableView.
  • Index(es):
    • Date
    • Thread