MonobjcMonobjc Documented Class Library
TextViewCompletionsForPartialWordRangeIndexOfSelectedItem Method (textView, words, charRange, index)
NamespacesMonobjc.AppKitINSTextViewDelegateTextViewCompletionsForPartialWordRangeIndexOfSelectedItem(NSTextView, NSArray, NSRange, NSInteger%)

Returns the actual completions for a partial word.

Original signature is '- (NSArray *)textView:(NSTextView *)textView completions:(NSArray *)words forPartialWordRange:(NSRange)charRange indexOfSelectedItem:(NSInteger *)index'

Available in Mac OS X v10.3 and later.

Declaration Syntax
C#Visual BasicVisual C++
NSArray TextViewCompletionsForPartialWordRangeIndexOfSelectedItem(
	NSTextView textView,
	NSArray words,
	NSRange charRange,
	out NSInteger index
Function TextViewCompletionsForPartialWordRangeIndexOfSelectedItem ( _
	textView As NSTextView, _
	words As NSArray, _
	charRange As NSRange, _
	<OutAttribute> ByRef index As NSInteger _
) As NSArray
NSArray^ TextViewCompletionsForPartialWordRangeIndexOfSelectedItem(
	NSTextView^ textView, 
	NSArray^ words, 
	NSRange charRange, 
	[OutAttribute] NSInteger% index
textView (NSTextView)
The text view sending the message.
words (NSArray)
The proposed array of completions.
charRange (NSRange)
The range of characters to be completed.
index (NSInteger%)
On return, the index of the initially selected completion. The default is 0, and –1 indicates no selection.
Return Value
The actual array of completions that will be presented for the partial word at the given range. Returning nil or a zero-length array suppresses completion.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.AppKit (Module: Monobjc.AppKit)