• This repository has been archived on 08/Oct/2021
  • Stars
    star
    108
  • Rank 321,259 (Top 7 %)
  • Language
    Objective-C
  • License
    MIT License
  • Created almost 10 years ago
  • Updated over 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

CCNPreferencesWindowController is an Objective-C subclass of NSWindowController that automatically manages your custom view controllers for handling app preferences.

CocoaPod version Travis CI build status Carthage compatible

Overview

CCNPreferencesWindowController is an Objective-C subclass of NSWindowController that automatically manages your custom view controllers for handling app preferences.

Here is a shot of the included example application:

CCNPreferencesWindowController Example Application

CocoaPods

You can add CCNPreferencesWindowController by using CocoaPods. Just add this line to your Podfile:

pod 'CCNPreferencesWindowController'

Carthage

Add CCNPreferencesWindowController to your Cartfile to have it installed by Carthage.

github "phranck/CCNPreferencesWindowController" >= 1.4.3

Build it by running the command carthage update, then drag CCNPreferencesWindowController.framework into your Xcode project.

Usage

- (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
    // init the preferences window controller
    self.preferences = [CCNPreferencesWindowController new];
    self.preferences.centerToolbarItems = YES;	// or NO

    // setup all preference view controllers
    [self.preferences setPreferencesViewControllers:@[
        [PreferencesGeneralViewController new],
        [PreferencesNetworkViewController new],
        [PreferencesBonjourViewController new]
    ]];
}

- (IBAction)showPreferencesWindow:(id)sender {
    [self.preferences showPreferencesWindow];
}

That's all.

Requirements

CCNPreferencesWindowController was written using ARC and "modern" Objective-C 2. At the moment it has only support for OS X 10.10 Yosemite. OS X 10.9 Mavericks should work too, but it's untested yet.

Contribution

The code is provided as-is, and it is far from being complete or free of bugs. If you like this component feel free to support it. Make changes related to your needs, extend it or just use it in your own project. Pull-Requests and Feedbacks are very welcome. Just contact me at [email protected] or send me a ping on Twitter @TheCocoaNaut.

Documentation

The complete documentation you will find on CocoaDocs.

License

This software is published under the MIT License.

Software that uses CCNPreferencesWindowController

  • Review Times - A small Mac tool that shows you the calculated average of the review times for both the Mac App Store and the iOS App Store
  • WhatRoute - WhatRoute is a network diagnostic utility designed for Apple Macintosh computers. Primarily it provides a Traceroute function, but can also perform Ping, Domain Name Service queries, Whois queries and monitor the traffic to and from your computer.

More Repositories

1

CCNStatusItem

CCNStatusItem is a subclass of NSObject to act as a custom view for NSStatusItem. It supports a customizable statusItemWindow handling any viewController for presenting the content.
Objective-C
222
star
2

CNGridView

CNGridView is a (wanna be) replacement for NSCollectionView. It has full delegate and dataSource support with method calls like known from NSTableView/UITableView.
Objective-C
150
star
3

CNSplitView

CNSplitView is an feature enhanced derivative of NSSplitView. It has support for sticky top or bottom toolbars for each of its subviews.
Objective-C
120
star
4

CNUserNotification

CNUserNotification is a kind of proxy to give OS X Lion 10.7 โ€žthe sameโ€Ÿ support for user notifications like OS X Mountain Lion 10.8 does. Benefits are also a bit more flexibility since you are able to define a custom banner image or variable dismiss delay times.
Objective-C
93
star
5

CCNNavigationController

An Mac OS X Navigation Controller that acts mostly like the counter part on iOS - UINavigationController.
Objective-C
61
star
6

CCNLaunchAtLoginItem

An Objective-C class that encapsulates the functionality for launching a Mac application automatic on login, presented in a very simple interface.
Objective-C
16
star
7

Cooking-Recipes

Lose Sammlung veganer Rezepte
14
star
8

Xcode-Coordinator-Template

An Xcode File Template that creates an Objective-C Coordinator class.
Shell
7
star
9

Xcode-CodeSnippets

A set of Xcode CodeSnippets I use
7
star
10

CCNXML

Simple basic handling of XML files for both reading and manual creation in Objective-C.
Objective-C
4
star
11

CCNTreeNode

An easy way to build a tree of nested objects.
Objective-C
3
star
12

RadioTimeKit

The Swift SDK for TuneIn
Swift
2
star
13

Xcode-File-Templates

Shell
1
star