Mac NSOpenpanel "Switching to process" repeatedly

BadWolf13

macrumors 6502
Original poster
Dec 17, 2009
267
0
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:

[Switching to process 11327]
Running…
[Switching to process 11327]
[Switching to process 11327]
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.
 

dergaderg

macrumors member
Feb 9, 2009
48
0
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
 

pilotError

macrumors 68020
Apr 12, 2006
2,238
4
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...
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.