NSOpenpanel "Switching to process" repeatedly

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

  1. BadWolf13 macrumors 6502

    Dec 17, 2009
    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. dergaderg macrumors member

    Feb 9, 2009
    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. pilotError macrumors 68020


    Apr 12, 2006
    Long Island
    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