diff --git a/UIKit/Classes/UINib.h b/UIKit/Classes/UINib.h new file mode 100644 index 00000000..f93a0bc1 --- /dev/null +++ b/UIKit/Classes/UINib.h @@ -0,0 +1,23 @@ +// +// UINib.h +// UIKit +// +// Created by Home on 19/10/12. +// +// + +#import + +// dummy class +@interface UINib : NSObject + +// not implemented ++ (UINib *)nibWithNibName:(NSString *)name bundle:(NSBundle *)bundleOrNil; + +// not implemented ++ (UINib *)nibWithData:(NSData *)data bundle:(NSBundle *)bundleOrNil; + +// not implemented +- (NSArray *)instantiateWithOwner:(id)ownerOrNil options:(NSDictionary *)optionsOrNil; + +@end diff --git a/UIKit/Classes/UINib.m b/UIKit/Classes/UINib.m new file mode 100644 index 00000000..97068f8b --- /dev/null +++ b/UIKit/Classes/UINib.m @@ -0,0 +1,34 @@ +// +// UINib.m +// UIKit +// +// Created by Home on 19/10/12. +// +// + +#import "UINib.h" + +@implementation UINib + +// not implemented ++ (UINib *)nibWithNibName:(NSString *)name bundle:(NSBundle *)bundleOrNil +{ + NSLog(@"UINib is not implemented."); + return nil; +} + +// not implemented ++ (UINib *)nibWithData:(NSData *)data bundle:(NSBundle *)bundleOrNil +{ + NSLog(@"UINib is not implemented."); + return nil; +} + +// not implemented +- (NSArray *)instantiateWithOwner:(id)ownerOrNil options:(NSDictionary *)optionsOrNil +{ + NSLog(@"UINib is not implemented."); + return nil; +} + +@end diff --git a/UIKit/Classes/UIView.h b/UIKit/Classes/UIView.h index b698d6d9..af5beef7 100644 --- a/UIKit/Classes/UIView.h +++ b/UIKit/Classes/UIView.h @@ -122,6 +122,7 @@ typedef NSUInteger UIViewAnimationOptions; + (Class)layerClass; - (id)initWithFrame:(CGRect)frame; +- (id)initwithCoder:(NSCoder *)coder; - (void)addSubview:(UIView *)subview; - (void)insertSubview:(UIView *)subview atIndex:(NSInteger)index; - (void)insertSubview:(UIView *)subview belowSubview:(UIView *)below; diff --git a/UIKit/Classes/UIView.m b/UIKit/Classes/UIView.m index ecdc0d27..2f464488 100644 --- a/UIKit/Classes/UIView.m +++ b/UIKit/Classes/UIView.m @@ -102,6 +102,12 @@ - (id)initWithFrame:(CGRect)theFrame return self; } +- (id)initwithCoder:(NSCoder *)coder +{ + NSLog(@"Not implemented."); + return nil; +} + - (void)dealloc { [[_subviews allObjects] makeObjectsPerformSelector:@selector(removeFromSuperview)]; diff --git a/UIKit/UIKit.xcodeproj/project.pbxproj b/UIKit/UIKit.xcodeproj/project.pbxproj index a1c3444d..c5e599a8 100644 --- a/UIKit/UIKit.xcodeproj/project.pbxproj +++ b/UIKit/UIKit.xcodeproj/project.pbxproj @@ -297,6 +297,8 @@ 78D533DD133A9434006F17CA /* UISearchDisplayController.h in Headers */ = {isa = PBXBuildFile; fileRef = 78D533DB133A9434006F17CA /* UISearchDisplayController.h */; settings = {ATTRIBUTES = (Public, ); }; }; 78D533DE133A9434006F17CA /* UISearchDisplayController.m in Sources */ = {isa = PBXBuildFile; fileRef = 78D533DC133A9434006F17CA /* UISearchDisplayController.m */; }; 8DC2EF570486A6940098B216 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1058C7B1FEA5585E11CA2CBB /* Cocoa.framework */; }; + FAEF437F163193E3008AA63E /* UINib.h in Headers */ = {isa = PBXBuildFile; fileRef = FAEF437D163193E3008AA63E /* UINib.h */; settings = {ATTRIBUTES = (Public, ); }; }; + FAEF4380163193E3008AA63E /* UINib.m in Sources */ = {isa = PBXBuildFile; fileRef = FAEF437E163193E3008AA63E /* UINib.m */; }; /* End PBXBuildFile section */ /* Begin PBXFileReference section */ @@ -595,6 +597,8 @@ 78D533DC133A9434006F17CA /* UISearchDisplayController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = UISearchDisplayController.m; sourceTree = ""; }; 8DC2EF5A0486A6940098B216 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 8DC2EF5B0486A6940098B216 /* UIKit.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = UIKit.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + FAEF437D163193E3008AA63E /* UINib.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UINib.h; sourceTree = ""; }; + FAEF437E163193E3008AA63E /* UINib.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = UINib.m; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -859,6 +863,8 @@ 1489856712EE2CFE003D4751 /* UIWebView.m */, 1489856812EE2CFE003D4751 /* UIWindow.h */, 1489856912EE2CFE003D4751 /* UIWindow.m */, + FAEF437D163193E3008AA63E /* UINib.h */, + FAEF437E163193E3008AA63E /* UINib.m */, ); path = Classes; sourceTree = ""; @@ -1122,6 +1128,7 @@ 14711394156FC83F00251B2E /* UIImageRep.h in Headers */, 145BE31D15754F2400C41D70 /* UIColorRep.h in Headers */, 145BE3211575523000C41D70 /* UIColor+UIPrivate.h in Headers */, + FAEF437F163193E3008AA63E /* UINib.h in Headers */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -1333,6 +1340,7 @@ 14711395156FC83F00251B2E /* UIImageRep.m in Sources */, 14E20663156FE88D0040349D /* UIImageAppKitIntegration.m in Sources */, 145BE31E15754F2400C41D70 /* UIColorRep.m in Sources */, + FAEF4380163193E3008AA63E /* UINib.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; };