Browse files

TwUI 0.1

  • Loading branch information...
1 parent 5d720b0 commit 2a704ca1fb225a36dac5103797167a21f682a873 Loren Brichter committed Jul 1, 2011
Showing with 18,289 additions and 0 deletions.
  1. +5 −0 .gitignore
  2. +32 −0 ExampleProject/ConcordeExample/Example-Info.plist
  3. +7 −0 ExampleProject/ConcordeExample/Example-Prefix.pch
  4. +25 −0 ExampleProject/ConcordeExample/ExampleAppDelegate.h
  5. +53 −0 ExampleProject/ConcordeExample/ExampleAppDelegate.m
  6. +41 −0 ExampleProject/ConcordeExample/ExampleTabBar.h
  7. +103 −0 ExampleProject/ConcordeExample/ExampleTabBar.m
  8. +26 −0 ExampleProject/ConcordeExample/ExampleTableViewCell.h
  9. +79 −0 ExampleProject/ConcordeExample/ExampleTableViewCell.m
  10. +29 −0 ExampleProject/ConcordeExample/ExampleView.h
  11. +149 −0 ExampleProject/ConcordeExample/ExampleView.m
  12. BIN ExampleProject/ConcordeExample/clock.png
  13. +29 −0 ExampleProject/ConcordeExample/en.lproj/Credits.rtf
  14. +2 −0 ExampleProject/ConcordeExample/en.lproj/InfoPlist.strings
  15. +3,457 −0 ExampleProject/ConcordeExample/en.lproj/MainMenu.xib
  16. +38 −0 ExampleProject/ConcordeExample/main.m
  17. +600 −0 ExampleProject/Example.xcodeproj/project.pbxproj
  18. +7 −0 ExampleProject/Example.xcodeproj/project.xcworkspace/contents.xcworkspacedata
  19. +189 −0 LICENSE.txt
  20. 0 README
  21. +67 −0 README.md
  22. +2 −0 docs/.gitignore
  23. +1,716 −0 docs/Doxyfile
  24. BIN extras/TwUI Presentation.zip
  25. +47 −0 lib/Support/ABActiveRange.h
  26. +67 −0 lib/Support/ABActiveRange.m
  27. +28 −0 lib/Support/CoreText+Additions.h
  28. +183 −0 lib/Support/CoreText+Additions.m
  29. +23 −0 lib/UIKit/TUIAccessibility.h
  30. +38 −0 lib/UIKit/TUIAccessibility.m
  31. +39 −0 lib/UIKit/TUIActivityIndicatorView.h
  32. +95 −0 lib/UIKit/TUIActivityIndicatorView.m
  33. +77 −0 lib/UIKit/TUIAttributedString.h
  34. +217 −0 lib/UIKit/TUIAttributedString.m
  35. +151 −0 lib/UIKit/TUIButton+Content.m
  36. +91 −0 lib/UIKit/TUIButton.h
  37. +248 −0 lib/UIKit/TUIButton.m
  38. +34 −0 lib/UIKit/TUICGAdditions.h
  39. +145 −0 lib/UIKit/TUICGAdditions.m
  40. +84 −0 lib/UIKit/TUIColor.h
  41. +204 −0 lib/UIKit/TUIColor.m
  42. +156 −0 lib/UIKit/TUIControl+TargetAction.m
  43. +79 −0 lib/UIKit/TUIControl.h
  44. +78 −0 lib/UIKit/TUIControl.m
  45. +40 −0 lib/UIKit/TUIFastIndexPath.h
  46. +141 −0 lib/UIKit/TUIFastIndexPath.m
  47. +46 −0 lib/UIKit/TUIFont.h
  48. +193 −0 lib/UIKit/TUIFont.m
  49. +40 −0 lib/UIKit/TUIGeometry.h
  50. +19 −0 lib/UIKit/TUIGeometry.m
  51. +34 −0 lib/UIKit/TUIImage+Drawing.h
  52. +152 −0 lib/UIKit/TUIImage+Drawing.m
  53. +56 −0 lib/UIKit/TUIImage.h
  54. +311 −0 lib/UIKit/TUIImage.m
  55. +30 −0 lib/UIKit/TUIImageView.h
  56. +61 −0 lib/UIKit/TUIImageView.m
  57. +65 −0 lib/UIKit/TUIKit.h
  58. +104 −0 lib/UIKit/TUIKit.m
  59. +39 −0 lib/UIKit/TUILabel.h
  60. +96 −0 lib/UIKit/TUILabel.m
  61. +26 −0 lib/UIKit/TUINSView+Hyperfocus.h
  62. +93 −0 lib/UIKit/TUINSView+Hyperfocus.m
  63. +160 −0 lib/UIKit/TUINSView+NSTextInputClient.m
  64. +64 −0 lib/UIKit/TUINSView.h
  65. +393 −0 lib/UIKit/TUINSView.m
  66. +75 −0 lib/UIKit/TUINSWindow.h
  67. +237 −0 lib/UIKit/TUINSWindow.m
  68. +34 −0 lib/UIKit/TUIResponder.h
  69. +51 −0 lib/UIKit/TUIResponder.m
  70. +40 −0 lib/UIKit/TUIScrollKnob.h
  71. +217 −0 lib/UIKit/TUIScrollKnob.m
  72. +150 −0 lib/UIKit/TUIScrollView.h
  73. +829 −0 lib/UIKit/TUIScrollView.m
  74. +47 −0 lib/UIKit/TUIStringDrawing.h
  75. +112 −0 lib/UIKit/TUIStringDrawing.m
  76. +26 −0 lib/UIKit/TUITableView+Additions.h
  77. +29 −0 lib/UIKit/TUITableView+Additions.m
  78. +36 −0 lib/UIKit/TUITableView+Derepeater.h
  79. +86 −0 lib/UIKit/TUITableView+Derepeater.m
  80. +154 −0 lib/UIKit/TUITableView.h
  81. +640 −0 lib/UIKit/TUITableView.m
  82. +51 −0 lib/UIKit/TUITableViewCell.h
  83. +130 −0 lib/UIKit/TUITableViewCell.m
  84. +42 −0 lib/UIKit/TUITextEditor.h
  85. +382 −0 lib/UIKit/TUITextEditor.m
  86. +47 −0 lib/UIKit/TUITextField.h
  87. +123 −0 lib/UIKit/TUITextField.m
  88. +34 −0 lib/UIKit/TUITextRenderer+Event.h
  89. +276 −0 lib/UIKit/TUITextRenderer+Event.m
  90. +211 −0 lib/UIKit/TUITextRenderer+KeyBindings.m
  91. +85 −0 lib/UIKit/TUITextRenderer.h
  92. +273 −0 lib/UIKit/TUITextRenderer.m
  93. +82 −0 lib/UIKit/TUITextView.h
  94. +345 −0 lib/UIKit/TUITextView.m
  95. +24 −0 lib/UIKit/TUITooltipWindow.h
  96. +166 −0 lib/UIKit/TUITooltipWindow.m
  97. +304 −0 lib/UIKit/TUIView+Animation.m
  98. +31 −0 lib/UIKit/TUIView+Event.h
  99. +203 −0 lib/UIKit/TUIView+Event.m
  100. +21 −0 lib/UIKit/TUIView+NSTextInputClient.h
  101. +21 −0 lib/UIKit/TUIView+NSTextInputClient.m
  102. +32 −0 lib/UIKit/TUIView+PasteboardDragging.h
  103. +100 −0 lib/UIKit/TUIView+PasteboardDragging.m
  104. +26 −0 lib/UIKit/TUIView+Private.h
  105. +53 −0 lib/UIKit/TUIView+Private.m
  106. +418 −0 lib/UIKit/TUIView.h
  107. +885 −0 lib/UIKit/TUIView.m
  108. +49 −0 lib/UIKit/TUIViewController.h
  109. +130 −0 lib/UIKit/TUIViewController.m
  110. +34 −0 lib/UIKit/TUIViewNSViewContainer.h
  111. +45 −0 lib/UIKit/TUIViewNSViewContainer.m
