Repository: ddeville/DDProgressView
Branch: master
Commit: bc9f6a8f3365
Files: 19
Total size: 54.7 KB
Directory structure:
gitextract_a_lusg03/
├── .gitattributes
├── .gitignore
├── DDProgressView/
│ ├── AppKitCompatibility.h
│ ├── AppKitCompatibility.m
│ ├── DDProgressView-Info.plist
│ ├── DDProgressView-Prefix.pch
│ ├── DDProgressView.h
│ ├── DDProgressView.m
│ ├── DDProgressViewAppDelegate.h
│ ├── DDProgressViewAppDelegate.m
│ ├── DDProgressViewViewController.h
│ ├── DDProgressViewViewController.m
│ ├── en.lproj/
│ │ ├── DDProgressViewViewController.xib
│ │ ├── InfoPlist.strings
│ │ └── MainWindow.xib
│ └── main.m
├── DDProgressView.xcodeproj/
│ └── project.pbxproj
├── LICENSE
└── README.md
================================================
FILE CONTENTS
================================================
================================================
FILE: .gitattributes
================================================
*.pbxproj -crlf -diff -merge
================================================
FILE: .gitignore
================================================
# OS X
.DS_Store
.DS_store
profile
# XCode
*.mode*
*.perspective*
*.pbxuser*
*tmproj
External/GHUnit/*
PLBlocks.framework/*
*.pyc
# for Xcode 4
xcuserdata
*.xcworkspace
# built products
build
*.o
# Other source repository archive directories
.hg
.svn
CVS
# Automatic backup files
#~.nib/
*.swp
*~
*(Autosaved).rtfd/
Backup[ ]of[ ]*.pages/
Backup[ ]of[ ]*.key/
Backup[ ]of[ ]*.numbers/
================================================
FILE: DDProgressView/AppKitCompatibility.h
================================================
#define UIView NSView
#define UIColor NSColor
#define UIGraphicsGetCurrentContext() [[NSGraphicsContext currentContext] graphicsPort]
@interface NSView (UIKit)
@property (copy) UIColor *backgroundColor ;
- (void)setNeedsDisplay ;
@end
================================================
FILE: DDProgressView/AppKitCompatibility.m
================================================
#import "AppKitCompatibility.h"
@implementation NSView (UIKit)
- (UIColor *)backgroundColor
{
return nil ;
}
- (void)setBackgroundColor:(UIColor *)color
{
return ;
}
- (void)setNeedsDisplay
{
[self setNeedsDisplay:YES] ;
}
@end
================================================
FILE: DDProgressView/DDProgressView-Info.plist
================================================
<?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>CFBundleDisplayName</key>
<string>${PRODUCT_NAME}</string>
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIconFile</key>
<string></string>
<key>CFBundleIdentifier</key>
<string>com.SnappyCode.${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.0</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>NSMainNibFile</key>
<string>MainWindow</string>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
</array>
</dict>
</plist>
================================================
FILE: DDProgressView/DDProgressView-Prefix.pch
================================================
//
// Prefix header for all source files of the 'DDProgressView' target in the 'DDProgressView' project
//
#import <Availability.h>
#ifndef __IPHONE_3_0
#warning "This project uses features only available in iPhone SDK 3.0 and later."
#endif
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
#endif
================================================
FILE: DDProgressView/DDProgressView.h
================================================
//
// DDProgressView.h
// DDProgressView
//
// Created by Damien DeVille on 3/13/11.
// Copyright 2011 Snappy Code. All rights reserved.
//
#if TARGET_OS_IPHONE
#import <UIKit/UIKit.h>
#elif TARGET_OS_MAC
#import "AppKitCompatibility.h"
#endif
@interface DDProgressView : UIView
{
@private
float progress ;
UIColor *innerColor ;
UIColor *outerColor ;
UIColor *emptyColor ;
}
@property (nonatomic,retain) UIColor *innerColor ;
@property (nonatomic,retain) UIColor *outerColor ;
@property (nonatomic,retain) UIColor *emptyColor ;
@property (nonatomic,assign) float progress ;
@property (nonatomic,assign) CGFloat preferredFrameHeight ;
@end
================================================
FILE: DDProgressView/DDProgressView.m
================================================
//
// DDProgressView.m
// DDProgressView
//
// Created by Damien DeVille on 3/13/11.
// Copyright 2011 Snappy Code. All rights reserved.
//
#import "DDProgressView.h"
#define kDefaultProgressBarHeight 22.0f
#define kProgressBarWidth 160.0f
@implementation DDProgressView
@synthesize innerColor ;
@synthesize outerColor ;
@synthesize emptyColor ;
@synthesize progress ;
@synthesize preferredFrameHeight ;
- (id)init
{
return [self initWithFrame: CGRectZero] ;
}
- (id)initWithFrame:(CGRect)frame
{
self = [super initWithFrame: frame] ;
if (self)
{
self.backgroundColor = [UIColor clearColor] ;
self.innerColor = [UIColor lightGrayColor] ;
self.outerColor = [UIColor lightGrayColor] ;
self.emptyColor = [UIColor clearColor] ;
self.preferredFrameHeight = kDefaultProgressBarHeight;
if (frame.size.width == 0.0f)
frame.size.width = kProgressBarWidth ;
}
return self ;
}
- (void)dealloc
{
[innerColor release], innerColor = nil ;
[outerColor release], outerColor = nil ;
[emptyColor release], emptyColor = nil ;
[super dealloc] ;
}
- (void)setProgress:(float)theProgress
{
// make sure the user does not try to set the progress outside of the bounds
if (theProgress > 1.0f)
theProgress = 1.0f ;
if (theProgress < 0.0f)
theProgress = 0.0f ;
progress = theProgress ;
[self setNeedsDisplay] ;
}
- (void)setFrame:(CGRect)frame
{
// we set the height ourselves since it is fixed
frame.size.height = self.preferredFrameHeight ;
[super setFrame: frame] ;
}
- (void)setBounds:(CGRect)bounds
{
// we set the height ourselves since it is fixed
bounds.size.height = self.preferredFrameHeight ;
[super setBounds: bounds] ;
}
- (void)drawRect:(CGRect)rect
{
CGContextRef context = UIGraphicsGetCurrentContext() ;
// save the context
CGContextSaveGState(context) ;
// allow antialiasing
CGContextSetAllowsAntialiasing(context, TRUE) ;
// we first draw the outter rounded rectangle
rect = CGRectInset(rect, 1.0f, 1.0f) ;
CGFloat radius = 0.5f * rect.size.height ;
[outerColor setStroke] ;
CGContextSetLineWidth(context, 2.0f) ;
CGContextBeginPath(context) ;
CGContextMoveToPoint(context, CGRectGetMinX(rect), CGRectGetMidY(rect)) ;
CGContextAddArcToPoint(context, CGRectGetMinX(rect), CGRectGetMinY(rect), CGRectGetMidX(rect), CGRectGetMinY(rect), radius) ;
CGContextAddArcToPoint(context, CGRectGetMaxX(rect), CGRectGetMinY(rect), CGRectGetMaxX(rect), CGRectGetMidY(rect), radius) ;
CGContextAddArcToPoint(context, CGRectGetMaxX(rect), CGRectGetMaxY(rect), CGRectGetMidX(rect), CGRectGetMaxY(rect), radius) ;
CGContextAddArcToPoint(context, CGRectGetMinX(rect), CGRectGetMaxY(rect), CGRectGetMinX(rect), CGRectGetMidY(rect), radius) ;
CGContextClosePath(context) ;
CGContextDrawPath(context, kCGPathStroke) ;
// draw the empty rounded rectangle (shown for the "unfilled" portions of the progress
rect = CGRectInset(rect, 3.0f, 3.0f) ;
radius = 0.5f * rect.size.height ;
[emptyColor setFill] ;
CGContextBeginPath(context) ;
CGContextMoveToPoint(context, CGRectGetMinX(rect), CGRectGetMidY(rect)) ;
CGContextAddArcToPoint(context, CGRectGetMinX(rect), CGRectGetMinY(rect), CGRectGetMidX(rect), CGRectGetMinY(rect), radius) ;
CGContextAddArcToPoint(context, CGRectGetMaxX(rect), CGRectGetMinY(rect), CGRectGetMaxX(rect), CGRectGetMidY(rect), radius) ;
CGContextAddArcToPoint(context, CGRectGetMaxX(rect), CGRectGetMaxY(rect), CGRectGetMidX(rect), CGRectGetMaxY(rect), radius) ;
CGContextAddArcToPoint(context, CGRectGetMinX(rect), CGRectGetMaxY(rect), CGRectGetMinX(rect), CGRectGetMidY(rect), radius) ;
CGContextClosePath(context) ;
CGContextFillPath(context) ;
// draw the inside moving filled rounded rectangle
radius = 0.5f * rect.size.height ;
// make sure the filled rounded rectangle is not smaller than 2 times the radius
rect.size.width *= progress ;
if (rect.size.width < 2 * radius)
rect.size.width = 2 * radius ;
if(isnan(rect.size.width)){
rect.size.width = 14;
}
[innerColor setFill] ;
CGContextBeginPath(context) ;
CGContextMoveToPoint(context, CGRectGetMinX(rect), CGRectGetMidY(rect)) ;
CGContextAddArcToPoint(context, CGRectGetMinX(rect), CGRectGetMinY(rect), CGRectGetMidX(rect), CGRectGetMinY(rect), radius) ;
CGContextAddArcToPoint(context, CGRectGetMaxX(rect), CGRectGetMinY(rect), CGRectGetMaxX(rect), CGRectGetMidY(rect), radius) ;
CGContextAddArcToPoint(context, CGRectGetMaxX(rect), CGRectGetMaxY(rect), CGRectGetMidX(rect), CGRectGetMaxY(rect), radius) ;
CGContextAddArcToPoint(context, CGRectGetMinX(rect), CGRectGetMaxY(rect), CGRectGetMinX(rect), CGRectGetMidY(rect), radius) ;
CGContextClosePath(context) ;
CGContextFillPath(context) ;
// restore the context
CGContextRestoreGState(context) ;
}
@end
================================================
FILE: DDProgressView/DDProgressViewAppDelegate.h
================================================
//
// DDProgressViewAppDelegate.h
// DDProgressView
//
// Created by Damien DeVille on 3/13/11.
// Copyright 2011 Snappy Code. All rights reserved.
//
#import <UIKit/UIKit.h>
@class DDProgressViewViewController ;
@interface DDProgressViewAppDelegate : NSObject <UIApplicationDelegate>
{
}
@property (nonatomic, retain) IBOutlet UIWindow *window ;
@property (nonatomic, retain) IBOutlet DDProgressViewViewController *viewController ;
@end
================================================
FILE: DDProgressView/DDProgressViewAppDelegate.m
================================================
//
// DDProgressViewAppDelegate.m
// DDProgressView
//
// Created by Damien DeVille on 3/13/11.
// Copyright 2011 Snappy Code. All rights reserved.
//
#import "DDProgressViewAppDelegate.h"
#import "DDProgressViewViewController.h"
@implementation DDProgressViewAppDelegate
@synthesize window = _window ;
@synthesize viewController = _viewController ;
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
self.window.rootViewController = self.viewController ;
[self.window makeKeyAndVisible] ;
return YES ;
}
- (void)applicationWillResignActive:(UIApplication *)application
{
/*
Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
*/
}
- (void)applicationDidEnterBackground:(UIApplication *)application
{
/*
Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
*/
}
- (void)applicationWillEnterForeground:(UIApplication *)application
{
/*
Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
*/
}
- (void)applicationDidBecomeActive:(UIApplication *)application
{
/*
Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
*/
}
- (void)applicationWillTerminate:(UIApplication *)application
{
/*
Called when the application is about to terminate.
Save data if appropriate.
See also applicationDidEnterBackground:.
*/
}
- (void)dealloc
{
[_window release] ;
[_viewController release] ;
[super dealloc] ;
}
@end
================================================
FILE: DDProgressView/DDProgressViewViewController.h
================================================
//
// DDProgressViewViewController.h
// DDProgressView
//
// Created by Damien DeVille on 3/13/11.
// Copyright 2011 Snappy Code. All rights reserved.
//
#import <UIKit/UIKit.h>
@class DDProgressView ;
@interface DDProgressViewViewController : UIViewController
{
float testProgress ;
int progressDir ;
DDProgressView *progressView ;
DDProgressView *progressView2 ;
}
@end
================================================
FILE: DDProgressView/DDProgressViewViewController.m
================================================
//
// DDProgressViewViewController.m
// DDProgressView
//
// Created by Damien DeVille on 3/13/11.
// Copyright 2011 Snappy Code. All rights reserved.
//
#import "DDProgressViewViewController.h"
#import "DDProgressView.h"
@implementation DDProgressViewViewController
- (void)dealloc
{
[super dealloc] ;
}
- (void)didReceiveMemoryWarning
{
[super didReceiveMemoryWarning] ;
}
- (void)viewDidLoad
{
testProgress = 0.0f ;
progressDir = 1 ;
[super viewDidLoad] ;
[self.view setBackgroundColor: [UIColor blackColor]] ;
progressView = [[DDProgressView alloc] initWithFrame: CGRectMake(20.0f, 140.0f, self.view.bounds.size.width-40.0f, 0.0f)] ;
[progressView setOuterColor: [UIColor grayColor]] ;
[progressView setInnerColor: [UIColor lightGrayColor]] ;
[self.view addSubview: progressView] ;
[progressView release] ;
progressView2 = [[DDProgressView alloc] initWithFrame: CGRectMake(20.0f, 180.0f, self.view.bounds.size.width-40.0f, 0.0f)] ;
[progressView2 setOuterColor: [UIColor clearColor]] ;
[progressView2 setInnerColor: [UIColor lightGrayColor]] ;
[progressView2 setEmptyColor: [UIColor darkGrayColor]] ;
[self.view addSubview: progressView2] ;
[progressView2 release] ;
// set a timer that updates the progress
NSTimer *timer = [NSTimer scheduledTimerWithTimeInterval: 0.03f target: self selector: @selector(updateProgress) userInfo: nil repeats: YES] ;
[timer fire] ;
}
- (void)updateProgress
{
testProgress += (0.01f * progressDir) ;
[progressView setProgress: testProgress] ;
[progressView2 setProgress: testProgress] ;
if (testProgress > 1 || testProgress < 0)
progressDir *= -1 ;
}
- (void)viewDidUnload
{
[super viewDidUnload] ;
}
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
return (interfaceOrientation == UIInterfaceOrientationPortrait);
}
@end
================================================
FILE: DDProgressView/en.lproj/DDProgressViewViewController.xib
================================================
<?xml version="1.0" encoding="UTF-8"?>
<archive type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="7.10">
<data>
<int key="IBDocument.SystemTarget">1056</int>
<string key="IBDocument.SystemVersion">10J567</string>
<string key="IBDocument.InterfaceBuilderVersion">1305</string>
<string key="IBDocument.AppKitVersion">1038.35</string>
<string key="IBDocument.HIToolboxVersion">462.00</string>
<object class="NSMutableDictionary" key="IBDocument.PluginVersions">
<string key="NS.key.0">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string key="NS.object.0">300</string>
</object>
<object class="NSArray" key="IBDocument.IntegratedClassDependencies">
<bool key="EncodedWithXMLCoder">YES</bool>
<string>IBProxyObject</string>
<string>IBUIView</string>
</object>
<object class="NSArray" key="IBDocument.PluginDependencies">
<bool key="EncodedWithXMLCoder">YES</bool>
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
</object>
<object class="NSMutableDictionary" key="IBDocument.Metadata">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="NSArray" key="dict.sortedKeys" id="0">
<bool key="EncodedWithXMLCoder">YES</bool>
</object>
<reference key="dict.values" ref="0"/>
</object>
<object class="NSMutableArray" key="IBDocument.RootObjects" id="1000">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="IBProxyObject" id="372490531">
<string key="IBProxiedObjectIdentifier">IBFilesOwner</string>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
</object>
<object class="IBProxyObject" id="843779117">
<string key="IBProxiedObjectIdentifier">IBFirstResponder</string>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
</object>
<object class="IBUIView" id="774585933">
<reference key="NSNextResponder"/>
<int key="NSvFlags">274</int>
<string key="NSFrame">{{0, 20}, {320, 460}}</string>
<reference key="NSSuperview"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView"/>
<object class="NSColor" key="IBUIBackgroundColor">
<int key="NSColorSpace">3</int>
<bytes key="NSWhite">MC43NQA</bytes>
<object class="NSColorSpace" key="NSCustomColorSpace">
<int key="NSID">2</int>
</object>
</object>
<bool key="IBUIClearsContextBeforeDrawing">NO</bool>
<object class="IBUISimulatedStatusBarMetrics" key="IBUISimulatedStatusBarMetrics"/>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
</object>
</object>
<object class="IBObjectContainer" key="IBDocument.Objects">
<object class="NSMutableArray" key="connectionRecords">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="IBConnectionRecord">
<object class="IBCocoaTouchOutletConnection" key="connection">
<string key="label">view</string>
<reference key="source" ref="372490531"/>
<reference key="destination" ref="774585933"/>
</object>
<int key="connectionID">7</int>
</object>
</object>
<object class="IBMutableOrderedSet" key="objectRecords">
<object class="NSArray" key="orderedObjects">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="IBObjectRecord">
<int key="objectID">0</int>
<reference key="object" ref="0"/>
<reference key="children" ref="1000"/>
<nil key="parent"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">-1</int>
<reference key="object" ref="372490531"/>
<reference key="parent" ref="0"/>
<string key="objectName">File's Owner</string>
</object>
<object class="IBObjectRecord">
<int key="objectID">-2</int>
<reference key="object" ref="843779117"/>
<reference key="parent" ref="0"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">6</int>
<reference key="object" ref="774585933"/>
<object class="NSMutableArray" key="children">
<bool key="EncodedWithXMLCoder">YES</bool>
</object>
<reference key="parent" ref="0"/>
</object>
</object>
</object>
<object class="NSMutableDictionary" key="flattenedProperties">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="NSArray" key="dict.sortedKeys">
<bool key="EncodedWithXMLCoder">YES</bool>
<string>-1.CustomClassName</string>
<string>-2.CustomClassName</string>
<string>6.IBEditorWindowLastContentRect</string>
<string>6.IBPluginDependency</string>
</object>
<object class="NSMutableArray" key="dict.values">
<bool key="EncodedWithXMLCoder">YES</bool>
<string>DDProgressViewViewController</string>
<string>UIResponder</string>
<string>{{239, 654}, {320, 480}}</string>
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
</object>
</object>
<object class="NSMutableDictionary" key="unlocalizedProperties">
<bool key="EncodedWithXMLCoder">YES</bool>
<reference key="dict.sortedKeys" ref="0"/>
<reference key="dict.values" ref="0"/>
</object>
<nil key="activeLocalization"/>
<object class="NSMutableDictionary" key="localizations">
<bool key="EncodedWithXMLCoder">YES</bool>
<reference key="dict.sortedKeys" ref="0"/>
<reference key="dict.values" ref="0"/>
</object>
<nil key="sourceID"/>
<int key="maxID">10</int>
</object>
<object class="IBClassDescriber" key="IBDocument.Classes">
<object class="NSMutableArray" key="referencedPartialClassDescriptions">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="IBPartialClassDescription">
<string key="className">DDProgressViewViewController</string>
<string key="superclassName">UIViewController</string>
<object class="NSMutableDictionary" key="outlets">
<string key="NS.key.0">toolBar</string>
<string key="NS.object.0">UIToolbar</string>
</object>
<object class="NSMutableDictionary" key="toOneOutletInfosByName">
<string key="NS.key.0">toolBar</string>
<object class="IBToOneOutletInfo" key="NS.object.0">
<string key="name">toolBar</string>
<string key="candidateClassName">UIToolbar</string>
</object>
</object>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBProjectSource</string>
<string key="minorKey">./Classes/DDProgressViewViewController.h</string>
</object>
</object>
</object>
</object>
<int key="IBDocument.localizationMode">0</int>
<string key="IBDocument.TargetRuntimeIdentifier">IBCocoaTouchFramework</string>
<object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDevelopmentDependencies">
<string key="NS.key.0">com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3</string>
<integer value="3100" key="NS.object.0"/>
</object>
<bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool>
<int key="IBDocument.defaultPropertyAccessControl">3</int>
<string key="IBCocoaTouchPluginVersion">300</string>
</data>
</archive>
================================================
FILE: DDProgressView/en.lproj/InfoPlist.strings
================================================
/* Localized versions of Info.plist keys */
================================================
FILE: DDProgressView/en.lproj/MainWindow.xib
================================================
<?xml version="1.0" encoding="UTF-8"?>
<archive type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="7.10">
<data>
<int key="IBDocument.SystemTarget">1024</int>
<string key="IBDocument.SystemVersion">10D571</string>
<string key="IBDocument.InterfaceBuilderVersion">786</string>
<string key="IBDocument.AppKitVersion">1038.29</string>
<string key="IBDocument.HIToolboxVersion">460.00</string>
<object class="NSMutableDictionary" key="IBDocument.PluginVersions">
<string key="NS.key.0">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string key="NS.object.0">112</string>
</object>
<object class="NSMutableArray" key="IBDocument.EditedObjectIDs">
<bool key="EncodedWithXMLCoder">YES</bool>
<integer value="10"/>
</object>
<object class="NSArray" key="IBDocument.PluginDependencies">
<bool key="EncodedWithXMLCoder">YES</bool>
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
</object>
<object class="NSMutableDictionary" key="IBDocument.Metadata">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="NSArray" key="dict.sortedKeys" id="0">
<bool key="EncodedWithXMLCoder">YES</bool>
</object>
<object class="NSMutableArray" key="dict.values">
<bool key="EncodedWithXMLCoder">YES</bool>
</object>
</object>
<object class="NSMutableArray" key="IBDocument.RootObjects" id="1000">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="IBProxyObject" id="841351856">
<string key="IBProxiedObjectIdentifier">IBFilesOwner</string>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
</object>
<object class="IBProxyObject" id="427554174">
<string key="IBProxiedObjectIdentifier">IBFirstResponder</string>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
</object>
<object class="IBUICustomObject" id="664661524">
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
</object>
<object class="IBUIViewController" id="943309135">
<string key="IBUINibName">DDProgressViewViewController</string>
<object class="IBUISimulatedStatusBarMetrics" key="IBUISimulatedStatusBarMetrics"/>
<object class="IBUISimulatedOrientationMetrics" key="IBUISimulatedOrientationMetrics">
<int key="interfaceOrientation">1</int>
</object>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
<bool key="IBUIHorizontal">NO</bool>
</object>
<object class="IBUIWindow" id="117978783">
<nil key="NSNextResponder"/>
<int key="NSvFlags">292</int>
<string key="NSFrameSize">{320, 480}</string>
<object class="NSColor" key="IBUIBackgroundColor">
<int key="NSColorSpace">1</int>
<bytes key="NSRGB">MSAxIDEAA</bytes>
</object>
<bool key="IBUIOpaque">NO</bool>
<bool key="IBUIClearsContextBeforeDrawing">NO</bool>
<object class="IBUISimulatedStatusBarMetrics" key="IBUISimulatedStatusBarMetrics"/>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
<bool key="IBUIResizesToFullScreen">YES</bool>
</object>
</object>
<object class="IBObjectContainer" key="IBDocument.Objects">
<object class="NSMutableArray" key="connectionRecords">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="IBConnectionRecord">
<object class="IBCocoaTouchOutletConnection" key="connection">
<string key="label">delegate</string>
<reference key="source" ref="841351856"/>
<reference key="destination" ref="664661524"/>
</object>
<int key="connectionID">4</int>
</object>
<object class="IBConnectionRecord">
<object class="IBCocoaTouchOutletConnection" key="connection">
<string key="label">viewController</string>
<reference key="source" ref="664661524"/>
<reference key="destination" ref="943309135"/>
</object>
<int key="connectionID">11</int>
</object>
<object class="IBConnectionRecord">
<object class="IBCocoaTouchOutletConnection" key="connection">
<string key="label">window</string>
<reference key="source" ref="664661524"/>
<reference key="destination" ref="117978783"/>
</object>
<int key="connectionID">14</int>
</object>
</object>
<object class="IBMutableOrderedSet" key="objectRecords">
<object class="NSArray" key="orderedObjects">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="IBObjectRecord">
<int key="objectID">0</int>
<reference key="object" ref="0"/>
<reference key="children" ref="1000"/>
<nil key="parent"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">-1</int>
<reference key="object" ref="841351856"/>
<reference key="parent" ref="0"/>
<string key="objectName">File's Owner</string>
</object>
<object class="IBObjectRecord">
<int key="objectID">3</int>
<reference key="object" ref="664661524"/>
<reference key="parent" ref="0"/>
<string key="objectName">DDProgressView App Delegate</string>
</object>
<object class="IBObjectRecord">
<int key="objectID">-2</int>
<reference key="object" ref="427554174"/>
<reference key="parent" ref="0"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">10</int>
<reference key="object" ref="943309135"/>
<reference key="parent" ref="0"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">12</int>
<reference key="object" ref="117978783"/>
<reference key="parent" ref="0"/>
</object>
</object>
</object>
<object class="NSMutableDictionary" key="flattenedProperties">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="NSArray" key="dict.sortedKeys">
<bool key="EncodedWithXMLCoder">YES</bool>
<string>-1.CustomClassName</string>
<string>-2.CustomClassName</string>
<string>10.CustomClassName</string>
<string>10.IBEditorWindowLastContentRect</string>
<string>10.IBPluginDependency</string>
<string>12.IBEditorWindowLastContentRect</string>
<string>12.IBPluginDependency</string>
<string>3.CustomClassName</string>
<string>3.IBPluginDependency</string>
</object>
<object class="NSMutableArray" key="dict.values">
<bool key="EncodedWithXMLCoder">YES</bool>
<string>UIApplication</string>
<string>UIResponder</string>
<string>DDProgressViewViewController</string>
<string>{{234, 376}, {320, 480}}</string>
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string>{{525, 346}, {320, 480}}</string>
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string>DDProgressViewAppDelegate</string>
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
</object>
</object>
<object class="NSMutableDictionary" key="unlocalizedProperties">
<bool key="EncodedWithXMLCoder">YES</bool>
<reference key="dict.sortedKeys" ref="0"/>
<object class="NSMutableArray" key="dict.values">
<bool key="EncodedWithXMLCoder">YES</bool>
</object>
</object>
<nil key="activeLocalization"/>
<object class="NSMutableDictionary" key="localizations">
<bool key="EncodedWithXMLCoder">YES</bool>
<reference key="dict.sortedKeys" ref="0"/>
<object class="NSMutableArray" key="dict.values">
<bool key="EncodedWithXMLCoder">YES</bool>
</object>
</object>
<nil key="sourceID"/>
<int key="maxID">15</int>
</object>
<object class="IBClassDescriber" key="IBDocument.Classes">
<object class="NSMutableArray" key="referencedPartialClassDescriptions">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="IBPartialClassDescription">
<string key="className">UIWindow</string>
<string key="superclassName">UIView</string>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBUserSource</string>
<string key="minorKey"/>
</object>
</object>
<object class="IBPartialClassDescription">
<string key="className">DDProgressViewAppDelegate</string>
<string key="superclassName">NSObject</string>
<object class="NSMutableDictionary" key="outlets">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="NSArray" key="dict.sortedKeys">
<bool key="EncodedWithXMLCoder">YES</bool>
<string>viewController</string>
<string>window</string>
</object>
<object class="NSMutableArray" key="dict.values">
<bool key="EncodedWithXMLCoder">YES</bool>
<string>DDProgressViewViewController</string>
<string>UIWindow</string>
</object>
</object>
<object class="NSMutableDictionary" key="toOneOutletInfosByName">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="NSArray" key="dict.sortedKeys">
<bool key="EncodedWithXMLCoder">YES</bool>
<string>viewController</string>
<string>window</string>
</object>
<object class="NSMutableArray" key="dict.values">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="IBToOneOutletInfo">
<string key="name">viewController</string>
<string key="candidateClassName">DDProgressViewViewController</string>
</object>
<object class="IBToOneOutletInfo">
<string key="name">window</string>
<string key="candidateClassName">UIWindow</string>
</object>
</object>
</object>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBProjectSource</string>
<string key="minorKey">DDProgressViewAppDelegate.h</string>
</object>
</object>
<object class="IBPartialClassDescription">
<string key="className">DDProgressViewAppDelegate</string>
<string key="superclassName">NSObject</string>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBUserSource</string>
<string key="minorKey"/>
</object>
</object>
<object class="IBPartialClassDescription">
<string key="className">DDProgressViewViewController</string>
<string key="superclassName">UIViewController</string>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBProjectSource</string>
<string key="minorKey">DDProgressViewViewController.h</string>
</object>
</object>
</object>
<object class="NSMutableArray" key="referencedPartialClassDescriptionsV3.2+">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="IBPartialClassDescription">
<string key="className">NSObject</string>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBFrameworkSource</string>
<string key="minorKey">Foundation.framework/Headers/NSError.h</string>
</object>
</object>
<object class="IBPartialClassDescription">
<string key="className">NSObject</string>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBFrameworkSource</string>
<string key="minorKey">Foundation.framework/Headers/NSFileManager.h</string>
</object>
</object>
<object class="IBPartialClassDescription">
<string key="className">NSObject</string>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBFrameworkSource</string>
<string key="minorKey">Foundation.framework/Headers/NSKeyValueCoding.h</string>
</object>
</object>
<object class="IBPartialClassDescription">
<string key="className">NSObject</string>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBFrameworkSource</string>
<string key="minorKey">Foundation.framework/Headers/NSKeyValueObserving.h</string>
</object>
</object>
<object class="IBPartialClassDescription">
<string key="className">NSObject</string>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBFrameworkSource</string>
<string key="minorKey">Foundation.framework/Headers/NSKeyedArchiver.h</string>
</object>
</object>
<object class="IBPartialClassDescription">
<string key="className">NSObject</string>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBFrameworkSource</string>
<string key="minorKey">Foundation.framework/Headers/NSObject.h</string>
</object>
</object>
<object class="IBPartialClassDescription">
<string key="className">NSObject</string>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBFrameworkSource</string>
<string key="minorKey">Foundation.framework/Headers/NSRunLoop.h</string>
</object>
</object>
<object class="IBPartialClassDescription">
<string key="className">NSObject</string>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBFrameworkSource</string>
<string key="minorKey">Foundation.framework/Headers/NSThread.h</string>
</object>
</object>
<object class="IBPartialClassDescription">
<string key="className">NSObject</string>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBFrameworkSource</string>
<string key="minorKey">Foundation.framework/Headers/NSURL.h</string>
</object>
</object>
<object class="IBPartialClassDescription">
<string key="className">NSObject</string>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBFrameworkSource</string>
<string key="minorKey">Foundation.framework/Headers/NSURLConnection.h</string>
</object>
</object>
<object class="IBPartialClassDescription">
<string key="className">NSObject</string>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBFrameworkSource</string>
<string key="minorKey">UIKit.framework/Headers/UIAccessibility.h</string>
</object>
</object>
<object class="IBPartialClassDescription">
<string key="className">NSObject</string>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBFrameworkSource</string>
<string key="minorKey">UIKit.framework/Headers/UINibLoading.h</string>
</object>
</object>
<object class="IBPartialClassDescription">
<string key="className">NSObject</string>
<object class="IBClassDescriptionSource" key="sourceIdentifier" id="356479594">
<string key="majorKey">IBFrameworkSource</string>
<string key="minorKey">UIKit.framework/Headers/UIResponder.h</string>
</object>
</object>
<object class="IBPartialClassDescription">
<string key="className">UIApplication</string>
<string key="superclassName">UIResponder</string>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBFrameworkSource</string>
<string key="minorKey">UIKit.framework/Headers/UIApplication.h</string>
</object>
</object>
<object class="IBPartialClassDescription">
<string key="className">UIResponder</string>
<string key="superclassName">NSObject</string>
<reference key="sourceIdentifier" ref="356479594"/>
</object>
<object class="IBPartialClassDescription">
<string key="className">UISearchBar</string>
<string key="superclassName">UIView</string>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBFrameworkSource</string>
<string key="minorKey">UIKit.framework/Headers/UISearchBar.h</string>
</object>
</object>
<object class="IBPartialClassDescription">
<string key="className">UISearchDisplayController</string>
<string key="superclassName">NSObject</string>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBFrameworkSource</string>
<string key="minorKey">UIKit.framework/Headers/UISearchDisplayController.h</string>
</object>
</object>
<object class="IBPartialClassDescription">
<string key="className">UIView</string>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBFrameworkSource</string>
<string key="minorKey">UIKit.framework/Headers/UITextField.h</string>
</object>
</object>
<object class="IBPartialClassDescription">
<string key="className">UIView</string>
<string key="superclassName">UIResponder</string>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBFrameworkSource</string>
<string key="minorKey">UIKit.framework/Headers/UIView.h</string>
</object>
</object>
<object class="IBPartialClassDescription">
<string key="className">UIViewController</string>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBFrameworkSource</string>
<string key="minorKey">UIKit.framework/Headers/UINavigationController.h</string>
</object>
</object>
<object class="IBPartialClassDescription">
<string key="className">UIViewController</string>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBFrameworkSource</string>
<string key="minorKey">UIKit.framework/Headers/UIPopoverController.h</string>
</object>
</object>
<object class="IBPartialClassDescription">
<string key="className">UIViewController</string>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBFrameworkSource</string>
<string key="minorKey">UIKit.framework/Headers/UISplitViewController.h</string>
</object>
</object>
<object class="IBPartialClassDescription">
<string key="className">UIViewController</string>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBFrameworkSource</string>
<string key="minorKey">UIKit.framework/Headers/UITabBarController.h</string>
</object>
</object>
<object class="IBPartialClassDescription">
<string key="className">UIViewController</string>
<string key="superclassName">UIResponder</string>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBFrameworkSource</string>
<string key="minorKey">UIKit.framework/Headers/UIViewController.h</string>
</object>
</object>
<object class="IBPartialClassDescription">
<string key="className">UIWindow</string>
<string key="superclassName">UIView</string>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBFrameworkSource</string>
<string key="minorKey">UIKit.framework/Headers/UIWindow.h</string>
</object>
</object>
</object>
</object>
<int key="IBDocument.localizationMode">0</int>
<string key="IBDocument.TargetRuntimeIdentifier">IBCocoaTouchFramework</string>
<object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDependencyDefaults">
<string key="NS.key.0">com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS</string>
<integer value="1024" key="NS.object.0"/>
</object>
<object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDevelopmentDependencies">
<string key="NS.key.0">com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3</string>
<integer value="3100" key="NS.object.0"/>
</object>
<bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool>
<string key="IBDocument.LastKnownRelativeProjectPath">DDProgressView.xcodeproj</string>
<int key="IBDocument.defaultPropertyAccessControl">3</int>
<string key="IBCocoaTouchPluginVersion">112</string>
</data>
</archive>
================================================
FILE: DDProgressView/main.m
================================================
//
// main.m
// DDProgressView
//
// Created by Damien DeVille on 3/13/11.
// Copyright 2011 Snappy Code. All rights reserved.
//
#import <UIKit/UIKit.h>
int main(int argc, char *argv[])
{
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
int retVal = UIApplicationMain(argc, argv, nil, nil);
[pool release];
return retVal;
}
================================================
FILE: DDProgressView.xcodeproj/project.pbxproj
================================================
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 46;
objects = {
/* Begin PBXBuildFile section */
6DA2E7E1132D6DC100985306 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6DA2E7E0132D6DC100985306 /* UIKit.framework */; };
6DA2E7E3132D6DC100985306 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6DA2E7E2132D6DC100985306 /* Foundation.framework */; };
6DA2E7E5132D6DC100985306 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6DA2E7E4132D6DC100985306 /* CoreGraphics.framework */; };
6DA2E7EB132D6DC100985306 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 6DA2E7E9132D6DC100985306 /* InfoPlist.strings */; };
6DA2E7EE132D6DC100985306 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 6DA2E7ED132D6DC100985306 /* main.m */; };
6DA2E7F1132D6DC100985306 /* DDProgressViewAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 6DA2E7F0132D6DC100985306 /* DDProgressViewAppDelegate.m */; };
6DA2E7F4132D6DC100985306 /* MainWindow.xib in Resources */ = {isa = PBXBuildFile; fileRef = 6DA2E7F2132D6DC100985306 /* MainWindow.xib */; };
6DA2E7F7132D6DC100985306 /* DDProgressViewViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 6DA2E7F6132D6DC100985306 /* DDProgressViewViewController.m */; };
6DA2E7FA132D6DC100985306 /* DDProgressViewViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 6DA2E7F8132D6DC100985306 /* DDProgressViewViewController.xib */; };
6DA2E802132D6E2E00985306 /* DDProgressView.m in Sources */ = {isa = PBXBuildFile; fileRef = 6DA2E801132D6E2D00985306 /* DDProgressView.m */; };
/* End PBXBuildFile section */
/* Begin PBXFileReference section */
6DA2E7DC132D6DC100985306 /* DDProgressView.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = DDProgressView.app; sourceTree = BUILT_PRODUCTS_DIR; };
6DA2E7E0132D6DC100985306 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
6DA2E7E2132D6DC100985306 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
6DA2E7E4132D6DC100985306 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
6DA2E7E8132D6DC100985306 /* DDProgressView-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "DDProgressView-Info.plist"; sourceTree = "<group>"; };
6DA2E7EA132D6DC100985306 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
6DA2E7EC132D6DC100985306 /* DDProgressView-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "DDProgressView-Prefix.pch"; sourceTree = "<group>"; };
6DA2E7ED132D6DC100985306 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
6DA2E7EF132D6DC100985306 /* DDProgressViewAppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = DDProgressViewAppDelegate.h; sourceTree = "<group>"; };
6DA2E7F0132D6DC100985306 /* DDProgressViewAppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = DDProgressViewAppDelegate.m; sourceTree = "<group>"; };
6DA2E7F3132D6DC100985306 /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = en.lproj/MainWindow.xib; sourceTree = "<group>"; };
6DA2E7F5132D6DC100985306 /* DDProgressViewViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = DDProgressViewViewController.h; sourceTree = "<group>"; };
6DA2E7F6132D6DC100985306 /* DDProgressViewViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = DDProgressViewViewController.m; sourceTree = "<group>"; };
6DA2E7F9132D6DC100985306 /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = en.lproj/DDProgressViewViewController.xib; sourceTree = "<group>"; };
6DA2E800132D6E2D00985306 /* DDProgressView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DDProgressView.h; sourceTree = "<group>"; };
6DA2E801132D6E2D00985306 /* DDProgressView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = DDProgressView.m; sourceTree = "<group>"; };
DA8635BA136EEA8000776109 /* AppKitCompatibility.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppKitCompatibility.h; sourceTree = "<group>"; };
DA8635BB136EEA8000776109 /* AppKitCompatibility.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppKitCompatibility.m; sourceTree = "<group>"; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
6DA2E7D9132D6DC100985306 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
6DA2E7E1132D6DC100985306 /* UIKit.framework in Frameworks */,
6DA2E7E3132D6DC100985306 /* Foundation.framework in Frameworks */,
6DA2E7E5132D6DC100985306 /* CoreGraphics.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */
6DA2E7D1132D6DC100985306 = {
isa = PBXGroup;
children = (
6DA2E7E6132D6DC100985306 /* DDProgressView */,
6DA2E7DF132D6DC100985306 /* Frameworks */,
6DA2E7DD132D6DC100985306 /* Products */,
);
sourceTree = "<group>";
};
6DA2E7DD132D6DC100985306 /* Products */ = {
isa = PBXGroup;
children = (
6DA2E7DC132D6DC100985306 /* DDProgressView.app */,
);
name = Products;
sourceTree = "<group>";
};
6DA2E7DF132D6DC100985306 /* Frameworks */ = {
isa = PBXGroup;
children = (
6DA2E7E0132D6DC100985306 /* UIKit.framework */,
6DA2E7E2132D6DC100985306 /* Foundation.framework */,
6DA2E7E4132D6DC100985306 /* CoreGraphics.framework */,
);
name = Frameworks;
sourceTree = "<group>";
};
6DA2E7E6132D6DC100985306 /* DDProgressView */ = {
isa = PBXGroup;
children = (
DA8635BA136EEA8000776109 /* AppKitCompatibility.h */,
DA8635BB136EEA8000776109 /* AppKitCompatibility.m */,
6DA2E800132D6E2D00985306 /* DDProgressView.h */,
6DA2E801132D6E2D00985306 /* DDProgressView.m */,
6DA2E7EF132D6DC100985306 /* DDProgressViewAppDelegate.h */,
6DA2E7F0132D6DC100985306 /* DDProgressViewAppDelegate.m */,
6DA2E7F2132D6DC100985306 /* MainWindow.xib */,
6DA2E7F5132D6DC100985306 /* DDProgressViewViewController.h */,
6DA2E7F6132D6DC100985306 /* DDProgressViewViewController.m */,
6DA2E7F8132D6DC100985306 /* DDProgressViewViewController.xib */,
6DA2E7E7132D6DC100985306 /* Supporting Files */,
);
path = DDProgressView;
sourceTree = "<group>";
};
6DA2E7E7132D6DC100985306 /* Supporting Files */ = {
isa = PBXGroup;
children = (
6DA2E7E8132D6DC100985306 /* DDProgressView-Info.plist */,
6DA2E7E9132D6DC100985306 /* InfoPlist.strings */,
6DA2E7EC132D6DC100985306 /* DDProgressView-Prefix.pch */,
6DA2E7ED132D6DC100985306 /* main.m */,
);
name = "Supporting Files";
sourceTree = "<group>";
};
/* End PBXGroup section */
/* Begin PBXNativeTarget section */
6DA2E7DB132D6DC100985306 /* DDProgressView */ = {
isa = PBXNativeTarget;
buildConfigurationList = 6DA2E7FD132D6DC100985306 /* Build configuration list for PBXNativeTarget "DDProgressView" */;
buildPhases = (
6DA2E7D8132D6DC100985306 /* Sources */,
6DA2E7D9132D6DC100985306 /* Frameworks */,
6DA2E7DA132D6DC100985306 /* Resources */,
);
buildRules = (
);
dependencies = (
);
name = DDProgressView;
productName = DDProgressView;
productReference = 6DA2E7DC132D6DC100985306 /* DDProgressView.app */;
productType = "com.apple.product-type.application";
};
/* End PBXNativeTarget section */
/* Begin PBXProject section */
6DA2E7D3132D6DC100985306 /* Project object */ = {
isa = PBXProject;
attributes = {
ORGANIZATIONNAME = Acrossair;
};
buildConfigurationList = 6DA2E7D6132D6DC100985306 /* Build configuration list for PBXProject "DDProgressView" */;
compatibilityVersion = "Xcode 3.2";
developmentRegion = English;
hasScannedForEncodings = 0;
knownRegions = (
en,
);
mainGroup = 6DA2E7D1132D6DC100985306;
productRefGroup = 6DA2E7DD132D6DC100985306 /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
6DA2E7DB132D6DC100985306 /* DDProgressView */,
);
};
/* End PBXProject section */
/* Begin PBXResourcesBuildPhase section */
6DA2E7DA132D6DC100985306 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
6DA2E7EB132D6DC100985306 /* InfoPlist.strings in Resources */,
6DA2E7F4132D6DC100985306 /* MainWindow.xib in Resources */,
6DA2E7FA132D6DC100985306 /* DDProgressViewViewController.xib in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */
/* Begin PBXSourcesBuildPhase section */
6DA2E7D8132D6DC100985306 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
6DA2E7EE132D6DC100985306 /* main.m in Sources */,
6DA2E7F1132D6DC100985306 /* DDProgressViewAppDelegate.m in Sources */,
6DA2E7F7132D6DC100985306 /* DDProgressViewViewController.m in Sources */,
6DA2E802132D6E2E00985306 /* DDProgressView.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */
/* Begin PBXVariantGroup section */
6DA2E7E9132D6DC100985306 /* InfoPlist.strings */ = {
isa = PBXVariantGroup;
children = (
6DA2E7EA132D6DC100985306 /* en */,
);
name = InfoPlist.strings;
sourceTree = "<group>";
};
6DA2E7F2132D6DC100985306 /* MainWindow.xib */ = {
isa = PBXVariantGroup;
children = (
6DA2E7F3132D6DC100985306 /* en */,
);
name = MainWindow.xib;
sourceTree = "<group>";
};
6DA2E7F8132D6DC100985306 /* DDProgressViewViewController.xib */ = {
isa = PBXVariantGroup;
children = (
6DA2E7F9132D6DC100985306 /* en */,
);
name = DDProgressViewViewController.xib;
sourceTree = "<group>";
};
/* End PBXVariantGroup section */
/* Begin XCBuildConfiguration section */
6DA2E7FB132D6DC100985306 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = DEBUG;
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
GCC_VERSION = com.apple.compilers.llvmgcc42;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 4.3;
SDKROOT = iphoneos;
};
name = Debug;
};
6DA2E7FC132D6DC100985306 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_VERSION = com.apple.compilers.llvmgcc42;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 4.3;
OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1";
SDKROOT = iphoneos;
};
name = Release;
};
6DA2E7FE132D6DC100985306 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
COPY_PHASE_STRIP = NO;
GCC_DYNAMIC_NO_PIC = NO;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "DDProgressView/DDProgressView-Prefix.pch";
INFOPLIST_FILE = "DDProgressView/DDProgressView-Info.plist";
PRODUCT_NAME = "$(TARGET_NAME)";
WRAPPER_EXTENSION = app;
};
name = Debug;
};
6DA2E7FF132D6DC100985306 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
COPY_PHASE_STRIP = YES;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "DDProgressView/DDProgressView-Prefix.pch";
INFOPLIST_FILE = "DDProgressView/DDProgressView-Info.plist";
PRODUCT_NAME = "$(TARGET_NAME)";
VALIDATE_PRODUCT = YES;
WRAPPER_EXTENSION = app;
};
name = Release;
};
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
6DA2E7D6132D6DC100985306 /* Build configuration list for PBXProject "DDProgressView" */ = {
isa = XCConfigurationList;
buildConfigurations = (
6DA2E7FB132D6DC100985306 /* Debug */,
6DA2E7FC132D6DC100985306 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
6DA2E7FD132D6DC100985306 /* Build configuration list for PBXNativeTarget "DDProgressView" */ = {
isa = XCConfigurationList;
buildConfigurations = (
6DA2E7FE132D6DC100985306 /* Debug */,
6DA2E7FF132D6DC100985306 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = 6DA2E7D3132D6DC100985306 /* Project object */;
}
================================================
FILE: LICENSE
================================================
* Copyright (c) 2010-2011, Snappy Code
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* * Neither the name of Snappy Code nor the
* names of its contributors may be used to endorse or promote products
* derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY Snappy Code ''AS IS'' AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL Snappy Code BE LIABLE FOR ANY
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
================================================
FILE: README.md
================================================
About
=====
**DDProgressView** is a custom progress view à la Twitter for iPhone.
DDProgressView works on both iOS and Mac OS. You must also compile the `AppKitCompatibility.m` file when targeting Mac OS.
Screenshot
==========


gitextract_a_lusg03/ ├── .gitattributes ├── .gitignore ├── DDProgressView/ │ ├── AppKitCompatibility.h │ ├── AppKitCompatibility.m │ ├── DDProgressView-Info.plist │ ├── DDProgressView-Prefix.pch │ ├── DDProgressView.h │ ├── DDProgressView.m │ ├── DDProgressViewAppDelegate.h │ ├── DDProgressViewAppDelegate.m │ ├── DDProgressViewViewController.h │ ├── DDProgressViewViewController.m │ ├── en.lproj/ │ │ ├── DDProgressViewViewController.xib │ │ ├── InfoPlist.strings │ │ └── MainWindow.xib │ └── main.m ├── DDProgressView.xcodeproj/ │ └── project.pbxproj ├── LICENSE └── README.md
SYMBOL INDEX (3 symbols across 3 files) FILE: DDProgressView/DDProgressView.h function interface (line 15) | interface DDProgressView : UIView FILE: DDProgressView/DDProgressViewAppDelegate.h function interface (line 13) | interface DDProgressViewAppDelegate : NSObject <UIApplicationDelegate> FILE: DDProgressView/DDProgressViewViewController.h function interface (line 13) | interface DDProgressViewViewController : UIViewController
Condensed preview — 19 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (64K chars).
[
{
"path": ".gitattributes",
"chars": 29,
"preview": "*.pbxproj -crlf -diff -merge\n"
},
{
"path": ".gitignore",
"chars": 406,
"preview": "# OS X\n.DS_Store\n.DS_store\nprofile\n\n# XCode\n*.mode*\n*.perspective*\n*.pbxuser*\n*tmproj\nExternal/GHUnit/*\nPLBlocks.framewo"
},
{
"path": "DDProgressView/AppKitCompatibility.h",
"chars": 239,
"preview": "#define UIView NSView\n#define UIColor NSColor\n#define UIGraphicsGetCurrentContext() [[NSGraphicsContext currentContext] "
},
{
"path": "DDProgressView/AppKitCompatibility.m",
"chars": 236,
"preview": "#import \"AppKitCompatibility.h\"\n\n@implementation NSView (UIKit)\n\n- (UIColor *)backgroundColor\n{\n\treturn nil ;\n}\n\n- (void"
},
{
"path": "DDProgressView/DDProgressView-Info.plist",
"chars": 1078,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/P"
},
{
"path": "DDProgressView/DDProgressView-Prefix.pch",
"chars": 334,
"preview": "//\n// Prefix header for all source files of the 'DDProgressView' target in the 'DDProgressView' project\n//\n\n#import <Ava"
},
{
"path": "DDProgressView/DDProgressView.h",
"chars": 654,
"preview": "//\n// DDProgressView.h\n// DDProgressView\n//\n// Created by Damien DeVille on 3/13/11.\n// Copyright 2011 Snappy Code. "
},
{
"path": "DDProgressView/DDProgressView.m",
"chars": 4778,
"preview": "//\n// DDProgressView.m\n// DDProgressView\n//\n// Created by Damien DeVille on 3/13/11.\n// Copyright 2011 Snappy Code. "
},
{
"path": "DDProgressView/DDProgressViewAppDelegate.h",
"chars": 452,
"preview": "//\n// DDProgressViewAppDelegate.h\n// DDProgressView\n//\n// Created by Damien DeVille on 3/13/11.\n// Copyright 2011 Sn"
},
{
"path": "DDProgressView/DDProgressViewAppDelegate.m",
"chars": 2376,
"preview": "//\n// DDProgressViewAppDelegate.m\n// DDProgressView\n//\n// Created by Damien DeVille on 3/13/11.\n// Copyright 2011 Sn"
},
{
"path": "DDProgressView/DDProgressViewViewController.h",
"chars": 411,
"preview": "//\n// DDProgressViewViewController.h\n// DDProgressView\n//\n// Created by Damien DeVille on 3/13/11.\n// Copyright 2011"
},
{
"path": "DDProgressView/DDProgressViewViewController.m",
"chars": 1920,
"preview": "//\n// DDProgressViewViewController.m\n// DDProgressView\n//\n// Created by Damien DeVille on 3/13/11.\n// Copyright 2011"
},
{
"path": "DDProgressView/en.lproj/DDProgressViewViewController.xib",
"chars": 7108,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<archive type=\"com.apple.InterfaceBuilder3.CocoaTouch.XIB\" version=\"7.10\">\n\t<data"
},
{
"path": "DDProgressView/en.lproj/InfoPlist.strings",
"chars": 45,
"preview": "/* Localized versions of Info.plist keys */\n\n"
},
{
"path": "DDProgressView/en.lproj/MainWindow.xib",
"chars": 20077,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<archive type=\"com.apple.InterfaceBuilder3.CocoaTouch.XIB\" version=\"7.10\">\n\t<data"
},
{
"path": "DDProgressView/main.m",
"chars": 358,
"preview": "//\n// main.m\n// DDProgressView\n//\n// Created by Damien DeVille on 3/13/11.\n// Copyright 2011 Snappy Code. All rights"
},
{
"path": "DDProgressView.xcodeproj/project.pbxproj",
"chars": 13597,
"preview": "// !$*UTF8*$!\n{\n\tarchiveVersion = 1;\n\tclasses = {\n\t};\n\tobjectVersion = 46;\n\tobjects = {\n\n/* Begin PBXBuildFile section *"
},
{
"path": "LICENSE",
"chars": 1509,
"preview": "* Copyright (c) 2010-2011, Snappy Code\n* All rights reserved.\n*\n* Redistribution and use in source and binary forms, wit"
},
{
"path": "README.md",
"chars": 450,
"preview": "About\n=====\n\n**DDProgressView** is a custom progress view à la Twitter for iPhone.\n\nDDProgressView works on both iOS and"
}
]
About this extraction
This page contains the full source code of the ddeville/DDProgressView GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 19 files (54.7 KB), approximately 16.2k tokens, and a symbol index with 3 extracted functions, classes, methods, constants, and types. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.
Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.