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:
Uli Kusterer 2003-08-18 22:18:11 +02:00
parent da1ef4b3ab
commit 175adc09d2
5 changed files with 25 additions and 5 deletions

View File

@ -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];

View File

@ -24,6 +24,7 @@
scrollToSelection = id;
showAbout = id;
showCreateResourceSheet = id;
showExportToDFSheet = id;
showFind = id;
showInfo = id;
showPrefs = id;

View File

@ -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>

Binary file not shown.

View File

@ -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>