I'm designing a preferences window and I want it to act similarly to the ones on OS X's default programs - only one preferences window can be open at a time, and any attempts to open another one redirect the focus to the current prefs. window.
I realise I could make it modal but I want to know the best ways to handle a problem like this.