• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Preference dialog
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Preference dialog


  • Subject: Re: Preference dialog
  • From: Jeremy Dronfield <email@hidden>
  • Date: Sun, 29 Feb 2004 19:56:19 +0000

On 29 Feb 2004, at 6:39 pm, Steve Palmer wrote:

I'm looking for some sample code that implements a Preferences dialog like the one in Safari or Mail. I've seen an implementation from Omnigroup but that's a huge amount of code with a lot of dependencies on other part of the Omni framework that I don't want to start from that. I'm really just looking for something very simple.

Don't be intimidated by the size of the Omni frameworks. I haven't looked at the Preferences subproject, but it's usually not difficult to slice chunks off the frameworks and snip off any extraneous dependencies. On the other hand, UKPrefsPanel is probably your best bet for ease of use.

Mail and Safari's preferences windows use multiple nibs. Each nib represents one "pane" of the prefs window. The nib contains a window with its controls grouped in an NSBox. It seems that this box view is added as a subview to the preferences window when its corresponding icon is clicked, and the window resized with setFrame:display:animate:. Definitely not simple, and probably only worthwhile if you're dealing with a hefty slab of user preferences.

I could have a try and writing my own but it seems like this style of preferences is fairly ubiquitous that I'm a little surprised that it isn't part of the Cocoa AppKit framework.

Stick around. You'll come across quite a few ubiquitous features which aren't provided ready-cooked in the AppKit. That's Cocoa-biz.

-Jeremy

========================================
email@hidden

theLocustFarm.net:
- fractious fiction at http://freespace.virgin.net/jeremy.dronfield
========================================
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >Preference dialog (From: Steve Palmer <email@hidden>)

  • Prev by Date: Re: Preference dialog
  • Next by Date: Re: Extending NSMutableDictionary what am I doing wrong?
  • Previous by thread: Re: Preference dialog
  • Next by thread: What are argc and argv from Finder (was "Voodoo...")
  • Index(es):
    • Date
    • Thread