Creating Preference Panels for Own Application

Discussion in 'Mac Programming' started by Garrett, Jul 13, 2008.

  1. Garrett macrumors regular

    Joined:
    Apr 4, 2007
    #1
    I am having a struggle trying to find any resources on making preference panels to look like:
    [​IMG]


    I can't seem to figure out if there is some sort of class, because if there is, it's well hidden.

    Seeing as, I am thinking this is some sort of Subclass of NSToolbar, where whenever one is clicked it loads a subview of some sort. I have looked through many applications nib files to try to understand how this interface or animation is created. Any help is much appreciated, I finally feel this is something worthy as I have not been able to find the answer.

    Thanks,
    Garrett
     
  2. Manty macrumors member

    Joined:
    Mar 18, 2008
    Location:
    Lisbon, Portugal
    #2
    Well, I am doing a little SIMBL plugin for safari and I've done a preference module, I think it's the same thing if you want to do it for your app.
    Just search for the NSPreferences header (it's inside AppKit framework) and look at it.
    Also i found this link.
    If you succeed please let me know.

    Manty
     
  3. Mac Player macrumors regular

    Joined:
    Jan 19, 2006
    #3
    There are two main options:

    1: View Swapping with NSToolbar
    2:Tabless NSTabbiew with an NSToolbar as delegate.
     
  4. Manty macrumors member

    Joined:
    Mar 18, 2008
    Location:
    Lisbon, Portugal
    #4
    Doing that you have to do the resize effect right?
     
  5. Garrett thread starter macrumors regular

    Joined:
    Apr 4, 2007
    #5
    How would you do the view animation and the Toolbar image on click? :(
     
  6. Mac Player macrumors regular

    Joined:
    Jan 19, 2006
    #6
    I guess so :(, never heard of NSPreferences before but it looks much simpler.

    Off: Cool another portuguese

    Setting the size each time the user clicks another tab item.
     

Share This Page