Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: custom text completion with NSTextView delegate
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: custom text completion with NSTextView delegate



Problem understood.

It looks like that NSTextView completion mechanism will not reflect
choice selection (and sometimes even show available completion list)
and perform completion if it invoked (F5 or opt+esc pressed) for only
first letter typed.


On 28-Jul-04, at 10:04 AM, Pavel Kapinos wrote:

> Hi.
>
> I have the following problem.
>
> Text completion is controlled by NSTextView delegate with this method
>
> -(NSArray *)textView:(NSTextView *)textView completions:(NSArray
> *)words forPartialWordRange:(NSRange)charRange
> indexOfSelectedItem:(int *)index
>
> Very small custom list of completions is read from plist file.
> I consistently encounter situations when some completions with
> multiple choices are not reflected by NSTextView during the selection
> and then selected one is not put in text either.
> What it could be causing this?
> Thank you.
>
> Regards,
> P.Kapinos
_______________________________________________
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: 
 >custom text completion with NSTextView delegate (From: Pavel Kapinos <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.