mirror of
https://github.com/nickshanks/ResKnife.git
synced 2024-12-30 08:30:46 +00:00
Add distinction of data fork/resource fork file types, made ResourceDocument
save resource files to the data fork if the document type is that.
This commit is contained in:
parent
da1ef4b3ab
commit
175adc09d2
@ -770,7 +770,7 @@ static NSString *RKExportItemIdentifier = @"com.ulikusterer.resknife.toolbar.ex
|
||||
|
||||
// create and open file for writing
|
||||
error = FSPathMakeRef( [[fileName stringByDeletingLastPathComponent] cString], parentRef, nil );
|
||||
if( fork )
|
||||
if( fork && ![type isEqualToString: @"Resource File (Data Fork)"] )
|
||||
{
|
||||
unichar *uniname = (unichar *) NewPtrClear( sizeof(unichar) *256 );
|
||||
[[fileName lastPathComponent] getCharacters:uniname];
|
||||
|
1
Cocoa/English.lproj/Application.nib/classes.nib
generated
1
Cocoa/English.lproj/Application.nib/classes.nib
generated
@ -24,6 +24,7 @@
|
||||
scrollToSelection = id;
|
||||
showAbout = id;
|
||||
showCreateResourceSheet = id;
|
||||
showExportToDFSheet = id;
|
||||
showFind = id;
|
||||
showInfo = id;
|
||||
showPrefs = id;
|
||||
|
6
Cocoa/English.lproj/Application.nib/info.nib
generated
6
Cocoa/English.lproj/Application.nib/info.nib
generated
@ -3,20 +3,20 @@
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>IBDocumentLocation</key>
|
||||
<string>434 99 432 426 0 0 1024 746 </string>
|
||||
<string>264 129 383 248 0 0 1024 746 </string>
|
||||
<key>IBEditorPositions</key>
|
||||
<dict>
|
||||
<key>246</key>
|
||||
<string>344 386 340 222 0 0 1024 746 </string>
|
||||
<key>29</key>
|
||||
<string>33 294 347 44 0 0 1024 746 </string>
|
||||
<string>22 682 347 44 0 0 1024 746 </string>
|
||||
</dict>
|
||||
<key>IBFramework Version</key>
|
||||
<string>326.0</string>
|
||||
<key>IBOpenObjects</key>
|
||||
<array>
|
||||
<integer>29</integer>
|
||||
<integer>246</integer>
|
||||
<integer>29</integer>
|
||||
</array>
|
||||
<key>IBSystem Version</key>
|
||||
<string>7A202</string>
|
||||
|
BIN
Cocoa/English.lproj/Application.nib/objects.nib
generated
BIN
Cocoa/English.lproj/Application.nib/objects.nib
generated
Binary file not shown.
@ -2721,7 +2721,26 @@
|
||||
<key>CFBundleTypeIconFile</key>
|
||||
<string>Resource file.icns</string>
|
||||
<key>CFBundleTypeName</key>
|
||||
<string>Resource file</string>
|
||||
<string>Resource File (Data Fork)</string>
|
||||
<key>CFBundleTypeOSTypes</key>
|
||||
<array>
|
||||
<string>rsrc</string>
|
||||
<string>RSRC</string>
|
||||
</array>
|
||||
<key>CFBundleTypeRole</key>
|
||||
<string>Editor</string>
|
||||
<key>NSDocumentClass</key>
|
||||
<string>ResourceDocument</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>CFBundleTypeExtensions</key>
|
||||
<array>
|
||||
<string>rsrc</string>
|
||||
</array>
|
||||
<key>CFBundleTypeIconFile</key>
|
||||
<string>Resource file.icns</string>
|
||||
<key>CFBundleTypeName</key>
|
||||
<string>Resource File (Res Fork)</string>
|
||||
<key>CFBundleTypeOSTypes</key>
|
||||
<array>
|
||||
<string>rsrc</string>
|
||||
|
Loading…
Reference in New Issue
Block a user