Quantcast
Channel: Vincent Gable's Blog » Multi-Core
Browsing all 6 articles
Browse latest View live

NSAlert + Sheets + Threads = Inexplicable Bugs

UPDATED 2008-12-26: in general, all AppKit code should be called on the main thread. Problem: When using an NSAlert to display a sheet in a multi-threaded application, unexpected badness can happen. I...

View Article



Fast Enough or Not Enough Fast?

…people are now willing to make trade-offs against performance. For the entire history of the PC industry, computers have been too slow, so trade-offs were made in favor of faster CPUs: higher prices...

View Article

How To Multi

Avoid distributed computing unless your code is going to be run by a single client with a lot of available hardware. Being able to snarf up CPU cycles from idle hardware sitting around in the user’s...

View Article

Always Update the View From the Main Thread

I wish I’d read this years ago: AppKit, the GUI framework, is not thread safe. In order for things to work properly, you (almost) always need to update GUI classes from the main thread –Dave Dribin...

View Article

Thread Local Storage in Cocoa

[[NSThread currentThread] threadDictionary] gives you an NSMutableDictionary that you can use for thread-specific storage.

View Article


The Arrow Points Up

And so continues one of the biggest constants in software development: the unerring sense among developers that the level of abstraction they’re current working at is exactly the right one for the...

View Article
Browsing all 6 articles
Browse latest View live


Latest Images