Skip to content

Commit

Permalink
Refactor README to be more up-to-date and include information about c…
Browse files Browse the repository at this point in the history
…ontributing
  • Loading branch information
jspahrsummers committed Jul 20, 2012
1 parent 3b1e22b commit e5e3e8a
Showing 1 changed file with 15 additions and 21 deletions.
36 changes: 15 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# TwUI 0.2.0r1
# TwUI 0.3.0

TwUI is a hardware accelerated UI framework for Mac, inspired by UIKit. It enables:

Expand All @@ -11,44 +11,38 @@ It differs from UIKit in a few ways:
* Block-based layout and drawRect
* A consistent coordinate system (bottom left origin)
* Sub-pixel text rendering
* Layout Constraints (ala Cocoa Auto-Layout)

# Setup

To use the current development version, include all the files in your project and import TUIKit.h. Set your target to link to the ApplicationServices and QuartzCore frameworks. Be sure to add NS_BUILD_32_LIKE_64 to your preprocessor flags.
To use the current development version, include all the files in your project and import TUIKit.h. Set your target to link to the ApplicationServices and QuartzCore frameworks.

# Usage

Your TUIView-based view hierarchy is hosted inside an TUINSView, which is the bridge between AppKit and TwUI. You may set a TUINSView as the content view of your window, if you'd like to build your whole UI with TwUI. Or you may opt to have a few smaller TUINSViews, using TwUI just where it makes sense and continue to use AppKit everywhere else.
Your `TUIView`-based view hierarchy is hosted inside an `TUINSView`, which is the bridge between AppKit and TwUI. You may set a `TUINSView` as the content view of your window, if you'd like to build your whole UI with TwUI. Or you may opt to have a few smaller `TUINSViews`, using TwUI just where it makes sense and continue to use AppKit everywhere else.

You can also add `NSViews` to a TwUI hierarchy using `TUIViewNSViewContainer`, which bridges back into AppKit from TwUI.

# Example Project

An included example project shows off the basic construction of a pure TwUI-based app. A TUINSView is added as the content view of the window, and some TUIView-based views are hosted in that. It includes a table view, and a tab bar (which is a good example of how you might build your own custom controls).
An included example project shows off the basic construction of a pure TwUI-based app. A `TUINSView` is added as the content view of the window, and some `TUIView`-based views are hosted in that. Within the table view cells, some `NSTextFields` are also added using `TUIViewNSViewContainer`. It includes a table view and a tab bar (which is a good example of how you might build your own custom controls).

# Status

TwUI should be considered an alpha project. It is current shipping in Twitter for Mac and Github for Mac, in use 24/7 by many, many users and has proven itself very stable.

This project follows the [SemVer](http://semver.org/) standard. The API may change in backwards-incompatible ways before the 1.0 release.

The goal of TwUI is to build a high-quality UI framework designed specifically for the Mac. Much inspiration comes from UIKit, but diverging to try new things (i.e. block-based layout and drawRect), and to optimize for Mac-specific interactions is encouraged.

# Known limitations

There are many places where TwUI could be improved:
TwUI is currently shipping in Twitter for Mac and GitHub for Mac, in use 24/7 by many, many users, and has proven itself very stable.

* Accessibility. It would be great to bridge the AppKit accessibility APIs to something simpler, again, inspired by UIKit.
This project follows the [SemVer](http://semver.org/) standard. The API may change in backwards-incompatible ways between major releases.

* Text editing. TUITextEditor is a simple text editor (built on TUITextRenderer). It provides basic editing support and handles a number of standard keybindings. Fleshing this out to be indistinguishable from NSTextView (read: spellchecking, autocorrect) would be useful. If the logic around this were self-contained it would even be great as a standalone project, useful for anyone looking to build a custom text editor for the Mac.
The goal of TwUI is to build a high-quality UI framework designed specifically for the Mac. Much inspiration comes from UIKit, but diverging to try new things (i.e. block-based layout and drawRect), and optimizing for Mac-specific interactions is encouraged.

# Documentation
# Contributing

You can generate documentation with [doxygen](http://www.doxygen.org). Install it, and then run:
We will happily accept pull requests that meet one of the following criteria:

cd docs
doxygen
1. It fixes some functionality that is already in TwUI. This might be a bug, or something not working as expected.
2. It's something so basic or important that TwUI really should have it.
3. It has to integrate with TwUI internals, and so can't easily be done outside of the framework. This one is the most ambiguous, because interesting things may match this criterion, but still be way out of scope. In some cases, a fork might be more appropriate. Use your best judgment.

Documentation is a work in progress, but the API will be familiar if you have used UIKit. (TODO: [appledoc](http://gentlebytes.com/appledoc/) looks very cool, moving to that might be nice).
# Community

TwUI has a mailing list, subscribe by sending an email to <[email protected]>.

Expand Down

0 comments on commit e5e3e8a

Please sign in to comment.