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.

C# | Visual Basic | Visual C++ |
public delegate NSArray TextViewCompletionsForPartialWordRangeIndexOfSelectedItemEventHandler( NSTextView textView, NSArray words, NSRange charRange, out NSInteger index )
Public Delegate Function TextViewCompletionsForPartialWordRangeIndexOfSelectedItemEventHandler ( _ textView As NSTextView, _ words As NSArray, _ charRange As NSRange, _ <OutAttribute> ByRef index As NSInteger _ ) As NSArray
public delegate NSArray^ TextViewCompletionsForPartialWordRangeIndexOfSelectedItemEventHandler( 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.

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.

- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)