Jeremy,

I would go with a toolbar that swaps views.

I think tab views are a fine control but before NSViewController, they were 
used in a tab-less style in order to make it easy to swap views. I think that 
approach is outdated. I would use a simple toolbar which you can setup in IB 
and swap your various views. Use NSViewControllers to manage the views and 
resize the window accordingly. I haven't looked at preferences controllers out 
there but it's such a simple thing to load a view. You hook everything up to 
shared defaults and for all preferences, read the value from defaults. You only 
have to deal with things if a default change needs to take place immediately. 
Once you have a window that loads views and sizes itself, you just make views 
and add buttons.

Hope this helps
Marc

El Jun 20, 2010, a las 5:53 PM, Jeremy Matthews escribió:

> In my project I have some preferences in a tabview style, but I'd like to 
> move towards a more mac-like interface for this (Safari, Mail)...probably 
> using NSToolbar.
> 
> I've seen examples (usually pretty dated) that reference a few different 
> styles:
> 
> 1) Tabless NSTabView using a Toolbar with actions (selectTabViewItem:Blah)
> 2) Some third-party frameworks and code (BWToolkit - buggy, 
> SS_PrefsController, DBPrefsWindowController, etc)
> 3) Private APIs from Apple (NSPrefernces)
> 4) Toolbar-only approach
> 
> I'd read through the archives...but see mostly older posts, so I'd like to 
> see what people are doing these days...
> 
> I was wondering about the experiences out there...and any best practices 
> recommendations. I see a lot of projects using the last method, and using 
> code more than IB to put it together - love to know what people are using out 
> there!
> 
> Thanks,
> jeremy
> 
> _______________________________________________
> Cocoa-students mailing list
> cocoa-stude...@mylist.net
> http://mylist.net/listinfo/cocoa-students

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to