Multiple "Open Recent" menus;

  • Hello all,

    I have a weird issue with Open Recent and NSDocumentController.

    You can easily see the problem by performing a simple test. If you
    have an app that has an Open Recent menu item in the MainMenu.nib,
    open IB and copy/paste it in the File menu. So now your File menu
    should have 2 Open Recent menus (and they both should have the "Open
    Recent Menu" radio checked on the IB Attributes inspector).

    Now when you run your app, you will see that only the first one gets
    populated with your recent docs. The second one only has the Clear
    menu item. However, they are both hooked up to the same document
    controller, since if you Clear one, the other one responds

    So yah, that example is a bit out there, and its not my real
    situation (no one really wants to Open Recents right next to each
    other), but it is a quick way to demonstrate the problem. Anyone know
    what is going on with this and why only the first menu shows the list
    of recent docs as defined in the NSRecentDocumentRecords key in the
    prefs file? Does the NSDocumentController only have a reference to
    one NSMenu that it manages? If so, can I change that reference somehow?

    Note that this also is a problem if you manually add an Open Recent
    menu item through the instructions in

      - Matt
previous month november 2007 next month
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30    
Go to today