ComboBox does not show inserted item in array

Dear members,
I like to add a new item to my ComboBox programmatically. The idea is, to either use what is already predefined in the list,
or just to enter a new item, which will be available afterwards for selection.
So I created a NSMutableArray MyCat to keep the values, and the ComboBox is bound to an arraycontroller in IB.
When starting the application, I can select items as expected. I can even enter a new item, and the debugging mode
shows me a new entry in NSMutableArray. But this new entry is not available in the list then. How can I "refresh" the list ?
ReloadData is not working...
here are some code nibbles
init- part
        MyCat = [[NSMutableArray alloc] init];
        if (!MyCat) {
            [self release];
            self = nil;
        } else
            [ MyCat addObject:@"Category1"];
            [ MyCat addObject:@"Category2"];
action bound to Combobx, to create a new entry
- (IBAction)add2Cat:(id)sender
    NSString * entry = [sender stringValue];
    if ( ![MyCat containsObject:entry] )
      [MyCat addObject:entry ] ; 
    [sender reloadData];  // does not work

Are you sure the 'sender' in
- (IBAction)add2Cat:(id)sender
is the NSComboBox?  If not, the reload is a noop.
Add this line to check:
NSLog(@"Control is %@", sender);

Similar Messages

  • "ADF Navigation List" does not shows all items that are in table

    Hi
    Thank you for reading my post
    I am tring to use "ADF Navigation List" , (it can be draged from data control platte into a form)
    but when i drag and drop it on my form it does not shows all items that are available in my table ?
    it just shows 10 item when i have 60 record in my Table.
    Thanks

    Hi,
    in the pageDef ile, select the iterator for this list and set the fetch size to -1 (its 10 by default)
    Frank

  • Site Window does not show any item

    Hi,
    My site window does not show any items/folders to modify after I open my site.  I was wondering if there is anyone who can point out what I did wrong.  Usually the site window shows all the contents as soon as the site is opened.  Please help.  Thank you.
    coskinas

    If you look inside the webcontent folder, in Finder view (or Explorer???? if you're using Windows) - anyway, are there in fact files in there?
    Try Site > Update > Refresh all.
    If that doesn't work, try making a new site from existing content, which should give you a new site file (call it something slightly different) sitting beside your old one. I'm guessing here, but it can't hurt.

  • Vertical ComboBox does not show its selected Item's label

    Hello,
    We have created a custom vertical ComboBox.
    Normal combobox has been rotated to -90 degrees.
    It aims to show its selected label and open up the menu at proper x,y coordinate.
    To open up the menu at proper x,y coordinate, we have overriden "downArrowButton_buttonDownHandler" function to move the dropdown accordingly.
    However, the selected label is not visible on screen. Rotated text does not show up without embedding fonts. Hence, We have tried embedding font for the same. It doesn't work though.
    Please help.
    Regards,
    Tanu

    Embedded font isn't working for rotated button/combobox. Though, it works fine with rotated label
    Please refer to below given code:
    <?xml version="1.0"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
      <mx:Style>
         .mystyle1 {
            fontFamily:myPlainFont;
            fontSize: 32pt;
      </mx:Style>
      <mx:Script>
          * Embed a font by name.
         [Embed(systemFont='Arial',
            fontName='myPlainFont',
            mimeType='application/x-font'
         private var font1:Class; 
      </mx:Script>
      <mx:Panel title="Embedded Fonts Using ActionScript">
         <mx:VBox>
            <mx:Label            
                styleName="mystyle1"
                text="Embedded font"
                rotation="15"
            />      
            <mx:Button             
                styleName="mystyle1"
                label="Embedded"
                rotation="15"
                />
         </mx:VBox>
      </mx:Panel>
    </mx:Application>
    Regards,
    Tanu

  • Outlook 2007 instead search does not show the items which are actually present in the inbox and folders

    Scenario:
    when user search for any particular email item by using the sender name or subject name it does not show any result. At the same time it works fine when he specify the search folder(target folder) instead of searching it across all the folders/sub-folders.
    1. We tried reconfiguring the outlook profile but this not fixed the issue.
    2. It is specific to only few users but so far for all the others users it works fine.
    3. Restarted the “Microsoft Exchange Indexer Service” but this is also not fixed the issue.
    4. Hence the outlook reconfigure not worked, rebuild the search index not tried yet, but will give a try.

    Hi,
    Did the user select All Mail Items scope when searching in Outlook?
    In addition, please make sure the user is not searching in a shared mailbox because in some configurations, you are limited to using the
    Current Folder search scope when searching in a shared mailbox.
    Please also let me know the result if you have tried rebuilding index.
    Regards,
    Steve Fan
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Drop Down In List From Lookup Does Not show all items in mobile view

    I have list called "incident".
    I have a list called "locations"
    The "incident" list looks up a value from the "location" list as a dropdown.
    The location list contains 25 building names.
    When I try to fill out the "incident" list in mobile view
    the "location" drop down only shows 16 items. I checked the "locations" mobile view limit and set it to 99 to make sure all would show up.
    The desktop view for the "incident" list shows all 25 buildings from the "locations" list.
    Any advice on how to get those extra 7 locations to show up?
    Jef

    Still don't have an answer. I'm now looking to use a radio button or something to use as a work-around. If I use a lookup and tell it to allow multiple selections (shows as checkbox) it does not show all values in the mobile view.
    If I input each item and choose choice, it only shows up as dropdown. I need radio buttons. If I choose lookup and allow multiple selections, it does not show all the options.
    I need some help on this.
    Jef

  • AWM 10.2.0.1.0A does not show all items in Object View

    Hi All,
    Is there any known limitation in AWM for displaying items in object view? ( I did a search of the forum and couldn't find anything)
    I have imported and Express 6.3.4 Database, and found that AWM does not display all the programs in its list, however in OLAP Worksheet, LISTNAMES shows the program as present as per normal, and I am able to edit it.
    The program only has 175 lines, so I doubt it has something to do with buffer, however the one I know is missing, just so happens to be the last one in the LISTNAMES program list (alphabetically last)
    Regards,
    Imran

    There was a bug logged for this issue. Thanks

  • New Gallery in JDeveloper does not show all items

    My New Gallery dialog box does not contain Web Tier. Please Suggest.
    All I see is
    General
    -Applications
    -Connections
    Business Tier
    -Web Services
    Database Tier
    All Items

    Which JDeveloper version and which packaging?
    Also are you looking at project technology or all technology (tab at the top of your new gallery).

  • List AllItems.aspx automatically redirects some users to AllItems.aspx?FilterField1=ID..... a URL that gives threshold warning and does not show all items

    Hi all,
    At least two of my users have complained that when they go to a particular list URL at
    http://sharepoint/lists/finance/AllItems.aspx
    then they are automatically forwarded to 
    http://sharepoint/lists/finance/AllItems.aspx?FilterField1=ID&FilterValue1=18030&FilterOp1=Geq&OverrideScope=RecursiveAll&FallbackLimit=18030&ProcessQStringToCAML=1#ServerFilter=FilterField1=ID-FilterValue1=18030-FilterOp1=Geq-OverrideScope=RecursiveAll-FallbackLimit=18030-ProcessQStringToCAML=1
    There are no extra web parts or customization on this list view page.
    Any clue why this happens and how can I fix this please?
    Thanks.

    You have to filter the view and show items less than 20000 otherwise you will get same error.
    http://social.technet.microsoft.com/forums/sharepoint/en-US/b8691fd9-63a3-41fb-927f-6c3dc0469c06/sharepoint-2013-list-view-threshold-issues
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

  • Hsd Utilities 9i does not show any items/utilities

    We are working in a non-versioned repository
    i have all privileges for some application systems, but when I start the headstart utilities, no items/utilities are shown (after I selected the GLOBAL SHARED WORKAREA)
    I've opened the form hsustart.fmb in forms builder to find out which queries are used. Only found a query that selects the application systems the current user has access to. Executed it on the database and it returned all applications.
    So now I'm desperate!
    Can anybody help?

    Richard or Marcel,
    Could you please provide me with the log files of the headstart 9i installation that messed things up?
    I myself installed headstart 9i in fresh schema's (hst9i, hsu9i, hdemo9i) and this went well.
    Is it possible when the log files (in headstart root) are not there anymore to try and install headstart again in three new schema's (you can drop them afterwards) and see whether the log files are correct? Did you notice a succesfull import (imp.exe?) It's important that you're sure that the imp.exe mentioned in the installer corresponds with the database version (don't import with 817 versions in a 9i database for instance).
    If you have log files, please email them to mailto:[email protected]
    Regards, Marc
    Headstart team

  • Search Item drop-down does not show any data for Advanced Search.

    Hi,
    I have a requirement to add a new criteria to the existing Advanced Search region of 'My Employee Information' in Manager Self Service responsibility. I substituted the AdvancedSearchVO to include the new column. Using personalization i did the below steps to show the new column in the page,
    1) Created a 'Message Styled Text' item under Table Layout region to display the result. I associated the View Instance (AdvancedSearchVO1) and View Attribute (AttrColumn).
    2) In Advanced Search Panel created a new CriteriaRow and set the 'Search Allowed' property to True.
    3) In Advanced Search Mappings i tried to create the new mapping but the Search Item drop-down does not show any of the CriteriaRow item. But Results Item shows the 'Message Styled Text' item created in step 1 above.
    Any idea what i would be missing becasue of which 'Search Item' property does not show any data?
    I am using OAF version 12.1.1.
    Thanks, Suresh

    Hi,
    I faced the same situation but i still waiting for the solution.. this is my problem's thread..
    Addition of LOV Search Filter using Personalization
    But when i tried to create a new custom page with advanced table and created a new LOV column via personalization. i was able to create new search mapping.. but this is not happening in the seeded page case :(.
    I m also looking for solution...if any one can provide some inputs on it , will be highly appreciated.
    Thanks
    Renu

  • Insert into viewobject in app module does not show entity validation errors

    Hi everybody,
    I am using JDeveloper 10.1.3 and ADF BC/ADF Faces. I want to have a button on one of page and I want that whenever user clicks on this button a records is inserted in a table. so I created an application module service method and exposed it on the client interface and the put it on my page using Data Controls Tab.
    Here is some part of my code in application module :
    public void setMember() {
    HrMembershipsViewImpl membershipView = (HrMembershipsViewImpl)am.findViewObject("HrMembershipsView1");
    HrMembershipsViewRowImpl newRow =(HrMembershipsViewRowImpl) membershipView.createRow();
    newRow.setAttribute("MemberId",memberID); //this.getCode());
    newRow.setAttribute("MembState","1");
    newRow.setAttribute("CardState","1");
    membershipView.insertRow(newRow);
    trans.commit();
    When this method tries to insert a record which violates a validation rule in the Base Entity Object, the screen does not show any error regarding to violating the business rule but nothing is inserted. I changed my code and captured the exception around the commit and I found that a JBO-27023 Exception happened after commit ( which was very surprise since the page does not show any error).
    Now I can change my code to to the following to show that error happened.
    public void setMember() {
    try {
    trans.commit();
    catch (JboException ex) {
         getDBTransaction().rollback();
         throw new JboException ("There is an error during commit");
    throw ex;
    But I believe it shouldn't be like this. Normally, we should be able to insert programmatically in a view and if the business rules are violated we should get the violation error messages. If I use the above mentioned method we can not understand what business rules are violated.
    Does anybody know what is wrong with my solution? I have seen a lot of times that using application module is the best way for adding functionality to the application pages but I really feel that something should be wrong if we can not get business rule violation messages.
    Any help or references would be highly appreciated.
    Thanks in advance,
    Navid

    Hello Navid,
    it should work without try-catch.
    1. When you add try-catch, does your error message appear on the page?
    2. Does your page contains af:messages component?
    3. Does your button have any navigation to another page?
    Rado

  • SSIS Data flow item does not show on the Tools Choose Tools Item

    I would like to add share point to my data source for my SSIS project.
    After I installed Share Point Source and Destination list, I went to Tools Choose Tools Item, but SSIS Data Flow tab does not show. I went to SSIS Tools box, but the components are not there.
    I would like to know are there any way to add Share Point Data source using SSIS.
    Your help and information is great appreciated,
    I use SQL Server 2012 and VS 2010.
    Regards,
    Souris,

    Hi Souris,
    I have installed the SharePointListAdaptersSetup-Beta-2012-01-28.msi in my SQL Server 2012 test environment, the SharePoint List Source and Destination adapters is listed in the Common type items of the SSIS Toolbox. To narrow down the root cause, please
    try the following steps:
    Make sure the SharePointListAdapters.dll exists in the C:\Program Files (x86)\Microsoft SQL Server\110\DTS\PipelineComponents folder.
    Make sure it is installed to GAC successfully, the SharePointListAdapters.dll should exist in C:\Windows\Microsoft.NET\assembly\GAC_MSIL\SharePointListAdapters\v4.0_1.2012.0.0__f4b3011e1ece9d47 folder.
    Refresh the Toolbox and check the Common type items.
    Since the SharePoint List Adapter is a third-party component, I would suggest you ask a question in its dedicated discussion plate:
    http://sqlsrvintegrationsrv.codeplex.com/discussions
    Regards,
    Mike Yin
    TechNet Community Support

  • I recently deleted approximately 80gb of space on my hard drive by dragging items to the trash and then emptying the trash.  However, the space does not show up on my HD as free. Can anyone point me in the right direction?

    I recently deleted approximately 80gb of space on my hard drive by dragging items to the trash and then emptying the trash.  However, the space does not show up on my HD as free. Can anyone point me in the right direction?

    If you are using File Vault, turn it off.  To find out where all the extra space is use any of these products - Disk Inventory X
    OmniDiskSweeper
    WhatSize
    SpaceControl

  • What causes iphone 3gs every time I insert the SIM card does not show the screen or no service?

    what causes iphone 3gs every time I insert the SIM card does not show the screen or no service?

    If the iPhone was unlocked unofficially, it has been locked to original carrier again.

Maybe you are looking for