How to open the NSComboBox list programmatically

Been struggling with this all day. Perhaps I'm barking up the wrong tree.
This is the scenario: I have a database of 8,000 items, represented to the user as text. The user has to pick one. I'm thinking NSComboBox. But 8,000 items is a lot, so I want to give the user some help. The user starts typing in the combo box. I have a fairly nice search algorithm (with multiple words, typo variations, negatives etc), that allows me to reduce the list in real time as the user is typing. By the time the user has typed five or six or so characters, the list is pretty short, and I (or rather the program) whip open the combo box list, as to invite the user to pick one of the remaining items.
Most of this scheme is working, except the part where I open the ComboBox list. Yes, I know the user can hit the down arrow key. I know that, but the user perhaps doesn't.
What is the best way to open the NSComboBox list programmatically? I Googled to the best of my ability but could not find a solution.
Is it not possible? Should I be using an NSSearchField instead? Does it give me full control over the list of choices? Is it suitable in this case? NSComboBox seems more intuitive, since you are really picking and item from a list.
What are my options?
-Ron.
(I'm a novice WRT Obj-C, Cocoa, native OS X development, 30+ year software veteran otherwise)

Hi Ron -
I searched on "nscombobox open programmatically" and found this: [http://www.mail-archive.com/[email protected]/msg13021.html]. If you follow that thread backwards you'll find a solution similar to yours using CGPostKeyboardEvent. But the OP preferred the solution at the link which uses the Accessibility API. Since a documented API is usually a better choice than simulating key strokes, you might want to take a look at that page. I haven't tried either solution; was just doing some backup Googling for you.
\- Ray

Similar Messages

  • How to open the OWB Design Center in Linux

    Hi All,
    Currently, our OWB10.2. is installed in the Window2003 server, I could login the servers and go to Program -> OWB -> Design Center to open the Design center and create my own project or mapping.
    We just install OWB 10.2.0.4 in a Linux Ret Hat server, I don't know how to open the Design Center from the Linux.
    Should I open it from the Linux server(How), or I could remotely launch the Design Center from my PC (Window XP) to create my project (actually try to migrate project from the weindow2003 server to Red hat Linux server)?
    Thanks
    Kevin

    Hi David,
    I found the file and executed it, but got this list of errors, do you have any idea?
    Thanks
    Kevin
    [kchia@odsdev01 unix]$ ./owbclient.sh
    StaticLoader: Setting locale to en_US_
    java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at Launcher.main(Launcher.java:167)
    Caused by: java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
    at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
    at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:134)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:141)
    at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:62)
    at sun.awt.motif.MToolkit.<clinit>(MToolkit.java:81)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:141)
    at java.awt.Toolkit$2.run(Toolkit.java:748)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:739)
    at java.awt.Component.getToolkitImpl(Component.java:830)
    at java.awt.Component.getToolkit(Component.java:814)
    at java.awt.Component.createImage(Component.java:2632)
    at oracle.wh.ui.common.CommonUtils.getIcon(CommonUtils.java:622)
    at oracle.wh.ui.framework.beans.splash.SplashBean.setImageLoc(SplashBean.java:111)
    at oracle.wh.ui.framework.beans.splash.SplashBean.<init>(SplashBean.java:42)
    at oracle.wh.ui.framework.StaticLoader.main(StaticLoader.java:67)
    ... 5 more
    java.lang.reflect.InvocationTargetException

  • Background job cann't open the Spool list, the error as below.

    Hi, experts,
    My background job 'Z1RM0063' couldn't open the spool list, the error as below:
    ' The selected section of the spool request 20,004
    in SYSTME SID is empty.'
    Who could tell me this is why ?
    Thank you very much in advance,
    B.R
    Michael

    Hi Michael,
    Its very difficult to tell... seems to be a custom job, what program is running?.. Does the spool that the job is trying to read still exists?...
    Can you please post more details?
    Regards
    Juan

  • How to use the Pull List in Discrete Scenario?

    Hi Gurus,
    I am using pull list MF60 in REM.
    How to use the Pull List for creating material reservations in Discrete Scenario also?
    Anyone used this Pull list in discrete, pl share.
    How is helpful in discrete scenario?
    Srini

    Hello,
    You can use Pull list for st.location transfers, if you are into WM managed then this pull list used a lot.
    You can use the pulllist to the max. extent. But with IM managed plant the use is limited and this is used only for storage location transfers.
    Issue cannot be done for Production orders. You can bring the materials to the req. storage locations and after that you have issue in the order or manually for the order.
    Regards,
    Manick.

  • HT4796 I have made a file using the Pages app.I mailed it to a friend.When she tried opening the same file on her pc at home , It did not open.Please help me as to how to open the file in the Microsoft word format on her pc.

    I have made a file using the Pages app.I mailed it to a friend.When she tried opening the same file on her pc at home , It did not open.Please help me as to how to open the file in the Microsoft word format on her pc.

    Send it as a PDF.

  • How to get the whole list of Iview Templates

    Hi,
    when I navigate:
    Portal Content -> Content Provided by SAP -> Templates -> Iview Templates
    I get a long list of templates including Url Iviews etc
    But, when I try to create my own Iview, the list of potential templates is much smaller, mainly including only the SAP related templates, BSP, Query, ITS etc.
    Does anyone know how to make the full list of Iview Templates available for the Iview creation wizard ?
    Thanks,
    Tomas.

    Hi Tomas,
    which iView templates are offerd within the iView creation wizard is determined by SystemAdmin -- Permissions -- Portal Permissions -- Applications.
    Normally, you will have to have SuperAdminRole to see/change these settings.
    Hope it helps
    Detlev
    PS: Please consider to reward points for helpful answers. Thanks in advance!

  • How to set the conversation id programmatically in a BPM process

    Hi all,
    I am using BPM/SOA 11g PS3.
    Is it possible to set the conversation id programmatically in a BPM process starting with a none start event?
    I know I can set it easily if I use a BPM process starting with a message start event.
    All I have to do is set it in the "wsa:MessageID" node in SOAP Header when I initiate the process instance.
    However, I have no idea how to set the conversation id programmatically in a BPM process starting with a none start event.
    I looked for if there is any appropriate method in the Java api for the process instance management, such as IInstanceManagementService and CompositeInstance, but no method seems to be appropriate.
    Does anyone know how to do this?
    Regards,
    Kenji
    Edited by: Kenji Imamura on 2011/04/20 0:10

    Hi fifty,
    Did you get a solution to the above problem you have mentioned? I have a similar issue i am trying to fix.
    I have a webservice call in a process activity and if the call does not work i get a soap fault and the fuego.lang.ComponentExecutionException . My process requires that i catch the exception infact any kind of exceptions that occur on that call and perform another activity in the process.
    I have defined an exception handler at the activity level for java.lang.Exception and java.lang.RunTimeException.
    i don't see anything in the catalog which would handle the SOAP fault OR the componentexception.

  • Hi  can any body please tell me how to open the .exe files in mac and why it is not supported with unarchiever app , also i am not able to run and dvd's in my mac its not accepting any cd's or dvd'd why do i need to do some settings for it ?

    Hi  can any body please tell me how to open the .exe files in mac and why it is not supported with unarchiever app , also i am not able to run and dvd's in my mac its not accepting any cd's or dvd'd why? do i need to do some pre defined  settings to run the cd's and dvd's ?

    A .exe file is a Windows executable. OS X does not run Windows programs. If you need to use .exe files then you will need to install Windows on your Mac:
    Windows on Intel Macs
    There are presently several alternatives for running Windows on Intel Macs.
    Install the Apple Boot Camp software.  Purchase Windows XP w/Service Pak2, Vista, or Windows 7.  Follow instructions in the Boot Camp documentation on installation of Boot Camp, creating Driver CD, and installing Windows.  Boot Camp enables you to boot the computer into OS X or Windows.
    Parallels Desktop for Mac and Windows XP, Vista Business, Vista Ultimate, or Windows 7.  Parallels is software virtualization that enables running Windows concurrently with OS X.
    VM Fusionand Windows XP, Vista Business, Vista Ultimate, or Windows 7.  VM Fusion is software virtualization that enables running Windows concurrently with OS X.
    CrossOver which enables running many Windows applications without having to install Windows.  The Windows applications can run concurrently with OS X.
    VirtualBox is a new Open Source freeware virtual machine such as VM Fusion and Parallels that was developed by Solaris.  It is not as fully developed for the Mac as Parallels and VM Fusion.
    Note that Parallels and VM Fusion can also run other operating systems such as Linux, Unix, OS/2, Solaris, etc.  There are performance differences between dual-boot systems and virtualization.  The latter tend to be a little slower (not much) and do not provide the video performance of the dual-boot system. See MacTech.com's Virtualization Benchmarking for comparisons of Boot Camp, Parallels, and VM Fusion. Boot Camp is only available with Leopard or Snow Leopard. Except for Crossover and a couple of similar alternatives like DarWine you must have a valid installer disc for Windows.
    You must also have an internal optical drive for installing Windows. Windows cannot be installed from an external optical drive.

  • How to open the file types of iOSApp(ipa),EPUBFile(.epub) in windows 7(32 bit)

    How to open the file types of iOSAPP(ipa),EPUBfile(.epub) in windows 7(32 bit)

    iOS apps can be added to an iTunes library and thereafter transferred to an iOS device. They cannot be opened directly on a PC.
    epub files can be added to an iTunes library, and thereafter transferred to an iOS device where they can be read with the iBooks application. Files protected with Apple's DRM cannot be opened directly on a PC, though there are programs such as Kindle and Calibre that will open non-protected epub files.
    tt2

  • How to open the crystal reports 2008 in CRYSTAL REPORTS ENTERPRISE 4.0

    Hi All,
    Can you please let me know how can migrated the crystal reports from BO XI 3.1 to SAP BO 4.1 and after migrate how to open the crystal reports 2008 in CRYSTAL REPORTS ENTERPRISE 4.0.
    can you please help on this and if document please share.
    Thanks,
    Rajesh

    Use the upgrade management tool to move from 3.1 reports to BO 4.1. After migration, open the report in crystal enterprise 4.0, you will get a message saying that the report will be converted to latest version, will not be able to view from older version after converting. (Similar words- not sure exact words).

  • How to open the Url type in Attachments Table

    Hi All,
    If we attached the any files, files are stored in the fnd_lobs table, pickup the data from the fnd lobs table and stored in the local system but if attached the url type how to open the url type.is there any standard ?
    Thanks,
    Venkat

    You can do it one of two ways:
    1. Insert some CSS that will change the target to "_new".
    2. Change the field that the user enters information in to a single line of text, then create a calculated column that is:
    =CONCATENATE("<a href=",[URL Field]." target=new>Click here</a>")
    Format that as a number.
    Andy Wessendorf SharePoint Developer II | Rackspace [email protected]

  • How to set the DFF Attribute Programmatically?

    hi
    how to set the DFF Attribute Programmatically in Process Request of CO
    thanx

    Hi
    Do u want to set the value in DFF Programmatically ?
    u can capture the VO used for DFF and set the the value in controller.
    Thanks

  • How to open the Data Perspective function of Smart View in EAS?

    How to open the Data Perspective function of Smart View in EAS?
    I use my Smart View to connect one ASO cube, and I found the button of Data Perspective is grey. It's not available.
    In Smart View Users' Guide, it says:
    Note: Data perspective may not be enabled in your Smart View system. Your options for data perspective are enabled and configured by the administrator in Oracle Essbase Administration Services.
    But I could not find how to configure the this option in EAS.
    Does anyone know about this?

    I have already turned on the varying attributes function, but the data perspective button is still grey, not available.

  • How to open the second VM in Oracle 11gR2 2-nodes RAC system ?

    Folks,
    Hello. I have been installing Oracle Database 11gR2 RAC system using 2 nodes that are 2 Virtual Machines (rac1 and rac2) on the top of VMPLayer 3.
    I follow the tutorial http://appsdbaworkshop.blogspot.com/2011/10/11gr2-rac-on-linux-56-using-vmware.html to do.
    The original Virtual Machine rac1 has run correctly. I configure rac1 network (eth0 and eth1) by opening VM rac1 and using command "[root@rac1\] #neat" as root user to invoke the network configuration.
    For the second Virtual Machine rac2, I simply copy all files in "C:\VM\rac1" into "C:\VM\rac2". Then I have done the following:
    1) In the directory "C:\VM\rac2", rename "rac1.vmx" to "rac2.vmx".
    2) Change display name from "rac1" to "rac2" in the file "rac2.vmx".
    The next thing to do for rac2 is to open the Virtual Machine rac2 and configure its network (eth0 and eth1) by using the command "[root@rac2\]#neat" as root user.
    But by this step, I don't understand how to open the Virtual Machine rac2 so that can configure its network (eth0 and eth1).
    Can any folk tell me how to open the VM rac2 to configure its network by this step ?

    Hi,
    But by this step, I don't understand how to open the Virtual Machine rac2 so that can configure its network (eth0 and eth1)."rac2" is a new virtual machine after you copied and changed the display name and you need to add this in the vmware enventory (I am talking about vmware server and vmware player should have the same way as it is supposed to run multiple vritual machines on your PC). Then it will be visible it to you. Now start this new machine and edit the network configuration.
    Salman

  • How to enable the full list of developer options on A806?

    How to enable the full list of developer options
    Moderator note:Moved from http://forums.lenovo.com/t5/Lenovo-Android-based-Tablets/No-Animation-speed-options/td-p/1359241
    Edited & created a new thread.

    -Go to menu, settings,
    -about phone
    -scroll to the bottom and find "build number"
    -tap it 7 times (upon completion, it will say that you're a developer)
    -the menu is now near the bottom of the main settings menu (just above about phone)

Maybe you are looking for

  • Issue regarding CRM service order status profile

    Hi Guys, Currently we are working on CRM 5.0 now the problem is when we create a service order then the sytem is throwing an error stating that Diagnosis Some system statuses cannot be set manually, but can only be set internally by the system. This

  • Disassembly Order - System Can't  calculate the cost of Output Item

    Dear All, I have a problem with Dis-assembly order in production module,My scenario is I have two output item ABC1 And ABC2 and One Input Item ABC. I have Made The Production BOM  ABC(1 Qty ) = ABC1(1 Qty) + ABC2(1 Qty) After it I have purchase the A

  • OWB Process Flow!!

    HI We have a situation like we have to run the mapping paralelly, Also we want to process mapping in the batch by batch. What I mean here is that, depending on the data volume we allocate the data into different batches and we run certain number of b

  • Notebook G60-213EM.....Won't start up. \Windows\system32\drivers\mpfilter.sys

     I can't get past the opening page. If i F8 and select any of the safe mode options, it gives a status of 0xc0000221 and asks for installation discs. I haven't got any.  Where can I download to a disc then transfer it to the notebook? Can't remember

  • Windows 7 or 8  and Pro or not for Bootcamp

    I need to partition with Bootcamp and need to put windows on to run my Quicken 2013.   Should I get windows 7 or 8 and Pro version or not? Thanks