开发者

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

开发者 https://www.devze.com 2022-12-28 18:40 出处:网络
I would like to create a preferences window like in the standard Mac OS X apps (Safari etc.).I have found r开发者_运维问答esources like DBPrefsWindowController from back in 2008 that matches the Apple

I would like to create a preferences window like in the standard Mac OS X apps (Safari etc.). I have found r开发者_运维问答esources 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


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)
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号