diff --git a/CA360.xcodeproj/project.pbxproj b/CA360.xcodeproj/project.pbxproj index 7297de4..95919c1 100755 --- a/CA360.xcodeproj/project.pbxproj +++ b/CA360.xcodeproj/project.pbxproj @@ -35,6 +35,12 @@ DFF70D161039F83E0052EE6A /* StyleProperties.m in Sources */ = {isa = PBXBuildFile; fileRef = DFF70D141039F83E0052EE6A /* StyleProperties.m */; }; DFF70D78103A0BB40052EE6A /* StarMask.png in Resources */ = {isa = PBXBuildFile; fileRef = DFF70D77103A0BB40052EE6A /* StarMask.png */; }; DFF70D79103A0BB40052EE6A /* StarMask.png in Resources */ = {isa = PBXBuildFile; fileRef = DFF70D77103A0BB40052EE6A /* StarMask.png */; }; + DFF70D9E103A104C0052EE6A /* LayerActions.m in Sources */ = {isa = PBXBuildFile; fileRef = DFF70D9D103A104C0052EE6A /* LayerActions.m */; }; + DFF70D9F103A104C0052EE6A /* LayerActions.m in Sources */ = {isa = PBXBuildFile; fileRef = DFF70D9D103A104C0052EE6A /* LayerActions.m */; }; + DFF70DA2103A10870052EE6A /* AnimationTransactions.m in Sources */ = {isa = PBXBuildFile; fileRef = DFF70DA1103A10870052EE6A /* AnimationTransactions.m */; }; + DFF70DA3103A10870052EE6A /* AnimationTransactions.m in Sources */ = {isa = PBXBuildFile; fileRef = DFF70DA1103A10870052EE6A /* AnimationTransactions.m */; }; + DFF70DC0103A11DF0052EE6A /* AnimationGroups.m in Sources */ = {isa = PBXBuildFile; fileRef = DFF70DBF103A11DF0052EE6A /* AnimationGroups.m */; }; + DFF70DC1103A11DF0052EE6A /* AnimationGroups.m in Sources */ = {isa = PBXBuildFile; fileRef = DFF70DBF103A11DF0052EE6A /* AnimationGroups.m */; }; DFF7F28D103601FE0067ED5B /* OCMock.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = DFF7F28C103601FE0067ED5B /* OCMock.framework */; }; DFF7F2F5103602470067ED5B /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = DFF7F2F4103602470067ED5B /* QuartzCore.framework */; }; DFF7F2F6103602470067ED5B /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = DFF7F2F4103602470067ED5B /* QuartzCore.framework */; }; @@ -57,8 +63,8 @@ DFF7F5C6103626750067ED5B /* GeometryProperties.m in Sources */ = {isa = PBXBuildFile; fileRef = DFF7F5C4103626750067ED5B /* GeometryProperties.m */; }; DFF7F612103632570067ED5B /* LayerDrawing.m in Sources */ = {isa = PBXBuildFile; fileRef = DFF7F611103632570067ED5B /* LayerDrawing.m */; }; DFF7F613103632570067ED5B /* LayerDrawing.m in Sources */ = {isa = PBXBuildFile; fileRef = DFF7F611103632570067ED5B /* LayerDrawing.m */; }; - DFF7F616103632A90067ED5B /* SimpleAnimation.m in Sources */ = {isa = PBXBuildFile; fileRef = DFF7F615103632A90067ED5B /* SimpleAnimation.m */; }; - DFF7F617103632A90067ED5B /* SimpleAnimation.m in Sources */ = {isa = PBXBuildFile; fileRef = DFF7F615103632A90067ED5B /* SimpleAnimation.m */; }; + DFF7F616103632A90067ED5B /* BasicAnimation.m in Sources */ = {isa = PBXBuildFile; fileRef = DFF7F615103632A90067ED5B /* BasicAnimation.m */; }; + DFF7F617103632A90067ED5B /* BasicAnimation.m in Sources */ = {isa = PBXBuildFile; fileRef = DFF7F615103632A90067ED5B /* BasicAnimation.m */; }; DFF7F65A103634C70067ED5B /* KeyframeAnimation.m in Sources */ = {isa = PBXBuildFile; fileRef = DFF7F659103634C70067ED5B /* KeyframeAnimation.m */; }; DFF7F65B103634C70067ED5B /* KeyframeAnimation.m in Sources */ = {isa = PBXBuildFile; fileRef = DFF7F659103634C70067ED5B /* KeyframeAnimation.m */; }; /* End PBXBuildFile section */ @@ -105,6 +111,12 @@ DFF70D131039F83E0052EE6A /* StyleProperties.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = StyleProperties.h; path = Classes/Samples/StyleProperties.h; sourceTree = ""; }; DFF70D141039F83E0052EE6A /* StyleProperties.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = StyleProperties.m; path = Classes/Samples/StyleProperties.m; sourceTree = ""; }; DFF70D77103A0BB40052EE6A /* StarMask.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = StarMask.png; sourceTree = ""; }; + DFF70D9C103A104C0052EE6A /* LayerActions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = LayerActions.h; path = Classes/Samples/LayerActions.h; sourceTree = ""; }; + DFF70D9D103A104C0052EE6A /* LayerActions.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = LayerActions.m; path = Classes/Samples/LayerActions.m; sourceTree = ""; }; + DFF70DA0103A10870052EE6A /* AnimationTransactions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AnimationTransactions.h; path = Classes/Samples/AnimationTransactions.h; sourceTree = ""; }; + DFF70DA1103A10870052EE6A /* AnimationTransactions.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AnimationTransactions.m; path = Classes/Samples/AnimationTransactions.m; sourceTree = ""; }; + DFF70DBE103A11DF0052EE6A /* AnimationGroups.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AnimationGroups.h; path = Classes/Samples/AnimationGroups.h; sourceTree = ""; }; + DFF70DBF103A11DF0052EE6A /* AnimationGroups.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AnimationGroups.m; path = Classes/Samples/AnimationGroups.m; sourceTree = ""; }; DFF7F25D103601B20067ED5B /* UnitTests.octest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = UnitTests.octest; sourceTree = BUILT_PRODUCTS_DIR; }; DFF7F28C103601FE0067ED5B /* OCMock.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = OCMock.framework; sourceTree = ""; }; DFF7F2F4103602470067ED5B /* QuartzCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuartzCore.framework; path = System/Library/Frameworks/QuartzCore.framework; sourceTree = SDKROOT; }; @@ -123,8 +135,8 @@ DFF7F5C4103626750067ED5B /* GeometryProperties.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = GeometryProperties.m; path = Classes/Samples/GeometryProperties.m; sourceTree = ""; }; DFF7F610103632570067ED5B /* LayerDrawing.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = LayerDrawing.h; path = Classes/Samples/LayerDrawing.h; sourceTree = ""; }; DFF7F611103632570067ED5B /* LayerDrawing.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = LayerDrawing.m; path = Classes/Samples/LayerDrawing.m; sourceTree = ""; }; - DFF7F614103632A90067ED5B /* SimpleAnimation.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SimpleAnimation.h; path = Classes/Samples/SimpleAnimation.h; sourceTree = ""; }; - DFF7F615103632A90067ED5B /* SimpleAnimation.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SimpleAnimation.m; path = Classes/Samples/SimpleAnimation.m; sourceTree = ""; }; + DFF7F614103632A90067ED5B /* BasicAnimation.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = BasicAnimation.h; path = Classes/Samples/BasicAnimation.h; sourceTree = ""; }; + DFF7F615103632A90067ED5B /* BasicAnimation.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = BasicAnimation.m; path = Classes/Samples/BasicAnimation.m; sourceTree = ""; }; DFF7F658103634C70067ED5B /* KeyframeAnimation.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = KeyframeAnimation.h; path = Classes/Samples/KeyframeAnimation.h; sourceTree = ""; }; DFF7F659103634C70067ED5B /* KeyframeAnimation.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = KeyframeAnimation.m; path = Classes/Samples/KeyframeAnimation.m; sourceTree = ""; }; /* End PBXFileReference section */ @@ -266,10 +278,16 @@ DFF7F657103634AB0067ED5B /* Animation */ = { isa = PBXGroup; children = ( - DFF7F614103632A90067ED5B /* SimpleAnimation.h */, - DFF7F615103632A90067ED5B /* SimpleAnimation.m */, + DFF7F614103632A90067ED5B /* BasicAnimation.h */, + DFF7F615103632A90067ED5B /* BasicAnimation.m */, + DFF70DBE103A11DF0052EE6A /* AnimationGroups.h */, + DFF70DBF103A11DF0052EE6A /* AnimationGroups.m */, + DFF70DA0103A10870052EE6A /* AnimationTransactions.h */, + DFF70DA1103A10870052EE6A /* AnimationTransactions.m */, DFF7F658103634C70067ED5B /* KeyframeAnimation.h */, DFF7F659103634C70067ED5B /* KeyframeAnimation.m */, + DFF70D9C103A104C0052EE6A /* LayerActions.h */, + DFF70D9D103A104C0052EE6A /* LayerActions.m */, ); name = Animation; sourceTree = ""; @@ -441,13 +459,16 @@ DFF7F585103623ED0067ED5B /* ShapeLayers.m in Sources */, DFF7F5C6103626750067ED5B /* GeometryProperties.m in Sources */, DFF7F613103632570067ED5B /* LayerDrawing.m in Sources */, - DFF7F616103632A90067ED5B /* SimpleAnimation.m in Sources */, + DFF7F616103632A90067ED5B /* BasicAnimation.m in Sources */, DFF7F65B103634C70067ED5B /* KeyframeAnimation.m in Sources */, DF80136E10377A1200B48250 /* GradientLayers.m in Sources */, DF8014A31038D12900B48250 /* CALayer+FTDebugDrawing.m in Sources */, DF8015631038E1C400B48250 /* LayerTransforms.m in Sources */, DFF70C321039D8BC0052EE6A /* ImageContent.m in Sources */, DFF70D151039F83E0052EE6A /* StyleProperties.m in Sources */, + DFF70D9E103A104C0052EE6A /* LayerActions.m in Sources */, + DFF70DA2103A10870052EE6A /* AnimationTransactions.m in Sources */, + DFF70DC0103A11DF0052EE6A /* AnimationGroups.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -463,13 +484,16 @@ DFF7F586103623ED0067ED5B /* ShapeLayers.m in Sources */, DFF7F5C5103626750067ED5B /* GeometryProperties.m in Sources */, DFF7F612103632570067ED5B /* LayerDrawing.m in Sources */, - DFF7F617103632A90067ED5B /* SimpleAnimation.m in Sources */, + DFF7F617103632A90067ED5B /* BasicAnimation.m in Sources */, DFF7F65A103634C70067ED5B /* KeyframeAnimation.m in Sources */, DF80136D10377A1200B48250 /* GradientLayers.m in Sources */, DF8014A21038D12900B48250 /* CALayer+FTDebugDrawing.m in Sources */, DF8015621038E1C400B48250 /* LayerTransforms.m in Sources */, DFF70C331039D8BC0052EE6A /* ImageContent.m in Sources */, DFF70D161039F83E0052EE6A /* StyleProperties.m in Sources */, + DFF70D9F103A104C0052EE6A /* LayerActions.m in Sources */, + DFF70DA3103A10870052EE6A /* AnimationTransactions.m in Sources */, + DFF70DC1103A11DF0052EE6A /* AnimationGroups.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; diff --git a/Classes/Samples/AnimationGroups.h b/Classes/Samples/AnimationGroups.h new file mode 100644 index 0000000..7f1c21a --- /dev/null +++ b/Classes/Samples/AnimationGroups.h @@ -0,0 +1,32 @@ +/* + The MIT License + + Copyright (c) 2009 Free Time Studios and Nathan Eror + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +*/ + +#import +#import + +@interface AnimationGroups : UIViewController { + +} + +@end diff --git a/Classes/Samples/SimpleAnimation.m b/Classes/Samples/AnimationGroups.m similarity index 95% rename from Classes/Samples/SimpleAnimation.m rename to Classes/Samples/AnimationGroups.m index 0cb1446..f3dba83 100644 --- a/Classes/Samples/SimpleAnimation.m +++ b/Classes/Samples/AnimationGroups.m @@ -22,13 +22,13 @@ of this software and associated documentation files (the "Software"), to deal THE SOFTWARE. */ -#import "SimpleAnimation.h" +#import "AnimationGroups.h" -@implementation SimpleAnimation +@implementation AnimationGroups + (NSString *)friendlyName { - return @"Simple Animation"; + return @"Animation Groups"; } #pragma mark init and dealloc @@ -64,5 +64,3 @@ - (void)viewDidAppear:(BOOL)animated { } @end - - diff --git a/Classes/Samples/AnimationTransactions.h b/Classes/Samples/AnimationTransactions.h new file mode 100644 index 0000000..63027f1 --- /dev/null +++ b/Classes/Samples/AnimationTransactions.h @@ -0,0 +1,32 @@ +/* + The MIT License + + Copyright (c) 2009 Free Time Studios and Nathan Eror + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +*/ + +#import + + +@interface AnimationTransactions : UIViewController { + +} + +@end diff --git a/Classes/Samples/AnimationTransactions.m b/Classes/Samples/AnimationTransactions.m new file mode 100644 index 0000000..525d71f --- /dev/null +++ b/Classes/Samples/AnimationTransactions.m @@ -0,0 +1,66 @@ +/* + The MIT License + + Copyright (c) 2009 Free Time Studios and Nathan Eror + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +*/ + +#import "AnimationTransactions.h" +#import + +@implementation AnimationTransactions + ++ (NSString *)friendlyName { + return @"Animation Transactions"; +} + +#pragma mark init and dealloc + +- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil { + if (self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]) { + self.title = [[self class] friendlyName]; + } + return self; +} + +- (void)dealloc { + [super dealloc]; +} + +#pragma mark Load and unload the view + +- (void)loadView { + UIView *myView = [[[UIView alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease]; + myView.backgroundColor = [UIColor blackColor]; + self.view = myView; +} + +- (void)viewDidUnload { +} + +#pragma mark View drawing + +- (void)viewWillAppear:(BOOL)animated { +} + +- (void)viewDidAppear:(BOOL)animated { +} + +@end diff --git a/Classes/Samples/SimpleAnimation.h b/Classes/Samples/BasicAnimation.h similarity index 96% rename from Classes/Samples/SimpleAnimation.h rename to Classes/Samples/BasicAnimation.h index da3a458..db2e73e 100644 --- a/Classes/Samples/SimpleAnimation.h +++ b/Classes/Samples/BasicAnimation.h @@ -25,7 +25,7 @@ #import -@interface SimpleAnimation : UIViewController { +@interface BasicAnimation : UIViewController { } diff --git a/Classes/Samples/BasicAnimation.m b/Classes/Samples/BasicAnimation.m new file mode 100644 index 0000000..3b968c1 --- /dev/null +++ b/Classes/Samples/BasicAnimation.m @@ -0,0 +1,68 @@ +/* + The MIT License + + Copyright (c) 2009 Free Time Studios and Nathan Eror + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +*/ + +#import "BasicAnimation.h" +#import + +@implementation BasicAnimation + ++ (NSString *)friendlyName { + return @"Basic Animation"; +} + +#pragma mark init and dealloc + +- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil { + if (self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]) { + self.title = [[self class] friendlyName]; + } + return self; +} + +- (void)dealloc { + [super dealloc]; +} + +#pragma mark Load and unload the view + +- (void)loadView { + UIView *myView = [[[UIView alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease]; + myView.backgroundColor = [UIColor blackColor]; + self.view = myView; +} + +- (void)viewDidUnload { +} + +#pragma mark View drawing + +- (void)viewWillAppear:(BOOL)animated { +} + +- (void)viewDidAppear:(BOOL)animated { +} + +@end + + diff --git a/Classes/Samples/LayerActions.h b/Classes/Samples/LayerActions.h new file mode 100644 index 0000000..17108f2 --- /dev/null +++ b/Classes/Samples/LayerActions.h @@ -0,0 +1,32 @@ +/* + The MIT License + + Copyright (c) 2009 Free Time Studios and Nathan Eror + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +*/ + +#import + + +@interface LayerActions : UIViewController { + +} + +@end diff --git a/Classes/Samples/LayerActions.m b/Classes/Samples/LayerActions.m new file mode 100644 index 0000000..cd4bade --- /dev/null +++ b/Classes/Samples/LayerActions.m @@ -0,0 +1,66 @@ +/* + The MIT License + + Copyright (c) 2009 Free Time Studios and Nathan Eror + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +*/ + +#import "LayerActions.h" +#import + +@implementation LayerActions + ++ (NSString *)friendlyName { + return @"Layer Actions"; +} + +#pragma mark init and dealloc + +- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil { + if (self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]) { + self.title = [[self class] friendlyName]; + } + return self; +} + +- (void)dealloc { + [super dealloc]; +} + +#pragma mark Load and unload the view + +- (void)loadView { + UIView *myView = [[[UIView alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease]; + myView.backgroundColor = [UIColor blackColor]; + self.view = myView; +} + +- (void)viewDidUnload { +} + +#pragma mark View drawing + +- (void)viewWillAppear:(BOOL)animated { +} + +- (void)viewDidAppear:(BOOL)animated { +} + +@end diff --git a/Classes/Samples/SampleManager.m b/Classes/Samples/SampleManager.m index efe5f89..8c3b098 100644 --- a/Classes/Samples/SampleManager.m +++ b/Classes/Samples/SampleManager.m @@ -29,12 +29,15 @@ of this software and associated documentation files (the "Software"), to deal #import "ShapeLayers.h" #import "GeometryProperties.h" #import "LayerDrawing.h" -#import "SimpleAnimation.h" +#import "BasicAnimation.h" #import "KeyframeAnimation.h" #import "GradientLayers.h" #import "LayerTransforms.h" #import "ImageContent.h" #import "StyleProperties.h" +#import "LayerActions.h" +#import "AnimationTransactions.h" +#import "AnimationGroups.h" @interface SampleManager (Private) @@ -59,7 +62,8 @@ - (id)init { NSArray *geom = [NSArray arrayWithObjects:[GeometryProperties class], [LayerTransforms class], nil]; NSArray *hier = [NSArray arrayWithObjects:[LayerTree class], nil]; NSArray *drawing = [NSArray arrayWithObjects:[ImageContent class], [LayerDrawing class], [StyleProperties class], nil]; - NSArray *animation = [NSArray arrayWithObjects:[SimpleAnimation class], [KeyframeAnimation class], nil]; + NSArray *animation = [NSArray arrayWithObjects:[BasicAnimation class], [AnimationGroups class], + [AnimationTransactions class], [KeyframeAnimation class], [LayerActions class], nil]; NSArray *special = [NSArray arrayWithObjects:[ShapeLayers class], [GradientLayers class], nil];