NSOpenPanel not showing all Folders in the Left Pane

  • Hi All,
          I've created an Cocoa webkit based application.From my installer
    postscript i'm launching my application. After that if i click the browse
    button which open NSOpenPanel to browse directories , then left pane is not
    showing all the directories.But if i launch my app separately and click the
    same button again , then its showing all the folders in left pane.

          Is there any bug in NSOpenPanel or am i missing any thing.

          For your reference i'm using the following code to open file browser.

    NSOpenPanel *op = [NSOpenPanel openPanel];

    int iResult;

    [op setCanChooseDirectories : YES ];

    [op setCanChooseFiles : NO ];

            iResult = [op runModalForDirectory :NSHomeDirectory () file: niltypes:
    nil];

            Please help me to solve this. Thanks in Advance.

    -JanakiRam.
  • Am 13.10.2007 um 20:32 schrieb JanakiRam:
    > I've created an Cocoa webkit based application.From my
    > installer
    > postscript i'm launching my application.

      Have you checked what the current user is when your scriot runs? My
    guess is that your installer is probably running as root or some
    other weird user. It's not a good idea to launch a GUI app as such a
    user.

    Cheers,
    -- M. Uli Kusterer
    http://www.zathras.de
previous month october 2007 next month
MTWTFSS
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 31        
Go to today