BathyScapheのアイコンセット生成&適用ツール
修订版 | 958cdfc5cabd185e5b462afac49255d0a92f7ea2 (tree) |
---|---|
时间 | 2012-05-30 23:38:27 |
作者 | masakih <masakih@user...> |
Commiter | masakih |
[New] デフォルト画像を持たないリソースの処理
@@ -24,6 +24,7 @@ | ||
24 | 24 | 8D15AC310486D014006FF6A4 /* IconSetDocument.m in Sources */ = {isa = PBXBuildFile; fileRef = 2A37F4ACFDCFA73011CA2CEA /* IconSetDocument.m */; settings = {ATTRIBUTES = (); }; }; |
25 | 25 | 8D15AC320486D014006FF6A4 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 2A37F4B0FDCFA73011CA2CEA /* main.m */; settings = {ATTRIBUTES = (); }; }; |
26 | 26 | 8D15AC340486D014006FF6A4 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1058C7A7FEA54F5311CA2CBB /* Cocoa.framework */; }; |
27 | + F414890C157666FC0041118B /* NotHaveDefaultImageList.plist in Resources */ = {isa = PBXBuildFile; fileRef = F414890B157666FC0041118B /* NotHaveDefaultImageList.plist */; }; | |
27 | 28 | F41CD7AE090FDF3C00D66C88 /* Credits.rtf in Resources */ = {isa = PBXBuildFile; fileRef = F4F4B5FC08818D4400E44313 /* Credits.rtf */; }; |
28 | 29 | F42A855A0F8A580A0014157F /* DeprecatedImageList.plist in Resources */ = {isa = PBXBuildFile; fileRef = F42A85590F8A580A0014157F /* DeprecatedImageList.plist */; }; |
29 | 30 | F42C27480987B78A0032C9F9 /* NSAppleEventDescriptor-Extensions.m in Sources */ = {isa = PBXBuildFile; fileRef = F42C27460987B78A0032C9F9 /* NSAppleEventDescriptor-Extensions.m */; }; |
@@ -90,6 +91,7 @@ | ||
90 | 91 | 32DBCF750370BD2300C91783 /* IconSetComposer_Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = IconSetComposer_Prefix.pch; sourceTree = "<group>"; }; |
91 | 92 | 8D15AC360486D014006FF6A4 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist; path = Info.plist; sourceTree = "<group>"; }; |
92 | 93 | 8D15AC370486D014006FF6A4 /* BSIconSetComposer.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = BSIconSetComposer.app; sourceTree = BUILT_PRODUCTS_DIR; }; |
94 | + F414890B157666FC0041118B /* NotHaveDefaultImageList.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = NotHaveDefaultImageList.plist; sourceTree = "<group>"; }; | |
93 | 95 | F42A85590F8A580A0014157F /* DeprecatedImageList.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = DeprecatedImageList.plist; sourceTree = "<group>"; }; |
94 | 96 | F42C27450987B78A0032C9F9 /* NSAppleEventDescriptor-Extensions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSAppleEventDescriptor-Extensions.h"; sourceTree = "<group>"; }; |
95 | 97 | F42C27460987B78A0032C9F9 /* NSAppleEventDescriptor-Extensions.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "NSAppleEventDescriptor-Extensions.m"; sourceTree = "<group>"; }; |
@@ -240,6 +242,7 @@ | ||
240 | 242 | F4F4B5FC08818D4400E44313 /* Credits.rtf */, |
241 | 243 | F4F4B2C508814EFF00E44313 /* ImageList.plist */, |
242 | 244 | F42A85590F8A580A0014157F /* DeprecatedImageList.plist */, |
245 | + F414890B157666FC0041118B /* NotHaveDefaultImageList.plist */, | |
243 | 246 | F461E46308ADCDB400384957 /* MainMenu.nib */, |
244 | 247 | F461E46608ADCDCA00384957 /* IconSetDocument.nib */, |
245 | 248 | 8D15AC360486D014006FF6A4 /* Info.plist */, |
@@ -375,6 +378,7 @@ | ||
375 | 378 | F45B21840919919C0055CBC4 /* IconNames.strings in Resources */, |
376 | 379 | F42A855A0F8A580A0014157F /* DeprecatedImageList.plist in Resources */, |
377 | 380 | F4FDBDF81572231100036EBB /* DropToMe.png in Resources */, |
381 | + F414890C157666FC0041118B /* NotHaveDefaultImageList.plist in Resources */, | |
378 | 382 | ); |
379 | 383 | runOnlyForDeploymentPostprocessing = 0; |
380 | 384 | }; |
@@ -72,7 +72,6 @@ static IconSetComposer *_instance = nil; | ||
72 | 72 | NSString *bsResourcesPath; |
73 | 73 | NSArray *bsResources; |
74 | 74 | NSArray *knownBSSystemImages; |
75 | - NSArray *deprecatedImages; | |
76 | 75 | NSArray *managedImages; |
77 | 76 | unsigned managedImageNum; |
78 | 77 | unsigned i, count; |
@@ -97,8 +96,6 @@ static IconSetComposer *_instance = nil; | ||
97 | 96 | |
98 | 97 | knownBSSystemImages = [NSArray arrayWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"BathyScapheSystemImages" |
99 | 98 | ofType:@"plist"]]; |
100 | - deprecatedImages = [NSArray arrayWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"DeprecatedImageList" | |
101 | - ofType:@"plist"]]; | |
102 | 99 | |
103 | 100 | count = [bsResources count]; |
104 | 101 | for( i = 0; i < count; i++ ) { |
@@ -119,9 +116,15 @@ static IconSetComposer *_instance = nil; | ||
119 | 116 | } |
120 | 117 | } |
121 | 118 | if( managedImageNum > bsResourceImageNum ) { |
119 | + NSArray *deprecatedImages = [NSArray arrayWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"DeprecatedImageList" | |
120 | + ofType:@"plist"]]; | |
121 | + NSArray *notHaveDefault = [NSArray arrayWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"NotHaveDefaultImageList" | |
122 | + ofType:@"plist"]]; | |
123 | + | |
122 | 124 | decrementalImages = [[managedImages mutableCopy] autorelease]; |
123 | 125 | [decrementalImages removeObjectsInArray:containsImages]; |
124 | 126 | [decrementalImages removeObjectsInArray:deprecatedImages]; |
127 | + [decrementalImages removeObjectsInArray:notHaveDefault]; | |
125 | 128 | if([decrementalImages count] > 0) { |
126 | 129 | status |= kIconsHaveIncreased; |
127 | 130 | } |
@@ -0,0 +1,9 @@ | ||
1 | +<?xml version="1.0" encoding="UTF-8"?> | |
2 | +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
3 | +<plist version="1.0"> | |
4 | +<array> | |
5 | + <string>lastUpdatedHeaderLeft</string> | |
6 | + <string>lastUpdatedHeaderMiddle</string> | |
7 | + <string>lastUpdatedHeaderRight</string> | |
8 | +</array> | |
9 | +</plist> |