• 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: Text fields not getting their values if
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: Text fields not getting their values if (From: Deivy Petrescu <email@hidden>)

  • Prev by Date: Re: Text fields not getting their values if
  • Next by Date: Writing to a text file?
  • Previous by thread: Re: Text fields not getting their values if
  • Next by thread: Writing to a text file?
  • Index(es):
    • Date
    • Thread