Women in Technology

Hear us Roar



Article:
  Adding a Preferences Window to Your Application
Subject:   other types of preferences
Date:   2001-10-29 17:02:34
From:   dhuntsin
This article was very helpful in setting up a preferences window, and in showing how to handle preferences stored as Strings, but what about a more simple example, using other types of preferences.


For instance, what if I had a simple preference panel that stored an int and a BOOL. I am fairly new to XML, so what would the XML look like. Also, how would my awakeFromNib differ from the method in the above example?


Thanks!

Full Threads Oldest First

Showing messages 1 through 1 of 1.

  • other types of preferences
    2003-08-30 15:55:33  anonymous2 [View]

    Don't worry about the XML. Plist XML stores data as dictionaries - look inside one for yourself. All you need to (and should) do is interface with NSDictionary and NSMutableDictionary. Check those two classes out and most of your questions will be answered. Cheers.

    About this tutorial: Personally I think readers would rather see a tutorial on how to create those new fangled prefs boxes we see in Mail and Safari.