Re: Text fields not getting their values if
Re: Text fields not getting their values if
- Subject: Re: Text fields not getting their values if
- From: Shane Stanley <email@hidden>
- Date: Wed, 17 Feb 2010 14:18:48 +1100
- Thread-topic: Text fields not getting their values if
On 17/2/10 1:38 PM, "Deivy Petrescu" <email@hidden> wrote:
> Is there a way to set an autocomplete option for a text field?
You can, but it involves adding some Objective-C to your project.
Essentially, you have to make a subclass of NSFormatter, and implement
isPartialStringValid:proposedSelectedRange:originalString:originalSelectedRa
nge:errorDescription:
The problem is that this method involves passing a pointer to a pointer
(NSString **), which ASObjC doesn't support at this stage. (It also involves
an NSRangePointer, which is probably also unsupported.)
> For instance, as the Safari URL field in the tool bar.
In that case, you'd need to implement the menu as well.
A single-column table might be an easier choice...
--
Shane Stanley <email@hidden>
AppleScript Pro, April 2010, Florida <http://www.applescriptpro.com>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
applescriptobjc-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden