Skip to content

Commit

Permalink
Disable value transformers and rename class TMDChameleon to TMD2Chame…
Browse files Browse the repository at this point in the history
…leon.

This is because Dialog 1 exports identically named classes (which presently are also identically implemented, but two plug-ins should not export classes with same names, and since Dialog 1 is “frozen” I found it most appropriate to change Dialog 2).


git-svn-id: http://svn.textmate.org/trunk/Tools/Dialog@11678 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
  • Loading branch information
sorbits committed Jun 21, 2009
1 parent 8c950bf commit bc8b94d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Commands/prototype/TMDChameleon.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

#import <Cocoa/Cocoa.h>

@interface TMDChameleon : NSObject
@interface TMD2Chameleon : NSObject
{
}
+ (BOOL)createSubclassNamed:(NSString*)aName withValues:(NSDictionary*)values;
Expand Down
4 changes: 2 additions & 2 deletions Commands/prototype/TMDChameleon.mm
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ static Class find_root (Class cl)
return cl;
}

@implementation TMDChameleon
@implementation TMD2Chameleon
- (id)init
{
id res = [DefaultValues objectForKey:NSStringFromClass([self class])];
Expand All @@ -28,7 +28,7 @@ + (BOOL)createSubclassNamed:(NSString*)aName withValues:(NSDictionary*)values
if(NSClassFromString(aName))
return YES;

Class super_cl = [TMDChameleon class];
Class super_cl = [TMD2Chameleon class];

Class sub_cl = (Class)calloc(1, sizeof(objc_class));
Class meta_cl = (Class)calloc(1, sizeof(objc_class));
Expand Down
2 changes: 1 addition & 1 deletion Commands/prototype/prototype.mm
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ - (void)handleCommand:(CLIProxy*)proxy
values = [NSPropertyListSerialization propertyListFromData:[(NSString*)values dataUsingEncoding:NSUTF8StringEncoding] mutabilityOption:NSPropertyListImmutable format:nil errorDescription:NULL];

enumerate([values allKeys], id key)
[TMDChameleon createSubclassNamed:key withValues:[values objectForKey:key]];
[TMD2Chameleon createSubclassNamed:key withValues:[values objectForKey:key]];
}

if(NSString* show = [args objectForKey:@"show"])
Expand Down
2 changes: 0 additions & 2 deletions Dialog2.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
91D6F9060CF23E7F000F8170 /* menu.mm in Sources */ = {isa = PBXBuildFile; fileRef = 91D6F9040CF23E7F000F8170 /* menu.mm */; };
91D6F90B0CF23EAE000F8170 /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 91D6F90A0CF23EAE000F8170 /* Carbon.framework */; };
91D6F97E0CF2C8EF000F8170 /* WebKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 91D6F97D0CF2C8EF000F8170 /* WebKit.framework */; };
91D6F9950CF33A7A000F8170 /* ValueTransformers.mm in Sources */ = {isa = PBXBuildFile; fileRef = 91D6F9920CF33A7A000F8170 /* ValueTransformers.mm */; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
Expand Down Expand Up @@ -366,7 +365,6 @@
91D6F8FE0CF23E51000F8170 /* alert.mm in Sources */,
91D6F9020CF23E79000F8170 /* help.mm in Sources */,
91D6F9060CF23E7F000F8170 /* menu.mm in Sources */,
91D6F9950CF33A7A000F8170 /* ValueTransformers.mm in Sources */,
91BF40BA0D6792CB001834B3 /* CLIProxy.mm in Sources */,
910713760D99768B0091C83C /* TextMate.mm in Sources */,
91234F960D9A84E900E346BA /* insert.mm in Sources */,
Expand Down

0 comments on commit bc8b94d

Please sign in to comment.