Re: Display text suggestions
Re: Display text suggestions
- Subject: Re: Display text suggestions
- From: Matt Gemmell <email@hidden>
- Date: Wed, 31 Dec 2003 03:47:35 +0000
On 31 Dec 2003, at 2:47 am, Wezzy wrote:
Hi all,
i have to implement something similar to code' suggestion displayed by
XCode. Those that appears when you press tab key inside a messate [].
It looks like a floating NSTableView, but i have no idea about
floating windows.
Any suggestions, example ?
In OS X 10.3 or later, you don't need to implement it yourself. Take a
look at the NSTextView documentation, specifically this method:
- completionsForPartialWordRange:indexOfSelectedItem:
<file:///Developer/Documentation/Cocoa/Reference/ApplicationKit/
ObjC_classic/Classes/NSTextView.html#//apple_ref/doc/uid/20000373/
BBCEDDCG>
For some more info, read the "Text Completion" section of the 10.3
AppKit Release Notes:
<file:///Developer/Documentation/ReleaseNotes/Cocoa/AppKit.html>
Cheers,
-Matt
--
Matt Gemmell
Irate Scotsman
http://iratescotsman.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.