• 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
a kind of auto complete behavior of NSTextview: how to do that?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

a kind of auto complete behavior of NSTextview: how to do that?


  • Subject: a kind of auto complete behavior of NSTextview: how to do that?
  • From: Alex.Wang <email@hidden>
  • Date: Thu, 8 Jan 2009 02:03:55 +0000

Hi everyone.I am providing a code editor for an IDE.
I am missing a feature in Xcode 2.X. That is: when user type a keyword in
the text editor, the auto complete list "automatically" pop up. For
example:
Assuming we are going to type "NSWindow":
after the user type 'N' 'S' 'W', the list shows up immediately without any
intervene. I mean the user doesn't need to press the "Esc" key to tell the
list to show itself. (In Xcode 3.X, you should press the 'Esc' manually to
call the auto complete list.)

Is there any way to do that? I can't find the delegate method:
"- (NSArray<file:///Developer/Documentation/DocSets/com.apple.ADC_Reference_Library.CoreReference.docset/Contents/Resources/Documents/documentation/Cocoa/Reference/Foundation/Classes/NSArray_Class/Reference/Reference.html#//apple_ref/doc/c_ref/NSArray>
*)textView:(NSTextView
*)*textView* completions:(NSArray<file:///Developer/Documentation/DocSets/com.apple.ADC_Reference_Library.CoreReference.docset/Contents/Resources/Documents/documentation/Cocoa/Reference/Foundation/Classes/NSArray_Class/Reference/Reference.html#//apple_ref/doc/c_ref/NSArray>
 *)*words*forPartialWordRange:(NSRange<file:///Developer/Documentation/DocSets/com.apple.ADC_Reference_Library.CoreReference.docset/Contents/Resources/Documents/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html#//apple_ref/doc/c_ref/NSRange>
)*charRange* indexOfSelectedItem:(NSInteger *)*index*"
 much useful for that, since it requires users to press the 'Esc' key.

Any answer is greatly appreciated. Thank you.

--
Best regards.
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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

  • Prev by Date: Re: How to obtain icon displayed by Finder for a file
  • Next by Date: Re: NSOperation Question
  • Previous by thread: Re: NSOutlineView indentation
  • Next by thread: -[NSView window] returns nil if its NSTabView not selected
  • Index(es):
    • Date
    • Thread