Luke
Luke

Reputation: 6315

How do I create a preferences window in Objective-C?

I would like to create a preferences window like in the standard Mac OS X apps (Safari etc.). I have found resources like DBPrefsWindowController from back in 2008 that matches the Apple HIG.

Just wondering if there is a new way to accomplish this? I can't locate any standard windows in Interface Builder so I assume Apple doesn't provide those, nor can I locate a official Apple sample code for providing this standard UI.

Thank you

Upvotes: 7

Views: 3034

Answers (1)

Richard H.
Richard H.

Reputation: 304

It seems DBPrefsWindowController is no longer available.

For now, I would recommend the up to date RHPreferences framework.

Available on GitHub. BSD Licensed.

It’s a simple and easy Preferences window controller with multiple tabs for your next Mac application.

It also provides:

  • Auto resizing between different sized tab views (With animation)
  • Custom NSToolbarItem support
  • Persistence of the last used tab
  • Support for placeholder NSToolbarItems (eg NSToolbarFlexibleSpaceItemIdentifier & NSToolbarShowFontsItemIdentifier)

Upvotes: 3

Related Questions