View
5 .gitignore
@@ -0,0 +1,5 @@
+*.DS_Store
+xcuserdata
+*.mode1v3
+*.pbxuser
+build
View
32 ExampleProject/ConcordeExample/Example-Info.plist
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>CFBundleDevelopmentRegion</key>
+ <string>en</string>
+ <key>CFBundleExecutable</key>
+ <string>${EXECUTABLE_NAME}</string>
+ <key>CFBundleIconFile</key>
+ <string></string>
+ <key>CFBundleIdentifier</key>
+ <string>com.example.${PRODUCT_NAME:rfc1034identifier}</string>
+ <key>CFBundleInfoDictionaryVersion</key>
+ <string>6.0</string>
+ <key>CFBundleName</key>
+ <string>${PRODUCT_NAME}</string>
+ <key>CFBundlePackageType</key>
+ <string>APPL</string>
+ <key>CFBundleShortVersionString</key>
+ <string>1.0</string>
+ <key>CFBundleSignature</key>
+ <string>????</string>
+ <key>CFBundleVersion</key>
+ <string>1</string>
+ <key>LSMinimumSystemVersion</key>
+ <string>${MACOSX_DEPLOYMENT_TARGET}</string>
+ <key>NSMainNibFile</key>
+ <string>MainMenu</string>
+ <key>NSPrincipalClass</key>
+ <string>NSApplication</string>
+</dict>
+</plist>
View
7 ExampleProject/ConcordeExample/Example-Prefix.pch
@@ -0,0 +1,7 @@
+//
+// Prefix header for all source files of the 'ConcordeExample' target in the 'ConcordeExample' project
+//
+
+#ifdef __OBJC__
+ #import <Cocoa/Cocoa.h>
+#endif
View
25 ExampleProject/ConcordeExample/ExampleAppDelegate.h
@@ -0,0 +1,25 @@
+/*
+ Copyright 2011 Twitter, Inc.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this work except in compliance with the License.
+ You may obtain a copy of the License in the LICENSE file, or at:
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ */
+
+#import <Cocoa/Cocoa.h>
+#import "TUIKit.h"
+
+@interface ExampleAppDelegate : NSObject <NSApplicationDelegate>
+{
+ NSWindow *window;
+}
+
+@end
View
53 ExampleProject/ConcordeExample/ExampleAppDelegate.m
@@ -0,0 +1,53 @@
+/*
+ Copyright 2011 Twitter, Inc.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this work except in compliance with the License.
+ You may obtain a copy of the License in the LICENSE file, or at:
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ */
+
+#import "ExampleAppDelegate.h"
+#import "ExampleView.h"
+
+@implementation ExampleAppDelegate
+
+- (void)dealloc
+{
+ [window release];
+ [super dealloc];
+}
+
+- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
+{
+ CGRect b = CGRectMake(0, 0, 500, 450);
+
+ window = [[NSWindow alloc] initWithContentRect:b
+ styleMask:NSTitledWindowMask | NSClosableWindowMask | NSResizableWindowMask
+ backing:NSBackingStoreBuffered
+ defer:NO];
+ [window setMinSize:NSMakeSize(300, 250)];
+ [window center];
+
+ /*
+ TUINSView is the bridge between the standard AppKit NSView-based heirarchy and the TUIView-based heirarchy
+ */
+ TUINSView *tuiContainer = [[TUINSView alloc] initWithFrame:b];
+ [window setContentView:tuiContainer];
+ [tuiContainer release];
+
+ ExampleView *example = [[ExampleView alloc] initWithFrame:b];
+ tuiContainer.rootView = example;
+ [example release];
+
+ [window makeKeyAndOrderFront:nil];
+}
+
+@end
View
41 ExampleProject/ConcordeExample/ExampleTabBar.h
@@ -0,0 +1,41 @@
+/*
+ Copyright 2011 Twitter, Inc.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this work except in compliance with the License.
+ You may obtain a copy of the License in the LICENSE file, or at:
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ */
+
+#import "TUIKit.h"
+
+@class ExampleTabBar;
+
+@protocol ExampleTabBarDelegate <NSObject>
+@required
+- (void)tabBar:(ExampleTabBar *)tabBar didSelectTab:(NSInteger)index;
+@end
+
+/*
+ An example of how to build a custom UI control, in this case a simple tab bar
+ */
+
+@interface ExampleTabBar : TUIView
+{
+ id<ExampleTabBarDelegate> delegate;
+ NSArray *tabViews;
+}
+
+- (id)initWithNumberOfTabs:(NSInteger)nTabs;
+
+@property (nonatomic, assign) id<ExampleTabBarDelegate> delegate;
+@property (nonatomic, readonly) NSArray *tabViews;
+
+@end
View
103 ExampleProject/ConcordeExample/ExampleTabBar.m
@@ -0,0 +1,103 @@
+/*
+ Copyright 2011 Twitter, Inc.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this work except in compliance with the License.
+ You may obtain a copy of the License in the LICENSE file, or at:
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ */
+
+#import "ExampleTabBar.h"
+
+@interface ExampleTab : TUIView
+@end
+@implementation ExampleTab
+
+- (ExampleTabBar *)tabBar
+{
+ return (ExampleTabBar *)self.superview;
+}
+
+- (void)mouseDown:(NSEvent *)event
+{
+ [super mouseDown:event]; // always call super when overriding mouseXXX: methods - lots of plumbing happens in TUIView
+ [self setNeedsDisplay];
+}
+
+- (void)mouseUp:(NSEvent *)event
+{
+ [super mouseUp:event];
+
+ // rather than a simple -setNeedsDisplay, let's fade it back out
+ [TUIView animateWithDuration:0.5 animations:^{
+ [self redraw]; // -redraw forces a .contents update immediately based on drawRect, and it happens inside an animation block, so CoreAnimation gives us a cross-fade for free
+ }];
+
+ if([self eventInside:event]) { // only perform the action if the mouse up happened inside our bounds - ignores mouse down, drag-out, mouse up
+ [[self tabBar].delegate tabBar:[self tabBar] didSelectTab:self.tag];
+ }
+}
+
+@end
+
+@implementation ExampleTabBar
+
+@synthesize delegate;
+@synthesize tabViews;
+
+- (id)initWithNumberOfTabs:(NSInteger)nTabs
+{
+ if((self = [super initWithFrame:CGRectZero])) {
+ NSMutableArray *_tabViews = [NSMutableArray arrayWithCapacity:nTabs];
+ for(int i = 0; i < nTabs; ++i) {
+ ExampleTab *t = [[ExampleTab alloc] initWithFrame:CGRectZero];
+ t.tag = i;
+ t.layout = ^(TUIView *v) { // the layout of an individual tab is a function of the superview bounds, the number of tabs, and the current tab index
+ CGRect b = v.superview.bounds; // reference the passed-in 'v' rather than 't' to avoid a retain cycle
+ float width = b.size.width / nTabs;
+ float x = i * width;
+ return CGRectMake(roundf(x), 0, roundf(width), b.size.height);
+ };
+ [self addSubview:t];
+ [_tabViews addObject:t];
+ [t release];
+ }
+
+ tabViews = [[NSArray alloc] initWithArray:_tabViews];
+ }
+ return self;
+}
+
+- (void)dealloc
+{
+ [tabViews release];
+ [super dealloc];
+}
+
+- (void)drawRect:(CGRect)rect
+{
+ // draw tab bar background
+
+ CGRect b = self.bounds;
+ CGContextRef ctx = TUIGraphicsGetCurrentContext();
+
+ // gray gradient
+ CGFloat colorA[] = { 0.85, 0.85, 0.85, 1.0 };
+ CGFloat colorB[] = { 0.71, 0.71, 0.71, 1.0 };
+ CGContextDrawLinearGradientBetweenPoints(ctx, CGPointMake(0, b.size.height), colorA, CGPointMake(0, 0), colorB);
+
+ // top emboss
+ CGContextSetRGBFillColor(ctx, 1, 1, 1, 0.5);
+ CGContextFillRect(ctx, CGRectMake(0, b.size.height-2, b.size.width, 1));
+ CGContextSetRGBFillColor(ctx, 0, 0, 0, 0.3);
+ CGContextFillRect(ctx, CGRectMake(0, b.size.height-1, b.size.width, 1));
+}
+
+@end
View
26 ExampleProject/ConcordeExample/ExampleTableViewCell.h
@@ -0,0 +1,26 @@
+/*
+ Copyright 2011 Twitter, Inc.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this work except in compliance with the License.
+ You may obtain a copy of the License in the LICENSE file, or at:
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ */
+
+#import "TUIKit.h"
+
+@interface ExampleTableViewCell : TUITableViewCell
+{
+ TUITextRenderer *textRenderer;
+}
+
+@property (nonatomic, copy) NSAttributedString *attributedString;
+
+@end
View
79 ExampleProject/ConcordeExample/ExampleTableViewCell.m
@@ -0,0 +1,79 @@
+/*
+ Copyright 2011 Twitter, Inc.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this work except in compliance with the License.
+ You may obtain a copy of the License in the LICENSE file, or at:
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ */
+
+#import "ExampleTableViewCell.h"
+
+@implementation ExampleTableViewCell
+
+- (id)initWithStyle:(TUITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
+{
+ if((self = [super initWithStyle:style reuseIdentifier:reuseIdentifier])) {
+ textRenderer = [[TUITextRenderer alloc] init];
+
+ /*
+ Add the text renderer to the view so events get routed to it properly.
+ Text selection, dictionary popup, etc should just work.
+ You can add more than one.
+
+ The text renderer encapsulates an attributed string and a frame.
+ The attributed string in this case is set by setAttributedString:
+ which is configured by the table view delegate. The frame needs to be
+ set before it can be drawn, we do that in drawRect: below.
+ */
+ self.textRenderers = [NSArray arrayWithObjects:textRenderer, nil];
+ }
+ return self;
+}
+
+- (void)dealloc
+{
+ [textRenderer release];
+ [super dealloc];
+}
+
+- (NSAttributedString *)attributedString
+{
+ return textRenderer.attributedString;
+}
+
+- (void)setAttributedString:(NSAttributedString *)attributedString
+{
+ textRenderer.attributedString = attributedString;
+ [self setNeedsDisplay];
+}
+
+- (void)drawRect:(CGRect)rect
+{
+ CGRect b = self.bounds;
+ CGContextRef ctx = TUIGraphicsGetCurrentContext();
+
+ // light gray background
+ CGContextSetRGBFillColor(ctx, .97, .97, .97, 1);
+ CGContextFillRect(ctx, b);
+
+ // text
+ CGRect textRect = CGRectOffset(b, 15, -15);
+ textRenderer.frame = textRect; // set the frame so it knows where to draw itself
+ [textRenderer draw];
+
+ // emboss
+ CGContextSetRGBFillColor(ctx, 1, 1, 1, 0.9); // light at the top
+ CGContextFillRect(ctx, CGRectMake(0, b.size.height-1, b.size.width, 1));
+ CGContextSetRGBFillColor(ctx, 0, 0, 0, 0.08); // dark at the bottom
+ CGContextFillRect(ctx, CGRectMake(0, 0, b.size.width, 1));
+}
+
+@end
View
29 ExampleProject/ConcordeExample/ExampleView.h
@@ -0,0 +1,29 @@
+/*
+ Copyright 2011 Twitter, Inc.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this work except in compliance with the License.
+ You may obtain a copy of the License in the LICENSE file, or at:
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ */
+
+#import "TUIKit.h"
+#import "ExampleTabBar.h"
+
+@interface ExampleView : TUIView <TUITableViewDelegate, TUITableViewDataSource, ExampleTabBarDelegate>
+{
+ TUITableView *_tableView;
+ ExampleTabBar *_tabBar;
+
+ TUIFont *exampleFont1;
+ TUIFont *exampleFont2;
+}
+
+@end
View
149 ExampleProject/ConcordeExample/ExampleView.m
@@ -0,0 +1,149 @@
+/*
+ Copyright 2011 Twitter, Inc.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this work except in compliance with the License.
+ You may obtain a copy of the License in the LICENSE file, or at:
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ */
+
+#import "ExampleView.h"
+#import "ExampleTableViewCell.h"
+
+#define TAB_HEIGHT 60
+
+@implementation ExampleView
+
+- (id)initWithFrame:(CGRect)frame
+{
+ if((self = [super initWithFrame:frame])) {
+ self.backgroundColor = [TUIColor colorWithWhite:0.9 alpha:1.0];
+
+ // if you're using a font a lot, it's best to allocate it once and re-use it
+ exampleFont1 = [[TUIFont fontWithName:@"HelveticaNeue" size:15] retain];
+ exampleFont2 = [[TUIFont fontWithName:@"HelveticaNeue-Bold" size:15] retain];
+
+ CGRect b = self.bounds;
+ b.origin.y += TAB_HEIGHT;
+ b.size.height -= TAB_HEIGHT;
+
+ /*
+ Note by default scroll views (and therefore table views) don't
+ have clipsToBounds enabled. Set only if needed. In this case
+ we don't, so it could potentially save us some rendering costs.
+ */
+ _tableView = [[TUITableView alloc] initWithFrame:b];
+ _tableView.autoresizingMask = TUIViewAutoresizingFlexibleSize;
+ _tableView.dataSource = self;
+ _tableView.delegate = self;
+ [self addSubview:_tableView];
+
+ _tabBar = [[ExampleTabBar alloc] initWithNumberOfTabs:5];
+ _tabBar.delegate = self;
+ // It'd be easier to just use .autoresizingmask, but for demonstration we'll use ^layout.
+ _tabBar.layout = ^(TUIView *v) { // 'v' in this case will point to the same object as 'tabs'
+ TUIView *superview = v.superview; // note we're using the passed-in 'v' argument, rather than referencing 'tabs' in the block, this avoids a retain cycle without jumping through hoops
+ CGRect rect = superview.bounds; // take the superview bounds
+ rect.size.height = TAB_HEIGHT; // only take up the bottom 60px
+ return rect;
+ };
+ [self addSubview:_tabBar];
+
+ // setup individual tabs
+ for(TUIView *tabView in _tabBar.tabViews) {
+ tabView.backgroundColor = [TUIColor clearColor]; // will also set opaque=NO
+
+ // let's just teach the tabs how to draw themselves right here - no need to subclass anything
+ tabView.drawRect = ^(TUIView *v, CGRect rect) {
+ CGRect b = v.bounds;
+ CGContextRef ctx = TUIGraphicsGetCurrentContext();
+
+ TUIImage *image = [TUIImage imageNamed:@"clock.png" cache:YES];
+ CGRect imageRect = ABIntegralRectWithSizeCenteredInRect([image size], b);
+
+ if([v.nsView isTrackingSubviewOfView:v]) { // simple way to check if the mouse is currently down inside of 'v'. See the other methods in TUINSView for more.
+
+ // first draw a slight white emboss below
+ CGContextSaveGState(ctx);
+ CGContextClipToMask(ctx, CGRectOffset(imageRect, 0, -1), image.CGImage);
+ CGContextSetRGBFillColor(ctx, 1, 1, 1, 0.5);
+ CGContextFillRect(ctx, b);
+ CGContextRestoreGState(ctx);
+
+ // replace image with a dynamically generated fancy inset image
+ // 1. use the image as a mask to draw a blue gradient
+ // 2. generate an inner shadow image based on the mask, then overlay that on top
+ image = [TUIImage imageWithSize:imageRect.size drawing:^(CGContextRef ctx) {
+ CGRect r;
+ r.origin = CGPointZero;
+ r.size = imageRect.size;
+
+ CGContextClipToMask(ctx, r, image.CGImage);
+ CGContextDrawLinearGradientBetweenPoints(ctx, CGPointMake(0, r.size.height), (CGFloat[]){0,0,1,1}, CGPointZero, (CGFloat[]){0,0.6,1,1});
+ TUIImage *innerShadow = [image innerShadowWithOffset:CGSizeMake(0, -1) radius:3.0 color:[TUIColor blackColor] backgroundColor:[TUIColor cyanColor]];
+ CGContextSetBlendMode(ctx, kCGBlendModeOverlay);
+ CGContextDrawImage(ctx, r, innerShadow.CGImage);
+ }];
+ }
+
+ [image drawInRect:imageRect]; // draw 'image' (might be the regular one, or the dynamically generated one)
+
+ // draw the index
+ TUIAttributedString *s = [TUIAttributedString stringWithString:[NSString stringWithFormat:@"%ld", v.tag]];
+ [s ab_drawInRect:CGRectOffset(imageRect, imageRect.size.width, -15)];
+ };
+ }
+ }
+ return self;
+}
+
+- (void)dealloc
+{
+ [_tableView release];
+ [_tabBar release];
+ [super dealloc];
+}
+
+- (void)tabBar:(ExampleTabBar *)tabBar didSelectTab:(NSInteger)index
+{
+ NSLog(@"selected tab %ld", index);
+}
+
+- (NSInteger)tableView:(TUITableView *)table numberOfRowsInSection:(NSInteger)section
+{
+ return 200;
+}
+
+- (CGFloat)tableView:(TUITableView *)tableView heightForRowAtIndexPath:(TUIFastIndexPath *)indexPath
+{
+ return 50.0;
+}
+
+- (TUITableViewCell *)tableView:(TUITableView *)tableView cellForRowAtIndexPath:(TUIFastIndexPath *)indexPath
+{
+ ExampleTableViewCell *cell = reusableTableCellOfClass(tableView, ExampleTableViewCell);
+
+ TUIAttributedString *s = [TUIAttributedString stringWithString:[NSString stringWithFormat:@"example cell %d", indexPath.row]];
+ s.color = [TUIColor blackColor];
+ s.font = exampleFont1;
+ [s setFont:exampleFont2 inRange:NSMakeRange(8, 4)]; // make the word "cell" bold
+ cell.attributedString = s;
+
+ return cell;
+}
+
+- (void)tableView:(TUITableView *)tableView didClickRowAtIndexPath:(TUIFastIndexPath *)indexPath withEvent:(NSEvent *)event
+{
+ if([event clickCount] == 1) {
+ // do something cool
+ }
+}
+
+@end
View
BIN ExampleProject/ConcordeExample/clock.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
29 ExampleProject/ConcordeExample/en.lproj/Credits.rtf
@@ -0,0 +1,29 @@
+{\rtf0\ansi{\fonttbl\f0\fswiss Helvetica;}
+{\colortbl;\red255\green255\blue255;}
+\paperw9840\paperh8400
+\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural
+
+\f0\b\fs24 \cf0 Engineering:
+\b0 \
+ Some people\
+\
+
+\b Human Interface Design:
+\b0 \
+ Some other people\
+\
+
+\b Testing:
+\b0 \
+ Hopefully not nobody\
+\
+
+\b Documentation:
+\b0 \
+ Whoever\
+\
+
+\b With special thanks to:
+\b0 \
+ Mom\
+}
View
2 ExampleProject/ConcordeExample/en.lproj/InfoPlist.strings
@@ -0,0 +1,2 @@
+/* Localized versions of Info.plist keys */
+
View
3,457 ExampleProject/ConcordeExample/en.lproj/MainMenu.xib
3,457 additions, 0 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
38 ExampleProject/ConcordeExample/main.m
@@ -0,0 +1,38 @@
+/*
+ Copyright 2011 Twitter, Inc.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this work except in compliance with the License.
+ You may obtain a copy of the License in the LICENSE file, or at:
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ */
+
+#import <Cocoa/Cocoa.h>
+#import "TUIKit.h"
+
+/*
+ Notes:
+ In your project, add NS_BUILD_32_LIKE_64 to your preprocessor flags
+ */
+
+int main(int argc, char *argv[])
+{
+ SInt32 major = 0;
+ SInt32 minor = 0;
+ Gestalt(gestaltSystemVersionMajor, &major);
+ Gestalt(gestaltSystemVersionMinor, &minor);
+ if((major == 10 && minor >= 7) || major >= 11) {
+ AtLeastLion = YES;
+ }
+
+ Screen_Scale = [[NSScreen mainScreen] userSpaceScaleFactor]; // hidpi is still a work in progress
+
+ return NSApplicationMain(argc, (const char **)argv);
+}
View
600 ExampleProject/Example.xcodeproj/project.pbxproj
@@ -0,0 +1,600 @@
+// !$*UTF8*$!
+{
+ archiveVersion = 1;
+ classes = {
+ };
+ objectVersion = 46;
+ objects = {
+
+/* Begin PBXBuildFile section */
+ 5C55D83113A663E2000ED768 /* TUIViewNSViewContainer.m in Sources */ = {isa = PBXBuildFile; fileRef = 5C55D83013A663E2000ED768 /* TUIViewNSViewContainer.m */; };
+ 5C55D83413A667A0000ED768 /* ExampleView.m in Sources */ = {isa = PBXBuildFile; fileRef = 5C55D83313A667A0000ED768 /* ExampleView.m */; };
+ 5C55D83713A66BD5000ED768 /* ExampleTableViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 5C55D83613A66BD5000ED768 /* ExampleTableViewCell.m */; };
+ 5C57CF3D13A7E7C00032AC1F /* clock.png in Resources */ = {isa = PBXBuildFile; fileRef = 5C57CF3C13A7E7C00032AC1F /* clock.png */; };
+ 5C782FA513A541EC00CF69EF /* ABActiveRange.m in Sources */ = {isa = PBXBuildFile; fileRef = 5C782FA413A541EC00CF69EF /* ABActiveRange.m */; };
+ 5C782FD013A54FFF00CF69EF /* ApplicationServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5C782FCF13A54FFD00CF69EF /* ApplicationServices.framework */; };
+ 5C782FD713A556A900CF69EF /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5C782FD613A556A800CF69EF /* QuartzCore.framework */; };
+ 5C78300513A577B100CF69EF /* TUICGAdditions.m in Sources */ = {isa = PBXBuildFile; fileRef = 5C78300413A5778500CF69EF /* TUICGAdditions.m */; };
+ 5C90DB9D13A7C08E00ECDD14 /* ExampleTabBar.m in Sources */ = {isa = PBXBuildFile; fileRef = 5C90DB9C13A7C08D00ECDD14 /* ExampleTabBar.m */; };
+ 5ED56678139DC30300031CDF /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5ED56677139DC30300031CDF /* Cocoa.framework */; };
+ 5ED56682139DC30300031CDF /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 5ED56680139DC30300031CDF /* InfoPlist.strings */; };
+ 5ED56685139DC30300031CDF /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 5ED56684139DC30300031CDF /* main.m */; };
+ 5ED56688139DC30300031CDF /* Credits.rtf in Resources */ = {isa = PBXBuildFile; fileRef = 5ED56686139DC30300031CDF /* Credits.rtf */; };
+ 5ED5668B139DC30300031CDF /* ExampleAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 5ED5668A139DC30300031CDF /* ExampleAppDelegate.m */; };
+ 5ED5668E139DC30300031CDF /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 5ED5668C139DC30300031CDF /* MainMenu.xib */; };
+ 5ED566F7139DC35100031CDF /* TUIAccessibility.m in Sources */ = {isa = PBXBuildFile; fileRef = 5ED56697139DC35100031CDF /* TUIAccessibility.m */; };
+ 5ED566F8139DC35100031CDF /* TUIActivityIndicatorView.m in Sources */ = {isa = PBXBuildFile; fileRef = 5ED56699139DC35100031CDF /* TUIActivityIndicatorView.m */; };
+ 5ED566F9139DC35100031CDF /* TUIAttributedString.m in Sources */ = {isa = PBXBuildFile; fileRef = 5ED5669B139DC35100031CDF /* TUIAttributedString.m */; };
+ 5ED566FC139DC35100031CDF /* TUIButton+Content.m in Sources */ = {isa = PBXBuildFile; fileRef = 5ED566A0139DC35100031CDF /* TUIButton+Content.m */; };
+ 5ED566FD139DC35100031CDF /* TUIButton.m in Sources */ = {isa = PBXBuildFile; fileRef = 5ED566A2139DC35100031CDF /* TUIButton.m */; };
+ 5ED566FE139DC35100031CDF /* TUIColor.m in Sources */ = {isa = PBXBuildFile; fileRef = 5ED566A4139DC35100031CDF /* TUIColor.m */; };
+ 5ED566FF139DC35100031CDF /* TUIControl+TargetAction.m in Sources */ = {isa = PBXBuildFile; fileRef = 5ED566A5139DC35100031CDF /* TUIControl+TargetAction.m */; };
+ 5ED56700139DC35100031CDF /* TUIControl.m in Sources */ = {isa = PBXBuildFile; fileRef = 5ED566A7139DC35100031CDF /* TUIControl.m */; };
+ 5ED56701139DC35100031CDF /* TUIFastIndexPath.m in Sources */ = {isa = PBXBuildFile; fileRef = 5ED566A9139DC35100031CDF /* TUIFastIndexPath.m */; };
+ 5ED56702139DC35100031CDF /* TUIFont.m in Sources */ = {isa = PBXBuildFile; fileRef = 5ED566AB139DC35100031CDF /* TUIFont.m */; };
+ 5ED56703139DC35100031CDF /* TUIGeometry.m in Sources */ = {isa = PBXBuildFile; fileRef = 5ED566AD139DC35100031CDF /* TUIGeometry.m */; };
+ 5ED56704139DC35100031CDF /* TUIImage+Drawing.m in Sources */ = {isa = PBXBuildFile; fileRef = 5ED566AF139DC35100031CDF /* TUIImage+Drawing.m */; };
+ 5ED56705139DC35100031CDF /* TUIImage.m in Sources */ = {isa = PBXBuildFile; fileRef = 5ED566B1139DC35100031CDF /* TUIImage.m */; };
+ 5ED56706139DC35100031CDF /* TUIImageView.m in Sources */ = {isa = PBXBuildFile; fileRef = 5ED566B3139DC35100031CDF /* TUIImageView.m */; };
+ 5ED56707139DC35100031CDF /* TUIKit.m in Sources */ = {isa = PBXBuildFile; fileRef = 5ED566B5139DC35100031CDF /* TUIKit.m */; };
+ 5ED56708139DC35100031CDF /* TUILabel.m in Sources */ = {isa = PBXBuildFile; fileRef = 5ED566B7139DC35100031CDF /* TUILabel.m */; };
+ 5ED5670C139DC35100031CDF /* TUINSView+Hyperfocus.m in Sources */ = {isa = PBXBuildFile; fileRef = 5ED566BF139DC35100031CDF /* TUINSView+Hyperfocus.m */; };
+ 5ED5670D139DC35100031CDF /* TUINSView+NSTextInputClient.m in Sources */ = {isa = PBXBuildFile; fileRef = 5ED566C0139DC35100031CDF /* TUINSView+NSTextInputClient.m */; };
+ 5ED5670E139DC35100031CDF /* TUINSView.m in Sources */ = {isa = PBXBuildFile; fileRef = 5ED566C2139DC35100031CDF /* TUINSView.m */; };
+ 5ED5670F139DC35100031CDF /* TUINSWindow.m in Sources */ = {isa = PBXBuildFile; fileRef = 5ED566C4139DC35100031CDF /* TUINSWindow.m */; };
+ 5ED56710139DC35100031CDF /* TUIResponder.m in Sources */ = {isa = PBXBuildFile; fileRef = 5ED566C6139DC35100031CDF /* TUIResponder.m */; };
+ 5ED56711139DC35100031CDF /* TUIScrollKnob.m in Sources */ = {isa = PBXBuildFile; fileRef = 5ED566C8139DC35100031CDF /* TUIScrollKnob.m */; };
+ 5ED56712139DC35100031CDF /* TUIScrollView.m in Sources */ = {isa = PBXBuildFile; fileRef = 5ED566CA139DC35100031CDF /* TUIScrollView.m */; };
+ 5ED56713139DC35100031CDF /* TUIStringDrawing.m in Sources */ = {isa = PBXBuildFile; fileRef = 5ED566CC139DC35100031CDF /* TUIStringDrawing.m */; };
+ 5ED56715139DC35100031CDF /* TUITableView+Additions.m in Sources */ = {isa = PBXBuildFile; fileRef = 5ED566D0139DC35100031CDF /* TUITableView+Additions.m */; };
+ 5ED56716139DC35100031CDF /* TUITableView+Derepeater.m in Sources */ = {isa = PBXBuildFile; fileRef = 5ED566D2139DC35100031CDF /* TUITableView+Derepeater.m */; };
+ 5ED56717139DC35100031CDF /* TUITableView.m in Sources */ = {isa = PBXBuildFile; fileRef = 5ED566D4139DC35100031CDF /* TUITableView.m */; };
+ 5ED56718139DC35100031CDF /* TUITableViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 5ED566D6139DC35100031CDF /* TUITableViewCell.m */; };
+ 5ED5671B139DC35100031CDF /* TUITextEditor.m in Sources */ = {isa = PBXBuildFile; fileRef = 5ED566DC139DC35100031CDF /* TUITextEditor.m */; };
+ 5ED5671C139DC35100031CDF /* TUITextField.m in Sources */ = {isa = PBXBuildFile; fileRef = 5ED566DE139DC35100031CDF /* TUITextField.m */; };
+ 5ED5671D139DC35100031CDF /* TUITextRenderer+Event.m in Sources */ = {isa = PBXBuildFile; fileRef = 5ED566E0139DC35100031CDF /* TUITextRenderer+Event.m */; };
+ 5ED5671E139DC35100031CDF /* TUITextRenderer+KeyBindings.m in Sources */ = {isa = PBXBuildFile; fileRef = 5ED566E1139DC35100031CDF /* TUITextRenderer+KeyBindings.m */; };
+ 5ED5671F139DC35100031CDF /* TUITextRenderer.m in Sources */ = {isa = PBXBuildFile; fileRef = 5ED566E3139DC35100031CDF /* TUITextRenderer.m */; };
+ 5ED56720139DC35100031CDF /* TUITextView.m in Sources */ = {isa = PBXBuildFile; fileRef = 5ED566E5139DC35100031CDF /* TUITextView.m */; };
+ 5ED56721139DC35100031CDF /* TUITooltipWindow.m in Sources */ = {isa = PBXBuildFile; fileRef = 5ED566E7139DC35100031CDF /* TUITooltipWindow.m */; };
+ 5ED56722139DC35100031CDF /* TUIView+Animation.m in Sources */ = {isa = PBXBuildFile; fileRef = 5ED566E8139DC35100031CDF /* TUIView+Animation.m */; };
+ 5ED56723139DC35100031CDF /* TUIView+Event.m in Sources */ = {isa = PBXBuildFile; fileRef = 5ED566EA139DC35100031CDF /* TUIView+Event.m */; };
+ 5ED56724139DC35100031CDF /* TUIView+NSTextInputClient.m in Sources */ = {isa = PBXBuildFile; fileRef = 5ED566EC139DC35100031CDF /* TUIView+NSTextInputClient.m */; };
+ 5ED56725139DC35100031CDF /* TUIView+PasteboardDragging.m in Sources */ = {isa = PBXBuildFile; fileRef = 5ED566EE139DC35100031CDF /* TUIView+PasteboardDragging.m */; };
+ 5ED56726139DC35100031CDF /* TUIView+Private.m in Sources */ = {isa = PBXBuildFile; fileRef = 5ED566F0139DC35100031CDF /* TUIView+Private.m */; };
+ 5ED56727139DC35100031CDF /* TUIView.m in Sources */ = {isa = PBXBuildFile; fileRef = 5ED566F2139DC35100031CDF /* TUIView.m */; };
+ 5ED56728139DC35100031CDF /* TUIViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 5ED566F4139DC35100031CDF /* TUIViewController.m */; };
+ 5ED56736139DC35800031CDF /* CoreText+Additions.m in Sources */ = {isa = PBXBuildFile; fileRef = 5ED56732139DC35800031CDF /* CoreText+Additions.m */; };
+/* End PBXBuildFile section */
+
+/* Begin PBXFileReference section */
+ 5C55D83013A663E2000ED768 /* TUIViewNSViewContainer.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TUIViewNSViewContainer.m; sourceTree = "<group>"; };
+ 5C55D83213A667A0000ED768 /* ExampleView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ExampleView.h; sourceTree = "<group>"; };
+ 5C55D83313A667A0000ED768 /* ExampleView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ExampleView.m; sourceTree = "<group>"; };
+ 5C55D83513A66BD5000ED768 /* ExampleTableViewCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ExampleTableViewCell.h; sourceTree = "<group>"; };
+ 5C55D83613A66BD5000ED768 /* ExampleTableViewCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ExampleTableViewCell.m; sourceTree = "<group>"; };
+ 5C57CF3C13A7E7C00032AC1F /* clock.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = clock.png; sourceTree = "<group>"; };
+ 5C782FA313A541EB00CF69EF /* ABActiveRange.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = ABActiveRange.h; path = ../Support/ABActiveRange.h; sourceTree = "<group>"; };
+ 5C782FA413A541EC00CF69EF /* ABActiveRange.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = ABActiveRange.m; path = ../Support/ABActiveRange.m; sourceTree = "<group>"; };
+ 5C782FCF13A54FFD00CF69EF /* ApplicationServices.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = ApplicationServices.framework; path = System/Library/Frameworks/ApplicationServices.framework; sourceTree = SDKROOT; };
+ 5C782FD613A556A800CF69EF /* QuartzCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuartzCore.framework; path = System/Library/Frameworks/QuartzCore.framework; sourceTree = SDKROOT; };
+ 5C78300313A5776D00CF69EF /* TUICGAdditions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TUICGAdditions.h; sourceTree = "<group>"; };
+ 5C78300413A5778500CF69EF /* TUICGAdditions.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TUICGAdditions.m; sourceTree = "<group>"; };
+ 5C90DB9B13A7C08D00ECDD14 /* ExampleTabBar.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ExampleTabBar.h; sourceTree = "<group>"; };
+ 5C90DB9C13A7C08D00ECDD14 /* ExampleTabBar.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ExampleTabBar.m; sourceTree = "<group>"; };
+ 5ED56673139DC30300031CDF /* Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Example.app; sourceTree = BUILT_PRODUCTS_DIR; };
+ 5ED56677139DC30300031CDF /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = System/Library/Frameworks/Cocoa.framework; sourceTree = SDKROOT; };
+ 5ED5667A139DC30300031CDF /* AppKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AppKit.framework; path = System/Library/Frameworks/AppKit.framework; sourceTree = SDKROOT; };
+ 5ED5667B139DC30300031CDF /* CoreData.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreData.framework; path = System/Library/Frameworks/CoreData.framework; sourceTree = SDKROOT; };
+ 5ED5667C139DC30300031CDF /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
+ 5ED5667F139DC30300031CDF /* Example-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Example-Info.plist"; sourceTree = "<group>"; };
+ 5ED56681139DC30300031CDF /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
+ 5ED56683139DC30300031CDF /* Example-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Example-Prefix.pch"; sourceTree = "<group>"; };
+ 5ED56684139DC30300031CDF /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
+ 5ED56687139DC30300031CDF /* en */ = {isa = PBXFileReference; lastKnownFileType = text.rtf; name = en; path = en.lproj/Credits.rtf; sourceTree = "<group>"; };
+ 5ED56689139DC30300031CDF /* ExampleAppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ExampleAppDelegate.h; sourceTree = "<group>"; };
+ 5ED5668A139DC30300031CDF /* ExampleAppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ExampleAppDelegate.m; sourceTree = "<group>"; };
+ 5ED5668D139DC30300031CDF /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = en.lproj/MainMenu.xib; sourceTree = "<group>"; };
+ 5ED56696139DC35100031CDF /* TUIAccessibility.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; lineEnding = 0; path = TUIAccessibility.h; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.objcpp; };
+ 5ED56697139DC35100031CDF /* TUIAccessibility.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; lineEnding = 0; path = TUIAccessibility.m; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.objc; };
+ 5ED56698139DC35100031CDF /* TUIActivityIndicatorView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; lineEnding = 0; path = TUIActivityIndicatorView.h; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.objcpp; };
+ 5ED56699139DC35100031CDF /* TUIActivityIndicatorView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; lineEnding = 0; path = TUIActivityIndicatorView.m; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.objc; };
+ 5ED5669A139DC35100031CDF /* TUIAttributedString.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; lineEnding = 0; path = TUIAttributedString.h; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.objcpp; };
+ 5ED5669B139DC35100031CDF /* TUIAttributedString.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TUIAttributedString.m; sourceTree = "<group>"; };
+ 5ED566A0139DC35100031CDF /* TUIButton+Content.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "TUIButton+Content.m"; sourceTree = "<group>"; };
+ 5ED566A1139DC35100031CDF /* TUIButton.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TUIButton.h; sourceTree = "<group>"; };
+ 5ED566A2139DC35100031CDF /* TUIButton.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TUIButton.m; sourceTree = "<group>"; };
+ 5ED566A3139DC35100031CDF /* TUIColor.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TUIColor.h; sourceTree = "<group>"; };
+ 5ED566A4139DC35100031CDF /* TUIColor.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TUIColor.m; sourceTree = "<group>"; };
+ 5ED566A5139DC35100031CDF /* TUIControl+TargetAction.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "TUIControl+TargetAction.m"; sourceTree = "<group>"; };
+ 5ED566A6139DC35100031CDF /* TUIControl.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TUIControl.h; sourceTree = "<group>"; };
+ 5ED566A7139DC35100031CDF /* TUIControl.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TUIControl.m; sourceTree = "<group>"; };
+ 5ED566A8139DC35100031CDF /* TUIFastIndexPath.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TUIFastIndexPath.h; sourceTree = "<group>"; };
+ 5ED566A9139DC35100031CDF /* TUIFastIndexPath.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TUIFastIndexPath.m; sourceTree = "<group>"; };
+ 5ED566AA139DC35100031CDF /* TUIFont.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TUIFont.h; sourceTree = "<group>"; };
+ 5ED566AB139DC35100031CDF /* TUIFont.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TUIFont.m; sourceTree = "<group>"; };
+ 5ED566AC139DC35100031CDF /* TUIGeometry.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TUIGeometry.h; sourceTree = "<group>"; };
+ 5ED566AD139DC35100031CDF /* TUIGeometry.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; lineEnding = 0; path = TUIGeometry.m; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.objc; };
+ 5ED566AE139DC35100031CDF /* TUIImage+Drawing.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; lineEnding = 0; path = "TUIImage+Drawing.h"; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.objcpp; };
+ 5ED566AF139DC35100031CDF /* TUIImage+Drawing.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "TUIImage+Drawing.m"; sourceTree = "<group>"; };
+ 5ED566B0139DC35100031CDF /* TUIImage.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TUIImage.h; sourceTree = "<group>"; };
+ 5ED566B1139DC35100031CDF /* TUIImage.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TUIImage.m; sourceTree = "<group>"; };
+ 5ED566B2139DC35100031CDF /* TUIImageView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TUIImageView.h; sourceTree = "<group>"; };
+ 5ED566B3139DC35100031CDF /* TUIImageView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TUIImageView.m; sourceTree = "<group>"; };
+ 5ED566B4139DC35100031CDF /* TUIKit.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TUIKit.h; sourceTree = "<group>"; };
+ 5ED566B5139DC35100031CDF /* TUIKit.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TUIKit.m; sourceTree = "<group>"; };
+ 5ED566B6139DC35100031CDF /* TUILabel.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TUILabel.h; sourceTree = "<group>"; };
+ 5ED566B7139DC35100031CDF /* TUILabel.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TUILabel.m; sourceTree = "<group>"; };
+ 5ED566BE139DC35100031CDF /* TUINSView+Hyperfocus.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "TUINSView+Hyperfocus.h"; sourceTree = "<group>"; };
+ 5ED566BF139DC35100031CDF /* TUINSView+Hyperfocus.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "TUINSView+Hyperfocus.m"; sourceTree = "<group>"; };
+ 5ED566C0139DC35100031CDF /* TUINSView+NSTextInputClient.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "TUINSView+NSTextInputClient.m"; sourceTree = "<group>"; };
+ 5ED566C1139DC35100031CDF /* TUINSView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TUINSView.h; sourceTree = "<group>"; };
+ 5ED566C2139DC35100031CDF /* TUINSView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TUINSView.m; sourceTree = "<group>"; };
+ 5ED566C3139DC35100031CDF /* TUINSWindow.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TUINSWindow.h; sourceTree = "<group>"; };
+ 5ED566C4139DC35100031CDF /* TUINSWindow.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; lineEnding = 0; path = TUINSWindow.m; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.objc; };
+ 5ED566C5139DC35100031CDF /* TUIResponder.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; lineEnding = 0; path = TUIResponder.h; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.objcpp; };
+ 5ED566C6139DC35100031CDF /* TUIResponder.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TUIResponder.m; sourceTree = "<group>"; };
+ 5ED566C7139DC35100031CDF /* TUIScrollKnob.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TUIScrollKnob.h; sourceTree = "<group>"; };
+ 5ED566C8139DC35100031CDF /* TUIScrollKnob.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TUIScrollKnob.m; sourceTree = "<group>"; };
+ 5ED566C9139DC35100031CDF /* TUIScrollView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TUIScrollView.h; sourceTree = "<group>"; };
+ 5ED566CA139DC35100031CDF /* TUIScrollView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TUIScrollView.m; sourceTree = "<group>"; };
+ 5ED566CB139DC35100031CDF /* TUIStringDrawing.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TUIStringDrawing.h; sourceTree = "<group>"; };
+ 5ED566CC139DC35100031CDF /* TUIStringDrawing.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TUIStringDrawing.m; sourceTree = "<group>"; };
+ 5ED566CF139DC35100031CDF /* TUITableView+Additions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "TUITableView+Additions.h"; sourceTree = "<group>"; };
+ 5ED566D0139DC35100031CDF /* TUITableView+Additions.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "TUITableView+Additions.m"; sourceTree = "<group>"; };
+ 5ED566D1139DC35100031CDF /* TUITableView+Derepeater.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "TUITableView+Derepeater.h"; sourceTree = "<group>"; };
+ 5ED566D2139DC35100031CDF /* TUITableView+Derepeater.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "TUITableView+Derepeater.m"; sourceTree = "<group>"; };
+ 5ED566D3139DC35100031CDF /* TUITableView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TUITableView.h; sourceTree = "<group>"; };
+ 5ED566D4139DC35100031CDF /* TUITableView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TUITableView.m; sourceTree = "<group>"; };
+ 5ED566D5139DC35100031CDF /* TUITableViewCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TUITableViewCell.h; sourceTree = "<group>"; };
+ 5ED566D6139DC35100031CDF /* TUITableViewCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TUITableViewCell.m; sourceTree = "<group>"; };
+ 5ED566DB139DC35100031CDF /* TUITextEditor.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TUITextEditor.h; sourceTree = "<group>"; };
+ 5ED566DC139DC35100031CDF /* TUITextEditor.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TUITextEditor.m; sourceTree = "<group>"; };
+ 5ED566DD139DC35100031CDF /* TUITextField.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TUITextField.h; sourceTree = "<group>"; };
+ 5ED566DE139DC35100031CDF /* TUITextField.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TUITextField.m; sourceTree = "<group>"; };
+ 5ED566DF139DC35100031CDF /* TUITextRenderer+Event.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "TUITextRenderer+Event.h"; sourceTree = "<group>"; };
+ 5ED566E0139DC35100031CDF /* TUITextRenderer+Event.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "TUITextRenderer+Event.m"; sourceTree = "<group>"; };
+ 5ED566E1139DC35100031CDF /* TUITextRenderer+KeyBindings.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "TUITextRenderer+KeyBindings.m"; sourceTree = "<group>"; };
+ 5ED566E2139DC35100031CDF /* TUITextRenderer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TUITextRenderer.h; sourceTree = "<group>"; };
+ 5ED566E3139DC35100031CDF /* TUITextRenderer.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TUITextRenderer.m; sourceTree = "<group>"; };
+ 5ED566E4139DC35100031CDF /* TUITextView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TUITextView.h; sourceTree = "<group>"; };
+ 5ED566E5139DC35100031CDF /* TUITextView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TUITextView.m; sourceTree = "<group>"; };
+ 5ED566E6139DC35100031CDF /* TUITooltipWindow.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TUITooltipWindow.h; sourceTree = "<group>"; };
+ 5ED566E7139DC35100031CDF /* TUITooltipWindow.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TUITooltipWindow.m; sourceTree = "<group>"; };
+ 5ED566E8139DC35100031CDF /* TUIView+Animation.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "TUIView+Animation.m"; sourceTree = "<group>"; };
+ 5ED566E9139DC35100031CDF /* TUIView+Event.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "TUIView+Event.h"; sourceTree = "<group>"; };
+ 5ED566EA139DC35100031CDF /* TUIView+Event.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "TUIView+Event.m"; sourceTree = "<group>"; };
+ 5ED566EB139DC35100031CDF /* TUIView+NSTextInputClient.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "TUIView+NSTextInputClient.h"; sourceTree = "<group>"; };
+ 5ED566EC139DC35100031CDF /* TUIView+NSTextInputClient.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "TUIView+NSTextInputClient.m"; sourceTree = "<group>"; };
+ 5ED566ED139DC35100031CDF /* TUIView+PasteboardDragging.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "TUIView+PasteboardDragging.h"; sourceTree = "<group>"; };
+ 5ED566EE139DC35100031CDF /* TUIView+PasteboardDragging.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "TUIView+PasteboardDragging.m"; sourceTree = "<group>"; };
+ 5ED566EF139DC35100031CDF /* TUIView+Private.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "TUIView+Private.h"; sourceTree = "<group>"; };
+ 5ED566F0139DC35100031CDF /* TUIView+Private.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "TUIView+Private.m"; sourceTree = "<group>"; };
+ 5ED566F1139DC35100031CDF /* TUIView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TUIView.h; sourceTree = "<group>"; };
+ 5ED566F2139DC35100031CDF /* TUIView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TUIView.m; sourceTree = "<group>"; };
+ 5ED566F3139DC35100031CDF /* TUIViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TUIViewController.h; sourceTree = "<group>"; };
+ 5ED566F4139DC35100031CDF /* TUIViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TUIViewController.m; sourceTree = "<group>"; };
+ 5ED566F5139DC35100031CDF /* TUIViewNSViewContainer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TUIViewNSViewContainer.h; sourceTree = "<group>"; };
+ 5ED56731139DC35800031CDF /* CoreText+Additions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "CoreText+Additions.h"; path = "../Support/CoreText+Additions.h"; sourceTree = "<group>"; };
+ 5ED56732139DC35800031CDF /* CoreText+Additions.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = "CoreText+Additions.m"; path = "../Support/CoreText+Additions.m"; sourceTree = "<group>"; };
+/* End PBXFileReference section */
+
+/* Begin PBXFrameworksBuildPhase section */
+ 5ED56670139DC30300031CDF /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 5C782FD713A556A900CF69EF /* QuartzCore.framework in Frameworks */,
+ 5C782FD013A54FFF00CF69EF /* ApplicationServices.framework in Frameworks */,
+ 5ED56678139DC30300031CDF /* Cocoa.framework in Frameworks */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXFrameworksBuildPhase section */
+
+/* Begin PBXGroup section */
+ 5C90DB9A13A6D52000ECDD14 /* Extras */ = {
+ isa = PBXGroup;
+ children = (
+ 5C78300313A5776D00CF69EF /* TUICGAdditions.h */,
+ 5C78300413A5778500CF69EF /* TUICGAdditions.m */,
+ 5ED56731139DC35800031CDF /* CoreText+Additions.h */,
+ 5ED56732139DC35800031CDF /* CoreText+Additions.m */,
+ 5C782FA313A541EB00CF69EF /* ABActiveRange.h */,
+ 5C782FA413A541EC00CF69EF /* ABActiveRange.m */,
+ );
+ name = Extras;
+ sourceTree = "<group>";
+ };
+ 5ED56668139DC30300031CDF = {
+ isa = PBXGroup;
+ children = (
+ 5ED5667D139DC30300031CDF /* ConcordeExample */,
+ 5ED56676139DC30300031CDF /* Frameworks */,
+ 5ED56674139DC30300031CDF /* Products */,
+ );
+ sourceTree = "<group>";
+ };
+ 5ED56674139DC30300031CDF /* Products */ = {
+ isa = PBXGroup;
+ children = (
+ 5ED56673139DC30300031CDF /* Example.app */,
+ );
+ name = Products;
+ sourceTree = "<group>";
+ };
+ 5ED56676139DC30300031CDF /* Frameworks */ = {
+ isa = PBXGroup;
+ children = (
+ 5C782FD613A556A800CF69EF /* QuartzCore.framework */,
+ 5C782FCF13A54FFD00CF69EF /* ApplicationServices.framework */,
+ 5ED56677139DC30300031CDF /* Cocoa.framework */,
+ 5ED56679139DC30300031CDF /* Other Frameworks */,
+ );
+ name = Frameworks;
+ sourceTree = "<group>";
+ };
+ 5ED56679139DC30300031CDF /* Other Frameworks */ = {
+ isa = PBXGroup;
+ children = (
+ 5ED5667A139DC30300031CDF /* AppKit.framework */,
+ 5ED5667B139DC30300031CDF /* CoreData.framework */,
+ 5ED5667C139DC30300031CDF /* Foundation.framework */,
+ );
+ name = "Other Frameworks";
+ sourceTree = "<group>";
+ };
+ 5ED5667D139DC30300031CDF /* ConcordeExample */ = {
+ isa = PBXGroup;
+ children = (
+ 5ED56695139DC35100031CDF /* TUIKit */,
+ 5ED56689139DC30300031CDF /* ExampleAppDelegate.h */,
+ 5ED5668A139DC30300031CDF /* ExampleAppDelegate.m */,
+ 5C55D83213A667A0000ED768 /* ExampleView.h */,
+ 5C55D83313A667A0000ED768 /* ExampleView.m */,
+ 5C90DB9B13A7C08D00ECDD14 /* ExampleTabBar.h */,
+ 5C90DB9C13A7C08D00ECDD14 /* ExampleTabBar.m */,
+ 5C55D83513A66BD5000ED768 /* ExampleTableViewCell.h */,
+ 5C55D83613A66BD5000ED768 /* ExampleTableViewCell.m */,
+ 5ED5668C139DC30300031CDF /* MainMenu.xib */,
+ 5ED5667E139DC30300031CDF /* Supporting Files */,
+ );
+ path = ConcordeExample;
+ sourceTree = "<group>";
+ };
+ 5ED5667E139DC30300031CDF /* Supporting Files */ = {
+ isa = PBXGroup;
+ children = (
+ 5C57CF3C13A7E7C00032AC1F /* clock.png */,
+ 5ED5667F139DC30300031CDF /* Example-Info.plist */,
+ 5ED56680139DC30300031CDF /* InfoPlist.strings */,
+ 5ED56683139DC30300031CDF /* Example-Prefix.pch */,
+ 5ED56684139DC30300031CDF /* main.m */,
+ 5ED56686139DC30300031CDF /* Credits.rtf */,
+ );
+ name = "Supporting Files";
+ sourceTree = "<group>";
+ };
+ 5ED56695139DC35100031CDF /* TUIKit */ = {
+ isa = PBXGroup;
+ children = (
+ 5ED566B4139DC35100031CDF /* TUIKit.h */,
+ 5ED566B5139DC35100031CDF /* TUIKit.m */,
+ 5ED566F1139DC35100031CDF /* TUIView.h */,
+ 5ED566F2139DC35100031CDF /* TUIView.m */,
+ 5ED566E8139DC35100031CDF /* TUIView+Animation.m */,
+ 5ED566E9139DC35100031CDF /* TUIView+Event.h */,
+ 5ED566EA139DC35100031CDF /* TUIView+Event.m */,
+ 5ED566EB139DC35100031CDF /* TUIView+NSTextInputClient.h */,
+ 5ED566EC139DC35100031CDF /* TUIView+NSTextInputClient.m */,
+ 5ED566ED139DC35100031CDF /* TUIView+PasteboardDragging.h */,
+ 5ED566EE139DC35100031CDF /* TUIView+PasteboardDragging.m */,
+ 5ED566EF139DC35100031CDF /* TUIView+Private.h */,
+ 5ED566F0139DC35100031CDF /* TUIView+Private.m */,
+ 5ED566F3139DC35100031CDF /* TUIViewController.h */,
+ 5ED566F4139DC35100031CDF /* TUIViewController.m */,
+ 5ED566C1139DC35100031CDF /* TUINSView.h */,
+ 5ED566C2139DC35100031CDF /* TUINSView.m */,
+ 5ED566C3139DC35100031CDF /* TUINSWindow.h */,
+ 5ED566C4139DC35100031CDF /* TUINSWindow.m */,
+ 5ED566B0139DC35100031CDF /* TUIImage.h */,
+ 5ED566B1139DC35100031CDF /* TUIImage.m */,
+ 5ED566AA139DC35100031CDF /* TUIFont.h */,
+ 5ED566AB139DC35100031CDF /* TUIFont.m */,
+ 5ED566A3139DC35100031CDF /* TUIColor.h */,
+ 5ED566A4139DC35100031CDF /* TUIColor.m */,
+ 5ED566C9139DC35100031CDF /* TUIScrollView.h */,
+ 5ED566CA139DC35100031CDF /* TUIScrollView.m */,
+ 5ED566C7139DC35100031CDF /* TUIScrollKnob.h */,
+ 5ED566C8139DC35100031CDF /* TUIScrollKnob.m */,
+ 5ED5669A139DC35100031CDF /* TUIAttributedString.h */,
+ 5ED5669B139DC35100031CDF /* TUIAttributedString.m */,
+ 5ED566A6139DC35100031CDF /* TUIControl.h */,
+ 5ED566A7139DC35100031CDF /* TUIControl.m */,
+ 5ED566DB139DC35100031CDF /* TUITextEditor.h */,
+ 5ED566DC139DC35100031CDF /* TUITextEditor.m */,
+ 5ED566DD139DC35100031CDF /* TUITextField.h */,
+ 5ED566DE139DC35100031CDF /* TUITextField.m */,
+ 5ED566BE139DC35100031CDF /* TUINSView+Hyperfocus.h */,
+ 5ED566BF139DC35100031CDF /* TUINSView+Hyperfocus.m */,
+ 5ED566C0139DC35100031CDF /* TUINSView+NSTextInputClient.m */,
+ 5ED566C5139DC35100031CDF /* TUIResponder.h */,
+ 5ED566C6139DC35100031CDF /* TUIResponder.m */,
+ 5ED566CB139DC35100031CDF /* TUIStringDrawing.h */,
+ 5ED566CC139DC35100031CDF /* TUIStringDrawing.m */,
+ 5ED566D3139DC35100031CDF /* TUITableView.h */,
+ 5ED566D4139DC35100031CDF /* TUITableView.m */,
+ 5ED566CF139DC35100031CDF /* TUITableView+Additions.h */,
+ 5ED566D0139DC35100031CDF /* TUITableView+Additions.m */,
+ 5ED566D1139DC35100031CDF /* TUITableView+Derepeater.h */,
+ 5ED566D2139DC35100031CDF /* TUITableView+Derepeater.m */,
+ 5ED566D5139DC35100031CDF /* TUITableViewCell.h */,
+ 5ED566D6139DC35100031CDF /* TUITableViewCell.m */,
+ 5ED56698139DC35100031CDF /* TUIActivityIndicatorView.h */,
+ 5ED56699139DC35100031CDF /* TUIActivityIndicatorView.m */,
+ 5ED56696139DC35100031CDF /* TUIAccessibility.h */,
+ 5ED56697139DC35100031CDF /* TUIAccessibility.m */,
+ 5ED566A5139DC35100031CDF /* TUIControl+TargetAction.m */,
+ 5ED566AC139DC35100031CDF /* TUIGeometry.h */,
+ 5ED566AD139DC35100031CDF /* TUIGeometry.m */,
+ 5ED566AE139DC35100031CDF /* TUIImage+Drawing.h */,
+ 5ED566AF139DC35100031CDF /* TUIImage+Drawing.m */,
+ 5ED566A8139DC35100031CDF /* TUIFastIndexPath.h */,
+ 5ED566A9139DC35100031CDF /* TUIFastIndexPath.m */,
+ 5ED566B2139DC35100031CDF /* TUIImageView.h */,
+ 5ED566B3139DC35100031CDF /* TUIImageView.m */,
+ 5ED566E4139DC35100031CDF /* TUITextView.h */,
+ 5ED566E5139DC35100031CDF /* TUITextView.m */,
+ 5ED566E2139DC35100031CDF /* TUITextRenderer.h */,
+ 5ED566E3139DC35100031CDF /* TUITextRenderer.m */,
+ 5ED566DF139DC35100031CDF /* TUITextRenderer+Event.h */,
+ 5ED566E0139DC35100031CDF /* TUITextRenderer+Event.m */,
+ 5ED566E1139DC35100031CDF /* TUITextRenderer+KeyBindings.m */,
+ 5ED566E6139DC35100031CDF /* TUITooltipWindow.h */,
+ 5ED566E7139DC35100031CDF /* TUITooltipWindow.m */,
+ 5ED566B6139DC35100031CDF /* TUILabel.h */,
+ 5ED566B7139DC35100031CDF /* TUILabel.m */,
+ 5ED566A1139DC35100031CDF /* TUIButton.h */,
+ 5ED566A2139DC35100031CDF /* TUIButton.m */,
+ 5ED566A0139DC35100031CDF /* TUIButton+Content.m */,
+ 5ED566F5139DC35100031CDF /* TUIViewNSViewContainer.h */,
+ 5C55D83013A663E2000ED768 /* TUIViewNSViewContainer.m */,
+ 5C90DB9A13A6D52000ECDD14 /* Extras */,
+ );
+ name = TUIKit;
+ path = ../../lib/UIKit;
+ sourceTree = "<group>";
+ };
+/* End PBXGroup section */
+
+/* Begin PBXNativeTarget section */
+ 5ED56672139DC30300031CDF /* Example */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = 5ED56691139DC30300031CDF /* Build configuration list for PBXNativeTarget "Example" */;
+ buildPhases = (
+ 5ED5666F139DC30300031CDF /* Sources */,
+ 5ED56670139DC30300031CDF /* Frameworks */,
+ 5ED56671139DC30300031CDF /* Resources */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ );
+ name = Example;
+ productName = ConcordeExample;
+ productReference = 5ED56673139DC30300031CDF /* Example.app */;
+ productType = "com.apple.product-type.application";
+ };
+/* End PBXNativeTarget section */
+
+/* Begin PBXProject section */
+ 5ED5666A139DC30300031CDF /* Project object */ = {
+ isa = PBXProject;
+ buildConfigurationList = 5ED5666D139DC30300031CDF /* Build configuration list for PBXProject "Example" */;
+ compatibilityVersion = "Xcode 3.2";
+ developmentRegion = English;
+ hasScannedForEncodings = 0;
+ knownRegions = (
+ en,
+ );
+ mainGroup = 5ED56668139DC30300031CDF;
+ productRefGroup = 5ED56674139DC30300031CDF /* Products */;
+ projectDirPath = "";
+ projectRoot = "";
+ targets = (
+ 5ED56672139DC30300031CDF /* Example */,
+ );
+ };
+/* End PBXProject section */
+
+/* Begin PBXResourcesBuildPhase section */
+ 5ED56671139DC30300031CDF /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 5ED56682139DC30300031CDF /* InfoPlist.strings in Resources */,
+ 5ED56688139DC30300031CDF /* Credits.rtf in Resources */,
+ 5ED5668E139DC30300031CDF /* MainMenu.xib in Resources */,
+ 5C57CF3D13A7E7C00032AC1F /* clock.png in Resources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXResourcesBuildPhase section */
+
+/* Begin PBXSourcesBuildPhase section */
+ 5ED5666F139DC30300031CDF /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 5ED56685139DC30300031CDF /* main.m in Sources */,
+ 5ED5668B139DC30300031CDF /* ExampleAppDelegate.m in Sources */,
+ 5ED566F7139DC35100031CDF /* TUIAccessibility.m in Sources */,
+ 5ED566F8139DC35100031CDF /* TUIActivityIndicatorView.m in Sources */,
+ 5ED566F9139DC35100031CDF /* TUIAttributedString.m in Sources */,
+ 5ED566FC139DC35100031CDF /* TUIButton+Content.m in Sources */,
+ 5ED566FD139DC35100031CDF /* TUIButton.m in Sources */,
+ 5ED566FE139DC35100031CDF /* TUIColor.m in Sources */,
+ 5ED566FF139DC35100031CDF /* TUIControl+TargetAction.m in Sources */,
+ 5ED56700139DC35100031CDF /* TUIControl.m in Sources */,
+ 5ED56701139DC35100031CDF /* TUIFastIndexPath.m in Sources */,
+ 5ED56702139DC35100031CDF /* TUIFont.m in Sources */,
+ 5ED56703139DC35100031CDF /* TUIGeometry.m in Sources */,
+ 5ED56704139DC35100031CDF /* TUIImage+Drawing.m in Sources */,
+ 5ED56705139DC35100031CDF /* TUIImage.m in Sources */,
+ 5ED56706139DC35100031CDF /* TUIImageView.m in Sources */,
+ 5ED56707139DC35100031CDF /* TUIKit.m in Sources */,
+ 5ED56708139DC35100031CDF /* TUILabel.m in Sources */,
+ 5ED5670C139DC35100031CDF /* TUINSView+Hyperfocus.m in Sources */,
+ 5ED5670D139DC35100031CDF /* TUINSView+NSTextInputClient.m in Sources */,
+ 5ED5670E139DC35100031CDF /* TUINSView.m in Sources */,
+ 5ED5670F139DC35100031CDF /* TUINSWindow.m in Sources */,
+ 5ED56710139DC35100031CDF /* TUIResponder.m in Sources */,
+ 5ED56711139DC35100031CDF /* TUIScrollKnob.m in Sources */,
+ 5ED56712139DC35100031CDF /* TUIScrollView.m in Sources */,
+ 5ED56713139DC35100031CDF /* TUIStringDrawing.m in Sources */,
+ 5ED56715139DC35100031CDF /* TUITableView+Additions.m in Sources */,
+ 5ED56716139DC35100031CDF /* TUITableView+Derepeater.m in Sources */,
+ 5ED56717139DC35100031CDF /* TUITableView.m in Sources */,
+ 5ED56718139DC35100031CDF /* TUITableViewCell.m in Sources */,
+ 5ED5671B139DC35100031CDF /* TUITextEditor.m in Sources */,
+ 5ED5671C139DC35100031CDF /* TUITextField.m in Sources */,
+ 5ED5671D139DC35100031CDF /* TUITextRenderer+Event.m in Sources */,
+ 5ED5671E139DC35100031CDF /* TUITextRenderer+KeyBindings.m in Sources */,
+ 5ED5671F139DC35100031CDF /* TUITextRenderer.m in Sources */,
+ 5ED56720139DC35100031CDF /* TUITextView.m in Sources */,
+ 5ED56721139DC35100031CDF /* TUITooltipWindow.m in Sources */,
+ 5ED56722139DC35100031CDF /* TUIView+Animation.m in Sources */,
+ 5ED56723139DC35100031CDF /* TUIView+Event.m in Sources */,
+ 5ED56724139DC35100031CDF /* TUIView+NSTextInputClient.m in Sources */,
+ 5ED56725139DC35100031CDF /* TUIView+PasteboardDragging.m in Sources */,
+ 5ED56726139DC35100031CDF /* TUIView+Private.m in Sources */,
+ 5ED56727139DC35100031CDF /* TUIView.m in Sources */,
+ 5ED56728139DC35100031CDF /* TUIViewController.m in Sources */,
+ 5ED56736139DC35800031CDF /* CoreText+Additions.m in Sources */,
+ 5C782FA513A541EC00CF69EF /* ABActiveRange.m in Sources */,
+ 5C78300513A577B100CF69EF /* TUICGAdditions.m in Sources */,
+ 5C55D83113A663E2000ED768 /* TUIViewNSViewContainer.m in Sources */,
+ 5C55D83413A667A0000ED768 /* ExampleView.m in Sources */,
+ 5C55D83713A66BD5000ED768 /* ExampleTableViewCell.m in Sources */,
+ 5C90DB9D13A7C08E00ECDD14 /* ExampleTabBar.m in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXSourcesBuildPhase section */
+
+/* Begin PBXVariantGroup section */
+ 5ED56680139DC30300031CDF /* InfoPlist.strings */ = {
+ isa = PBXVariantGroup;
+ children = (
+ 5ED56681139DC30300031CDF /* en */,
+ );
+ name = InfoPlist.strings;
+ sourceTree = "<group>";
+ };
+ 5ED56686139DC30300031CDF /* Credits.rtf */ = {
+ isa = PBXVariantGroup;
+ children = (
+ 5ED56687139DC30300031CDF /* en */,
+ );
+ name = Credits.rtf;
+ sourceTree = "<group>";
+ };
+ 5ED5668C139DC30300031CDF /* MainMenu.xib */ = {
+ isa = PBXVariantGroup;
+ children = (
+ 5ED5668D139DC30300031CDF /* en */,
+ );
+ name = MainMenu.xib;
+ sourceTree = "<group>";
+ };
+/* End PBXVariantGroup section */
+
+/* Begin XCBuildConfiguration section */
+ 5ED5668F139DC30300031CDF /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_OPTIMIZATION_LEVEL = 0;
+ GCC_PREPROCESSOR_DEFINITIONS = NS_BUILD_32_LIKE_64;
+ GCC_SYMBOLS_PRIVATE_EXTERN = NO;
+ GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ MACOSX_DEPLOYMENT_TARGET = 10.6;
+ ONLY_ACTIVE_ARCH = YES;
+ SDKROOT = macosx;
+ };
+ name = Debug;
+ };
+ 5ED56690139DC30300031CDF /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_PREPROCESSOR_DEFINITIONS = NS_BUILD_32_LIKE_64;
+ GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ MACOSX_DEPLOYMENT_TARGET = 10.6;
+ SDKROOT = macosx;
+ };
+ name = Release;
+ };
+ 5ED56692139DC30300031CDF /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ COPY_PHASE_STRIP = NO;
+ GCC_DYNAMIC_NO_PIC = NO;
+ GCC_ENABLE_OBJC_EXCEPTIONS = YES;
+ GCC_PRECOMPILE_PREFIX_HEADER = YES;
+ GCC_PREFIX_HEADER = "ConcordeExample/Example-Prefix.pch";
+ INFOPLIST_FILE = "ConcordeExample/Example-Info.plist";
+ PRODUCT_NAME = Example;
+ WRAPPER_EXTENSION = app;
+ };
+ name = Debug;
+ };
+ 5ED56693139DC30300031CDF /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ COPY_PHASE_STRIP = YES;
+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+ GCC_ENABLE_OBJC_EXCEPTIONS = YES;
+ GCC_PRECOMPILE_PREFIX_HEADER = YES;
+ GCC_PREFIX_HEADER = "ConcordeExample/Example-Prefix.pch";
+ INFOPLIST_FILE = "ConcordeExample/Example-Info.plist";
+ PRODUCT_NAME = Example;
+ WRAPPER_EXTENSION = app;
+ };
+ name = Release;
+ };
+/* End XCBuildConfiguration section */
+
+/* Begin XCConfigurationList section */
+ 5ED5666D139DC30300031CDF /* Build configuration list for PBXProject "Example" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 5ED5668F139DC30300031CDF /* Debug */,
+ 5ED56690139DC30300031CDF /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ 5ED56691139DC30300031CDF /* Build configuration list for PBXNativeTarget "Example" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 5ED56692139DC30300031CDF /* Debug */,
+ 5ED56693139DC30300031CDF /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+/* End XCConfigurationList section */
+ };
+ rootObject = 5ED5666A139DC30300031CDF /* Project object */;
+}
View
7 ExampleProject/Example.xcodeproj/project.xcworkspace/contents.xcworkspacedata
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Workspace
+ version = "1.0">
+ <FileRef
+ location = "self:Example.xcodeproj">
+ </FileRef>
+</Workspace>
View
189 LICENSE.txt
@@ -0,0 +1,189 @@
+
+ Copyright 2011 Twitter, Inc.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this work except in compliance with the License.
+ You may obtain a copy of the License below, or at:
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
View
0 README
No changes.
View
67 README.md
@@ -0,0 +1,67 @@
+# TwUI 0.1.0
+
+TwUI is a hardware accelerated UI framework for Mac, inspired by UIKit. It enables:
+
+* GPU accelerated rendering backed by CoreAnimation
+* Simple model/view/controller development familiar to iOS developers
+
+It differs from UIKit in a few ways:
+
+* Simplified table view cells
+* Block-based layout and drawRect
+* A consistent coordinate system (bottom left origin)
+* Sub-pixel text rendering
+
+# 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.
+
+# 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.
+
+# 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).
+
+# Status
+
+TwUI should be considered an alpha project. It is current shipping in Twitter for Mac, in use 24/7 by many, many users and has proven itself very stable. The code still has a few Twitter-for-Mac-isms that should be refactored and cleaned up.
+
+This project follows the [SemVer](http://semver.org/) standard. The API may change in backward 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:
+
+* Accessibility. It would be great to bridge the AppKit accessibility APIs to something simpler, again, inspired by UIKit.
+
+* 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.
+
+* Reverse-hosting. Right now TUIViews may be hosted inside of an existing NSView hierarchy. It would be useful if the reverse were possible, adding NSViews inside of TUIViews. Doing so in a robust way so event routing, the responder chain, and CAAnimations all just work is a challenge.
+
+# Documentation
+
+You can generate documentation with [doxygen](http://www.doxygen.org). Install it, and then run:
+> cd docs
+> doxygen
+
+Documentation is a work in progress, but the API will be familiar if you have used UIKit.
+
+# Copyright and License
+
+Copyright 2011 Twitter, Inc.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this work except in compliance with the License.
+ You may obtain a copy of the License in the LICENSE file, or at:
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
View
2 docs/.gitignore
@@ -0,0 +1,2 @@
+html
+latex
View
1,716 docs/Doxyfile
@@ -0,0 +1,1716 @@
+# Doxyfile 1.7.4
+
+# This file describes the settings to be used by the documentation system
+# doxygen (www.doxygen.org) for a project.
+#
+# All text after a hash (#) is considered a comment and will be ignored.
+# The format is:
+# TAG = value [value, ...]
+# For lists items can also be appended using:
+# TAG += value [value, ...]
+# Values that contain spaces should be placed between quotes (" ").
+
+#---------------------------------------------------------------------------
+# Project related configuration options
+#---------------------------------------------------------------------------
+
+# This tag specifies the encoding used for all characters in the config file
+# that follow. The default is UTF-8 which is also the encoding used for all
+# text before the first occurrence of this tag. Doxygen uses libiconv (or the
+# iconv built into libc) for the transcoding. See
+# http://www.gnu.org/software/libiconv for the list of possible encodings.
+
+DOXYFILE_ENCODING = UTF-8
+
+# The PROJECT_NAME tag is a single word (or a sequence of words surrounded
+# by quotes) that should identify the project.
+
+PROJECT_NAME = TwUI
+
+# The PROJECT_NUMBER tag can be used to enter a project or revision number.
+# This could be handy for archiving the generated documentation or
+# if some version control system is used.
+
+PROJECT_NUMBER = 1
+
+# Using the PROJECT_BRIEF tag one can provide an optional one line description
+# for a project that appears at the top of each page and should give viewer
+# a quick idea about the purpose of the project. Keep the description short.
+
+PROJECT_BRIEF = Accelerated UI framework for Mac
+
+# With the PROJECT_LOGO tag one can specify an logo or icon that is
+# included in the documentation. The maximum height of the logo should not
+# exceed 55 pixels and the maximum width should not exceed 200 pixels.
+# Doxygen will copy the logo to the output directory.
+
+PROJECT_LOGO =
+
+# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute)
+# base path where the generated documentation will be put.
+# If a relative path is entered, it will be relative to the location
+# where doxygen was started. If left blank the current directory will be used.
+
+OUTPUT_DIRECTORY =
+
+# If the CREATE_SUBDIRS tag is set to YES, then doxygen will create
+# 4096 sub-directories (in 2 levels) under the output directory of each output
+# format and will distribute the generated files over these directories.
+# Enabling this option can be useful when feeding doxygen a huge amount of
+# source files, where putting all generated files in the same directory would
+# otherwise cause performance problems for the file system.
+
+CREATE_SUBDIRS = NO
+
+# The OUTPUT_LANGUAGE tag is used to specify the language in which all
+# documentation generated by doxygen is written. Doxygen will use this
+# information to generate all constant output in the proper language.
+# The default language is English, other supported languages are:
+# Afrikaans, Arabic, Brazilian, Catalan, Chinese, Chinese-Traditional,
+# Croatian, Czech, Danish, Dutch, Esperanto, Farsi, Finnish, French, German,
+# Greek, Hungarian, Italian, Japanese, Japanese-en (Japanese with English
+# messages), Korean, Korean-en, Lithuanian, Norwegian, Macedonian, Persian,
+# Polish, Portuguese, Romanian, Russian, Serbian, Serbian-Cyrillic, Slovak,
+# Slovene, Spanish, Swedish, Ukrainian, and Vietnamese.
+
+OUTPUT_LANGUAGE = English
+
+# If the BRIEF_MEMBER_DESC tag is set to YES (the default) Doxygen will
+# include brief member descriptions after the members that are listed in
+# the file and class documentation (similar to JavaDoc).
+# Set to NO to disable this.
+
+BRIEF_MEMBER_DESC = YES
+
+# If the REPEAT_BRIEF tag is set to YES (the default) Doxygen will prepend
+# the brief description of a member or function before the detailed description.
+# Note: if both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the
+# brief descriptions will be completely suppressed.
+
+REPEAT_BRIEF = YES
+
+# This tag implements a quasi-intelligent brief description abbreviator
+# that is used to form the text in various listings. Each string
+# in this list, if found as the leading text of the brief description, will be
+# stripped from the text and the result after processing the whole list, is
+# used as the annotated text. Otherwise, the brief description is used as-is.
+# If left blank, the following values are used ("$name" is automatically
+# replaced with the name of the entity): "The $name class" "The $name widget"
+# "The $name file" "is" "provides" "specifies" "contains"
+# "represents" "a" "an" "the"
+
+ABBREVIATE_BRIEF =
+
+# If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then
+# Doxygen will generate a detailed section even if there is only a brief
+# description.
+
+ALWAYS_DETAILED_SEC = NO
+
+# If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all
+# inherited members of a class in the documentation of that class as if those
+# members were ordinary class members. Constructors, destructors and assignment
+# operators of the base classes will not be shown.
+
+INLINE_INHERITED_MEMB = NO
+
+# If the FULL_PATH_NAMES tag is set to YES then Doxygen will prepend the full
+# path before files name in the file list and in the header files. If set
+# to NO the shortest path that makes the file name unique will be used.
+
+FULL_PATH_NAMES = YES
+
+# If the FULL_PATH_NAMES tag is set to YES then the STRIP_FROM_PATH tag
+# can be used to strip a user-defined part of the path. Stripping is
+# only done if one of the specified strings matches the left-hand part of
+# the path. The tag can be used to show relative paths in the file list.
+# If left blank the directory from which doxygen is run is used as the
+# path to strip.
+
+STRIP_FROM_PATH =
+
+# The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of
+# the path mentioned in the documentation of a class, which tells
+# the reader which header file to include in order to use a class.
+# If left blank only the name of the header file containing the class
+# definition is used. Otherwise one should specify the include paths that
+# are normally passed to the compiler using the -I flag.
+
+STRIP_FROM_INC_PATH =
+
+# If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter
+# (but less readable) file names. This can be useful if your file system
+# doesn't support long names like on DOS, Mac, or CD-ROM.
+
+SHORT_NAMES = NO
+
+# If the JAVADOC_AUTOBRIEF tag is set to YES then Doxygen
+# will interpret the first line (until the first dot) of a JavaDoc-style
+# comment as the brief description. If set to NO, the JavaDoc
+# comments will behave just like regular Qt-style comments
+# (thus requiring an explicit @brief command for a brief description.)
+
+JAVADOC_AUTOBRIEF = NO
+
+# If the QT_AUTOBRIEF tag is set to YES then Doxygen will
+# interpret the first line (until the first dot) of a Qt-style
+# comment as the brief description. If set to NO, the comments
+# will behave just like regular Qt-style comments (thus requiring
+# an explicit \brief command for a brief description.)
+
+QT_AUTOBRIEF = NO
+
+# The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make Doxygen
+# treat a multi-line C++ special comment block (i.e. a block of //! or ///
+# comments) as a brief description. This used to be the default behaviour.
+# The new default is to treat a multi-line C++ comment block as a detailed
+# description. Set this tag to YES if you prefer the old behaviour instead.
+
+MULTILINE_CPP_IS_BRIEF = NO
+
+# If the INHERIT_DOCS tag is set to YES (the default) then an undocumented
+# member inherits the documentation from any documented member that it
+# re-implements.
+
+INHERIT_DOCS = YES
+
+# If the SEPARATE_MEMBER_PAGES tag is set to YES, then doxygen will produce
+# a new page for each member. If set to NO, the documentation of a member will
+# be part of the file/class/namespace that contains it.
+
+SEPARATE_MEMBER_PAGES = NO
+
+# The TAB_SIZE tag can be used to set the number of spaces in a tab.
+# Doxygen uses this value to replace tabs by spaces in code fragments.
+
+TAB_SIZE = 8
+
+# This tag can be used to specify a number of aliases that acts
+# as commands in the documentation. An alias has the form "name=value".
+# For example adding "sideeffect=\par Side Effects:\n" will allow you to
+# put the command \sideeffect (or @sideeffect) in the documentation, which
+# will result in a user-defined paragraph with heading "Side Effects:".
+# You can put \n's in the value part of an alias to insert newlines.
+
+ALIASES =
+
+# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C
+# sources only. Doxygen will then generate output that is more tailored for C.
+# For instance, some of the names that are used will be different. The list
+# of all members will be omitted, etc.
+
+OPTIMIZE_OUTPUT_FOR_C = NO
+
+# Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java
+# sources only. Doxygen will then generate output that is more tailored for
+# Java. For instance, namespaces will be presented as packages, qualified
+# scopes will look different, etc.
+
+OPTIMIZE_OUTPUT_JAVA = NO
+
+# Set the OPTIMIZE_FOR_FORTRAN tag to YES if your project consists of Fortran
+# sources only. Doxygen will then generate output that is more tailored for
+# Fortran.
+
+OPTIMIZE_FOR_FORTRAN = NO
+
+# Set the OPTIMIZE_OUTPUT_VHDL tag to YES if your project consists of VHDL
+# sources. Doxygen will then generate output that is tailored for
+# VHDL.
+
+OPTIMIZE_OUTPUT_VHDL = NO
+
+# Doxygen selects the parser to use depending on the extension of the files it
+# parses. With this tag you can assign which parser to use for a given extension.
+# Doxygen has a built-in mapping, but you can override or extend it using this
+# tag. The format is ext=language, where ext is a file extension, and language
+# is one of the parsers supported by doxygen: IDL, Java, Javascript, CSharp, C,
+# C++, D, PHP, Objective-C, Python, Fortran, VHDL, C, C++. For instance to make
+# doxygen treat .inc files as Fortran files (default is PHP), and .f files as C
+# (default is Fortran), use: inc=Fortran f=C. Note that for custom extensions
+# you also need to set FILE_PATTERNS otherwise the files are not read by doxygen.
+
+EXTENSION_MAPPING =
+
+# If you use STL classes (i.e. std::string, std::vector, etc.) but do not want
+# to include (a tag file for) the STL sources as input, then you should
+# set this tag to YES in order to let doxygen match functions declarations and
+# definitions whose arguments contain STL classes (e.g. func(std::string); v.s.
+# func(std::string) {}). This also makes the inheritance and collaboration
+# diagrams that involve STL classes more complete and accurate.
+
+BUILTIN_STL_SUPPORT = NO
+
+# If you use Microsoft's C++/CLI language, you should set this option to YES to
+# enable parsing support.
+
+CPP_CLI_SUPPORT = NO
+
+# Set the SIP_SUPPORT tag to YES if your project consists of sip sources only.
+# Doxygen will parse them like normal C++ but will assume all classes use public
+# instead of private inheritance when no explicit protection keyword is present.
+
+SIP_SUPPORT = NO
+
+# For Microsoft's IDL there are propget and propput attributes to indicate getter
+# and setter methods for a property. Setting this option to YES (the default)
+# will make doxygen replace the get and set methods by a property in the
+# documentation. This will only work if the methods are indeed getting or
+# setting a simple type. If this is not the case, or you want to show the
+# methods anyway, you should set this option to NO.
+
+IDL_PROPERTY_SUPPORT = YES
+
+# If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC
+# tag is set to YES, then doxygen will reuse the documentation of the first
+# member in the group (if any) for the other members of the group. By default
+# all members of a group must be documented explicitly.
+
+DISTRIBUTE_GROUP_DOC = NO
+
+# Set the SUBGROUPING tag to YES (the default) to allow class member groups of
+# the same type (for instance a group of public functions) to be put as a
+# subgroup of that type (e.g. under the Public Functions section). Set it to
+# NO to prevent subgrouping. Alternatively, this can be done per class using
+# the \nosubgrouping command.
+
+SUBGROUPING = YES
+
+# When the INLINE_GROUPED_CLASSES tag is set to YES, classes, structs and
+# unions are shown inside the group in which they are included (e.g. using
+# @ingroup) instead of on a separate page (for HTML and Man pages) or
+# section (for LaTeX and RTF).
+
+INLINE_GROUPED_CLASSES = NO
+
+# When TYPEDEF_HIDES_STRUCT is enabled, a typedef of a struct, union, or enum
+# is documented as struct, union, or enum with the name of the typedef. So
+# typedef struct TypeS {} TypeT, will appear in the documentation as a struct
+# with name TypeT. When disabled the typedef will appear as a member of a file,
+# namespace, or class. And the struct will be named TypeS. This can typically
+# be useful for C code in case the coding convention dictates that all compound
+# types are typedef'ed and only the typedef is referenced, never the tag name.
+
+TYPEDEF_HIDES_STRUCT = NO
+
+# The SYMBOL_CACHE_SIZE determines the size of the internal cache use to
+# determine which symbols to keep in memory and which to flush to disk.
+# When the cache is full, less often used symbols will be written to disk.
+# For small to medium size projects (<1000 input files) the default value is
+# probably good enough. For larger projects a too small cache size can cause
+# doxygen to be busy swapping symbols to and from disk most of the time
+# causing a significant performance penalty.
+# If the system has enough physical memory increasing the cache will improve the
+# performance by keeping more symbols in memory. Note that the value works on
+# a logarithmic scale so increasing the size by one will roughly double the
+# memory usage. The cache size is given by this formula:
+# 2^(16+SYMBOL_CACHE_SIZE). The valid range is 0..9, the default is 0,
+# corresponding to a cache size of 2^16 = 65536 symbols
+
+SYMBOL_CACHE_SIZE = 0
+
+#---------------------------------------------------------------------------
+# Build related configuration options
+#---------------------------------------------------------------------------
+
+# If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in
+# documentation are documented, even if no documentation was available.
+# Private class members and static file members will be hidden unless
+# the EXTRACT_PRIVATE and EXTRACT_STATIC tags are set to YES
+
+EXTRACT_ALL = NO
+
+# If the EXTRACT_PRIVATE tag is set to YES all private members of a class
+# will be included in the documentation.
+
+EXTRACT_PRIVATE = NO
+
+# If the EXTRACT_STATIC tag is set to YES all static members of a file
+# will be included in the documentation.
+
+EXTRACT_STATIC = NO
+
+# If the EXTRACT_LOCAL_CLASSES tag is set to YES classes (and structs)
+# defined locally in source files will be included in the documentation.
+# If set to NO only classes defined in header files are included.
+
+EXTRACT_LOCAL_CLASSES = YES
+
+# This flag is only useful for Objective-C code. When set to YES local
+# methods, which are defined in the implementation section but not in
+# the interface are included in the documentation.
+# If set to NO (the default) only methods in the interface are included.
+
+EXTRACT_LOCAL_METHODS = NO
+
+# If this flag is set to YES, the members of anonymous namespaces will be
+# extracted and appear in the documentation as a namespace called
+# 'anonymous_namespace{file}', where file will be replaced with the base
+# name of the file that contains the anonymous namespace. By default
+# anonymous namespaces are hidden.
+
+EXTRACT_ANON_NSPACES = NO
+
+# If the HIDE_UNDOC_MEMBERS tag is set to YES, Doxygen will hide all
+# undocumented members of documented classes, files or namespaces.
+# If set to NO (the default) these members will be included in the
+# various overviews, but no documentation section is generated.
+# This option has no effect if EXTRACT_ALL is enabled.
+
+HIDE_UNDOC_MEMBERS = NO
+
+# If the HIDE_UNDOC_CLASSES tag is set to YES, Doxygen will hide all
+# undocumented classes that are normally visible in the class hierarchy.
+# If set to NO (the default) these classes will be included in the various
+# overviews. This option has no effect if EXTRACT_ALL is enabled.
+
+HIDE_UNDOC_CLASSES = NO
+
+# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, Doxygen will hide all
+# friend (class|struct|union) declarations.
+# If set to NO (the default) these declarations will be included in the
+# documentation.
+
+HIDE_FRIEND_COMPOUNDS = NO
+
+# If the HIDE_IN_BODY_DOCS tag is set to YES, Doxygen will hide any
+# documentation blocks found inside the body of a function.
+# If set to NO (the default) these blocks will be appended to the
+# function's detailed documentation block.
+
+HIDE_IN_BODY_DOCS = NO
+
+# The INTERNAL_DOCS tag determines if documentation
+# that is typed after a \internal command is included. If the tag is set
+# to NO (the default) then the documentation will be excluded.
+# Set it to YES to include the internal documentation.
+
+INTERNAL_DOCS = NO
+
+# If the CASE_SENSE_NAMES tag is set to NO then Doxygen will only generate
+# file names in lower-case letters. If set to YES upper-case letters are also
+# allowed. This is useful if you have classes or files whose names only differ
+# in case and if your file system supports case sensitive file names. Windows
+# and Mac users are advised to set this option to NO.
+
+CASE_SENSE_NAMES = NO
+
+# If the HIDE_SCOPE_NAMES tag is set to NO (the default) then Doxygen
+# will show members with their full class and namespace scopes in the
+# documentation. If set to YES the scope will be hidden.
+
+HIDE_SCOPE_NAMES = NO
+
+# If the SHOW_INCLUDE_FILES tag is set to YES (the default) then Doxygen
+# will put a list of the files that are included by a file in the documentation
+# of that file.
+
+SHOW_INCLUDE_FILES = YES
+
+# If the FORCE_LOCAL_INCLUDES tag is set to YES then Doxygen
+# will list include files with double quotes in the documentation
+# rather than with sharp brackets.
+
+FORCE_LOCAL_INCLUDES = NO
+
+# If the INLINE_INFO tag is set to YES (the default) then a tag [inline]
+# is inserted in the documentation for inline members.
+
+INLINE_INFO = YES
+
+# If the SORT_MEMBER_DOCS tag is set to YES (the default) then doxygen
+# will sort the (detailed) documentation of file and class members
+# alphabetically by member name. If set to NO the members will appear in
+# declaration order.
+
+SORT_MEMBER_DOCS = YES
+
+# If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the
+# brief documentation of file, namespace and class members alphabetically
+# by member name. If set to NO (the default) the members will appear in
+# declaration order.
+
+SORT_BRIEF_DOCS = NO
+
+# If the SORT_MEMBERS_CTORS_1ST tag is set to YES then doxygen
+# will sort the (brief and detailed) documentation of class members so that
+# constructors and destructors are listed first. If set to NO (the default)
+# the constructors will appear in the respective orders defined by
+# SORT_MEMBER_DOCS and SORT_BRIEF_DOCS.
+# This tag will be ignored for brief docs if SORT_BRIEF_DOCS is set to NO
+# and ignored for detailed docs if SORT_MEMBER_DOCS is set to NO.
+
+SORT_MEMBERS_CTORS_1ST = NO
+
+# If the SORT_GROUP_NAMES tag is set to YES then doxygen will sort the
+# hierarchy of group names into alphabetical order. If set to NO (the default)
+# the group names will appear in their defined order.
+
+SORT_GROUP_NAMES = NO
+
+# If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be
+# sorted by fully-qualified names, including namespaces. If set to
+# NO (the default), the class list will be sorted only by class name,
+# not including the namespace part.
+# Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES.
+# Note: This option applies only to the class list, not to the
+# alphabetical list.
+
+SORT_BY_SCOPE_NAME = NO
+
+# If the STRICT_PROTO_MATCHING option is enabled and doxygen fails to
+# do proper type resolution of all parameters of a function it will reject a
+# match between the prototype and the implementation of a member function even
+# if there is only one candidate or it is obvious which candidate to choose
+# by doing a simple string match. By disabling STRICT_PROTO_MATCHING doxygen
+# will still accept a match between prototype and implementation in such cases.
+
+STRICT_PROTO_MATCHING = NO
+
+# The GENERATE_TODOLIST tag can be used to enable (YES) or
+# disable (NO) the todo list. This list is created by putting \todo
+# commands in the documentation.
+
+GENERATE_TODOLIST = YES
+
+# The GENERATE_TESTLIST tag can be used to enable (YES) or
+# disable (NO) the test list. This list is created by putting \test
+# commands in the documentation.
+
+GENERATE_TESTLIST = YES
+
+# The GENERATE_BUGLIST tag can be used to enable (YES) or
+# disable (NO) the bug list. This list is created by putting \bug
+# commands in the documentation.
+
+GENERATE_BUGLIST = YES
+
+# The GENERATE_DEPRECATEDLIST tag can be used to enable (YES) or
+# disable (NO) the deprecated list. This list is created by putting
+# \deprecated commands in the documentation.
+
+GENERATE_DEPRECATEDLIST= YES
+
+# The ENABLED_SECTIONS tag can be used to enable conditional
+# documentation sections, marked by \if sectionname ... \endif.
+
+ENABLED_SECTIONS =
+
+# The MAX_INITIALIZER_LINES tag determines the maximum number of lines
+# the initial value of a variable or macro consists of for it to appear in
+# the documentation. If the initializer consists of more lines than specified
+# here it will be hidden. Use a value of 0 to hide initializers completely.
+# The appearance of the initializer of individual variables and macros in the
+# documentation can be controlled using \showinitializer or \hideinitializer
+# command in the documentation regardless of this setting.
+
+MAX_INITIALIZER_LINES = 30
+
+# Set the SHOW_USED_FILES tag to NO to disable the list of files generated
+# at the bottom of the documentation of classes and structs. If set to YES the
+# list will mention the files that were used to generate the documentation.
+
+SHOW_USED_FILES = YES
+
+# If the sources in your project are distributed over multiple directories
+# then setting the SHOW_DIRECTORIES tag to YES will show the directory hierarchy
+# in the documentation. The default is NO.
+
+SHOW_DIRECTORIES = NO
+
+# Set the SHOW_FILES tag to NO to disable the generation of the Files page.
+# This will remove the Files entry from the Quick Index and from the
+# Folder Tree View (if specified). The default is YES.
+
+SHOW_FILES = YES
+
+# Set the SHOW_NAMESPACES tag to NO to disable the generation of the
+# Namespaces page.
+# This will remove the Namespaces entry from the Quick Index
+# and from the Folder Tree View (if specified). The default is YES.
+
+SHOW_NAMESPACES = YES
+
+# The FILE_VERSION_FILTER tag can be used to specify a program or script that
+# doxygen should invoke to get the current version for each file (typically from
+# the version control system). Doxygen will invoke the program by executing (via
+# popen()) the command <command> <input-file>, where <command> is the value of
+# the FILE_VERSION_FILTER tag, and <input-file> is the name of an input file
+# provided by doxygen. Whatever the program writes to standard output
+# is used as the file version. See the manual for examples.
+
+FILE_VERSION_FILTER =
+
+# The LAYOUT_FILE tag can be used to specify a layout file which will be parsed
+# by doxygen. The layout file controls the global structure of the generated
+# output files in an output format independent way. The create the layout file
+# that represents doxygen's defaults, run doxygen with the -l option.
+# You can optionally specify a file name after the option, if omitted
+# DoxygenLayout.xml will be used as the name of the layout file.
+
+LAYOUT_FILE =
+
+#---------------------------------------------------------------------------
+# configuration options related to warning and progress messages
+#---------------------------------------------------------------------------
+
+# The QUIET tag can be used to turn on/off the messages that are generated
+# by doxygen. Possible values are YES and NO. If left blank NO is used.
+
+QUIET = NO
+
+# The WARNINGS tag can be used to turn on/off the warning messages that are
+# generated by doxygen. Possible values are YES and NO. If left blank
+# NO is used.
+
+WARNINGS = YES
+
+# If WARN_IF_UNDOCUMENTED is set to YES, then doxygen will generate warnings
+# for undocumented members. If EXTRACT_ALL is set to YES then this flag will
+# automatically be disabled.
+
+WARN_IF_UNDOCUMENTED = YES
+
+# If WARN_IF_DOC_ERROR is set to YES, doxygen will generate warnings for
+# potential errors in the documentation, such as not documenting some
+# parameters in a documented function, or documenting parameters that
+# don't exist or using markup commands wrongly.
+
+WARN_IF_DOC_ERROR = YES
+
+# The WARN_NO_PARAMDOC option can be enabled to get warnings for
+# functions that are documented, but have no documentation for their parameters
+# or return value. If set to NO (the default) doxygen will only warn about
+# wrong or incomplete parameter documentation, but not about the absence of
+# documentation.
+
+WARN_NO_PARAMDOC = NO
+
+# The WARN_FORMAT tag determines the format of the warning messages that
+# doxygen can produce. The string should contain the $file, $line, and $text
+# tags, which will be replaced by the file and line number from which the
+# warning originated and the warning text. Optionally the format may contain
+# $version, which will be replaced by the version of the file (if it could
+# be obtained via FILE_VERSION_FILTER)
+
+WARN_FORMAT = "$file:$line: $text"
+
+# The WARN_LOGFILE tag can be used to specify a file to which warning
+# and error messages should be written. If left blank the output is written
+# to stderr.
+
+WARN_LOGFILE =
+
+#---------------------------------------------------------------------------
+# configuration options related to the input files
+#---------------------------------------------------------------------------
+
+# The INPUT tag can be used to specify the files and/or directories that contain
+# documented source files. You may enter file names like "myfile.cpp" or
+# directories like "/usr/src/myproject". Separate the files or directories
+# with spaces.
+
+INPUT = ../lib
+
+# This tag can be used to specify the character encoding of the source files
+# that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is
+# also the default input encoding. Doxygen uses libiconv (or the iconv built
+# into libc) for the transcoding. See http://www.gnu.org/software/libiconv for
+# the list of possible encodings.
+
+INPUT_ENCODING = UTF-8
+
+# If the value of the INPUT tag contains directories, you can use the
+# FILE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp
+# and *.h) to filter out the source-files in the directories. If left
+# blank the following patterns are tested:
+# *.c *.cc *.cxx *.cpp *.c++ *.d *.java *.ii *.ixx *.ipp *.i++ *.inl *.h *.hh
+# *.hxx *.hpp *.h++ *.idl *.odl *.cs *.php *.php3 *.inc *.m *.mm *.dox *.py
+# *.f90 *.f *.for *.vhd *.vhdl
+
+FILE_PATTERNS =
+
+# The RECURSIVE tag can be used to turn specify whether or not subdirectories
+# should be searched for input files as well. Possible values are YES and NO.
+# If left blank NO is used.
+
+RECURSIVE = YES
+
+# The EXCLUDE tag can be used to specify files and/or directories that should
+# excluded from the INPUT source files. This way you can easily exclude a
+# subdirectory from a directory tree whose root is specified with the INPUT tag.
+
+EXCLUDE =
+
+# The EXCLUDE_SYMLINKS tag can be used select whether or not files or
+# directories that are symbolic links (a Unix file system feature) are excluded
+# from the input.
+
+EXCLUDE_SYMLINKS = NO
+
+# If the value of the INPUT tag contains directories, you can use the
+# EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude
+# certain files from those directories. Note that the wildcards are matched
+# against the file with absolute path, so to exclude all test directories
+# for example use the pattern */test/*
+
+EXCLUDE_PATTERNS =
+
+# The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names
+# (namespaces, classes, functions, etc.) that should be excluded from the
+# output. The symbol name can be a fully qualified name, a word, or if the
+# wildcard * is used, a substring. Examples: ANamespace, AClass,
+# AClass::ANamespace, ANamespace::*Test
+
+EXCLUDE_SYMBOLS =
+
+# The EXAMPLE_PATH tag can be used to specify one or more files or
+# directories that contain example code fragments that are included (see
+# the \include command).
+
+EXAMPLE_PATH =
+
+# If the value of the EXAMPLE_PATH tag contains directories, you can use the
+# EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp
+# and *.h) to filter out the source-files in the directories. If left
+# blank all files are included.
+
+EXAMPLE_PATTERNS =
+
+# If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be
+# searched for input files to be used with the \include or \dontinclude
+# commands irrespective of the value of the RECURSIVE tag.
+# Possible values are YES and NO. If left blank NO is used.
+
+EXAMPLE_RECURSIVE = NO
+
+# The IMAGE_PATH tag can be used to specify one or more files or
+# directories that contain image that are included in the documentation (see
+# the \image command).
+
+IMAGE_PATH =
+
+# The INPUT_FILTER tag can be used to specify a program that doxygen should
+# invoke to filter for each input file. Doxygen will invoke the filter program
+# by executing (via popen()) the command <filter> <input-file>, where <filter>
+# is the value of the INPUT_FILTER tag, and <input-file> is the name of an
+# input file. Doxygen will then use the output that the filter program writes
+# to standard output.
+# If FILTER_PATTERNS is specified, this tag will be
+# ignored.
+
+INPUT_FILTER =
+
+# The FILTER_PATTERNS tag can be used to specify filters on a per file pattern
+# basis.
+# Doxygen will compare the file name with each pattern and apply the
+# filter if there is a match.
+# The filters are a list of the form:
+# pattern=filter (like *.cpp=my_cpp_filter). See INPUT_FILTER for further
+# info on how filters are used. If FILTER_PATTERNS is empty or if
+# non of the patterns match the file name, INPUT_FILTER is applied.
+
+FILTER_PATTERNS =
+
+# If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using
+# INPUT_FILTER) will be used to filter the input files when producing source
+# files to browse (i.e. when SOURCE_BROWSER is set to YES).
+
+FILTER_SOURCE_FILES = NO
+
+# The FILTER_SOURCE_PATTERNS tag can be used to specify source filters per file
+# pattern. A pattern will override the setting for FILTER_PATTERN (if any)
+# and it is also possible to disable source filtering for a specific pattern
+# using *.ext= (so without naming a filter). This option only has effect when
+# FILTER_SOURCE_FILES is enabled.
+
+FILTER_SOURCE_PATTERNS =
+
+#---------------------------------------------------------------------------
+# configuration options related to source browsing
+#---------------------------------------------------------------------------
+
+# If the SOURCE_BROWSER tag is set to YES then a list of source files will
+# be generated. Documented entities will be cross-referenced with these sources.
+# Note: To get rid of all source code in the generated output, make sure also
+# VERBATIM_HEADERS is set to NO.
+
+SOURCE_BROWSER = NO
+
+# Setting the INLINE_SOURCES tag to YES will include the body
+# of functions and classes directly in the documentation.
+
+INLINE_SOURCES = NO
+
+# Setting the STRIP_CODE_COMMENTS tag to YES (the default) will instruct
+# doxygen to hide any special comment blocks from generated source code
+# fragments. Normal C and C++ comments will always remain visible.
+
+STRIP_CODE_COMMENTS = YES
+
+# If the REFERENCED_BY_RELATION tag is set to YES
+# then for each documented function all documented
+# functions referencing it will be listed.
+
+REFERENCED_BY_RELATION = NO
+
+# If the REFERENCES_RELATION tag is set to YES
+# then for each documented function all documented entities
+# called/used by that function will be listed.
+
+REFERENCES_RELATION = NO
+
+# If the REFERENCES_LINK_SOURCE tag is set to YES (the default)
+# and SOURCE_BROWSER tag is set to YES, then the hyperlinks from
+# functions in REFERENCES_RELATION and REFERENCED_BY_RELATION lists will
+# link to the source code.
+# Otherwise they will link to the documentation.