BathyScapheのリンクをクリックした時に開くアプリケーションを設定するためのツール
Révision | 7ec866a55eeaeade677ae57cfb3fdad1784d335a (tree) |
---|---|
l'heure | 2012-07-16 21:39:12 |
Auteur | masakih <masakih@user...> |
Commiter | masakih |
[Mod] copyWithZone:は多分もう古い
@@ -53,7 +53,7 @@ static NSString *const BSLCItemUserCopyKey = @"BSLCItemUserCopyKey"; | ||
53 | 53 | if([targetApplicationName isEqualToString:inAppName]) return; |
54 | 54 | |
55 | 55 | [targetApplicationName autorelease]; |
56 | - targetApplicationName = [inAppName copyWithZone:[self zone]]; | |
56 | + targetApplicationName = [inAppName copy]; | |
57 | 57 | |
58 | 58 | NSWorkspace *ws = [NSWorkspace sharedWorkspace]; |
59 | 59 | NSString *fullPath = [ws fullPathForApplication:targetApplicationName]; |
@@ -67,7 +67,7 @@ static NSString *const BSLCItemUserCopyKey = @"BSLCItemUserCopyKey"; | ||
67 | 67 | return; |
68 | 68 | } |
69 | 69 | |
70 | - targetIdentifier = [[bundle bundleIdentifier] copyWithZone:[self zone]]; | |
70 | + targetIdentifier = [[bundle bundleIdentifier] copy]; | |
71 | 71 | } |
72 | 72 | |
73 | 73 | - (id)copyWithZone:(NSZone *)zone |