• 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: Display text suggestions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Display text suggestions (From: Wezzy <email@hidden>)

  • Prev by Date: NiftyMatrix
  • Next by Date: menu bar without nib
  • Previous by thread: Display text suggestions
  • Next by thread: NiftyMatrix
  • Index(es):
    • Date
    • Thread