mirror of
https://github.com/nickshanks/ResKnife.git
synced 2024-11-04 22:06:17 +00:00
Fix autoresizing; remove more deprecations.
This commit is contained in:
parent
f3c4dfdb82
commit
d699ed31f5
@ -114,19 +114,19 @@ FSGetCatalogInfo:
|
||||
// get sizes of forks as they are on disk
|
||||
UInt64 dataLogicalSize = 0, rsrcLogicalSize = 0;
|
||||
FSRef *fileRef = (FSRef *) NewPtrClear(sizeof(FSRef));
|
||||
if(fileRef && [currentDocument fileName])
|
||||
if(fileRef && [currentDocument fileURL])
|
||||
{
|
||||
OSStatus error = FSPathMakeRef((unsigned char *)[[currentDocument fileName] fileSystemRepresentation], fileRef, nil);
|
||||
OSStatus error = FSPathMakeRef((unsigned char *)[[[currentDocument fileURL] path] fileSystemRepresentation], fileRef, nil);
|
||||
if(!error) FSGetForkSizes(fileRef, &dataLogicalSize, &rsrcLogicalSize);
|
||||
}
|
||||
if(fileRef) DisposePtr((Ptr) fileRef);
|
||||
|
||||
// set info window elements to correct values
|
||||
[[self window] setTitle:NSLocalizedString(@"Document Info",nil)];
|
||||
if([currentDocument fileName]) // document has been saved
|
||||
if([currentDocument fileURL]) // document has been saved
|
||||
{
|
||||
[iconView setImage:[[NSWorkspace sharedWorkspace] iconForFile:[currentDocument fileName]]];
|
||||
[nameView setStringValue:[[currentDocument fileName] lastPathComponent]];
|
||||
[iconView setImage:[[NSWorkspace sharedWorkspace] iconForFile:[[currentDocument fileURL] path]]];
|
||||
[nameView setStringValue:[[currentDocument fileURL] lastPathComponent]];
|
||||
}
|
||||
else // new, untitled document
|
||||
{
|
||||
|
536
Cocoa/English.lproj/InfoWindow.nib/designable.nib
generated
536
Cocoa/English.lproj/InfoWindow.nib/designable.nib
generated
File diff suppressed because it is too large
Load Diff
BIN
Cocoa/English.lproj/InfoWindow.nib/keyedobjects.nib
generated
BIN
Cocoa/English.lproj/InfoWindow.nib/keyedobjects.nib
generated
Binary file not shown.
Loading…
Reference in New Issue
Block a user