Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

BadWolf13

macrumors 6502
Original poster
Dec 17, 2009
271
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.
 
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
 
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.