Permalink
Browse files

[NEW] Small 64-bit compatibility fix. (Alexander Rauchfuss via https:…

  • Loading branch information...
rentzsch committed Apr 19, 2009
1 parent 06c9b18 commit 6c0106b2085b92f2c3212a2ec47e6bf5af43acbb
Showing with 13 additions and 13 deletions.
  1. +7 −13 BDAlias.m
  2. +6 −0 BDAliasTestStand/BDAliasTestStand.xcodeproj/project.pbxproj
View
@@ -58,13 +58,7 @@ static Handle DataToHandle(CFDataRef inData)
len = CFDataGetLength(inData);
- handle = NewHandle(len);
-
- if ((handle != NULL) && (len > 0)) {
- HLock(handle);
- BlockMoveData(CFDataGetBytePtr(inData), *handle, len);
- HUnlock(handle);
- }
+ PtrToHand(CFDataGetBytePtr(inData), (Handle*)&handle, len);
return handle;
}
@@ -346,16 +340,16 @@ + (BDAlias *)aliasWithFSRef:(FSRef *)ref relativeToFSRef:(FSRef *)relRef
- (BOOL) isEqual:(BDAlias*)otherParam
{
- // Two aliases are identical if they resolve to the same full path
- NSString* path1 = [self fullPath];
- NSString* path2 = [otherParam fullPath];
-
- return ([path1 isEqualTo:path2] == YES);
+ // Two aliases are identical if they resolve to the same full path
+ NSString* path1 = [self fullPath];
+ NSString* path2 = [otherParam fullPath];
+
+ return ([path1 isEqualTo:path2] == YES);
}
- (unsigned) hash
{
- return [[self fullPath] hash];
+ return [[self fullPath] hash];
}
@end
@@ -7,6 +7,7 @@
objects = {
/* Begin PBXBuildFile section */
+ 798C10860F9BCCE10072C5A3 /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 798C10850F9BCCE10072C5A3 /* Carbon.framework */; };
79D895EE0BCABA3500350C16 /* BDAlias.m in Sources */ = {isa = PBXBuildFile; fileRef = 79D895ED0BCABA3500350C16 /* BDAlias.m */; };
8DD76F9A0486AA7600D96B5E /* BDAliasTestStand.m in Sources */ = {isa = PBXBuildFile; fileRef = 08FB7796FE84155DC02AAC07 /* BDAliasTestStand.m */; settings = {ATTRIBUTES = (); }; };
8DD76F9C0486AA7600D96B5E /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 08FB779EFE84155DC02AAC07 /* Foundation.framework */; };
@@ -16,6 +17,7 @@
08FB7796FE84155DC02AAC07 /* BDAliasTestStand.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BDAliasTestStand.m; sourceTree = "<group>"; };
08FB779EFE84155DC02AAC07 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = /System/Library/Frameworks/Foundation.framework; sourceTree = "<absolute>"; };
32A70AAB03705E1F00C91783 /* BDAliasTestStand_Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BDAliasTestStand_Prefix.pch; sourceTree = "<group>"; };
+ 798C10850F9BCCE10072C5A3 /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Carbon.framework; path = /System/Library/Frameworks/Carbon.framework; sourceTree = "<absolute>"; };
79D895EC0BCABA3500350C16 /* BDAlias.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = BDAlias.h; path = ../BDAlias.h; sourceTree = "<group>"; };
79D895ED0BCABA3500350C16 /* BDAlias.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; name = BDAlias.m; path = ../BDAlias.m; sourceTree = "<group>"; };
8DD76FA10486AA7600D96B5E /* BDAliasTestStand */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = BDAliasTestStand; sourceTree = BUILT_PRODUCTS_DIR; };
@@ -27,6 +29,7 @@
buildActionMask = 2147483647;
files = (
8DD76F9C0486AA7600D96B5E /* Foundation.framework in Frameworks */,
+ 798C10860F9BCCE10072C5A3 /* Carbon.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -57,6 +60,7 @@
08FB779DFE84155DC02AAC07 /* External Frameworks and Libraries */ = {
isa = PBXGroup;
children = (
+ 798C10850F9BCCE10072C5A3 /* Carbon.framework */,
08FB779EFE84155DC02AAC07 /* Foundation.framework */,
);
name = "External Frameworks and Libraries";
@@ -96,9 +100,11 @@
08FB7793FE84155DC02AAC07 /* Project object */ = {
isa = PBXProject;
buildConfigurationList = 1DEB927808733DD40010E9CD /* Build configuration list for PBXProject "BDAliasTestStand" */;
+ compatibilityVersion = "Xcode 2.4";
hasScannedForEncodings = 1;
mainGroup = 08FB7794FE84155DC02AAC07 /* BDAliasTestStand */;
projectDirPath = "";
+ projectRoot = "";
targets = (
8DD76F960486AA7600D96B5E /* BDAliasTestStand */,
);

0 comments on commit 6c0106b

Please sign in to comment.