NSOpenpanel "Switching to process" repeatedly

Discussion in 'Mac Programming' started by BadWolf13, May 18, 2012.

  1. macrumors 6502

    Joined:
    Dec 17, 2009
    Messages:
    267
    #1
    Hey guys, I'm working on a program that uses an NSOpenpanel to select and load a file. Thing is though, it's working kinda slow. In the console, it shows me:

    Debugging it shows that this is happening while the NSOpenpanel is loading and becoming visible. I've never had an app show that it's switching to the same process repeatedly, so I'm wondering if this is what's making it slow, and if it's supposed to happen.
     
  2. macrumors member

    Joined:
    Feb 9, 2009
    Messages:
    48
    #2
    Same thing happens to me.

    Same thing happens to me. I don't think its a problem. doesn't seem to slow down the program at all
     
  3. macrumors 68020

    pilotError

    Joined:
    Apr 12, 2006
    Messages:
    2,234
    Location:
    Long Island
    #3
    Any I/O is going to cause a task switch, so I would guess that the File I/O would be switching back/forth from your main thread.

    Just a guess...
     

Share This Page