No need to force resizing now that window resizing is allowed.

This commit is contained in:
Mitchell Livingston 2006-06-20 03:54:35 +00:00
parent 0905436bfe
commit f633c19c03
2 changed files with 5 additions and 9 deletions

View File

@ -58,11 +58,10 @@
[window setBecomesKeyOnlyIfNeeded: YES];
[window setFrameAutosaveName: @"InspectorWindowFrame"];
[window setFrameUsingName: @"InspectorWindowFrame" force: YES];
[window setFrameUsingName: @"InspectorWindowFrame"];
NSRect frame = [window frame];
float difference = TAB_INFO_HEIGHT - [[[fTabView selectedTabViewItem]
view] frame].size.height;
float difference = TAB_INFO_HEIGHT - [[[fTabView selectedTabViewItem] view] frame].size.height;
frame.origin.y -= difference;
frame.size.height += difference;
[window setFrame: frame display: YES];

View File

@ -589,12 +589,9 @@
- (void) trashFile: (NSString *) path
{
if( ![[NSWorkspace sharedWorkspace] performFileOperation:
NSWorkspaceRecycleOperation source:
[path stringByDeletingLastPathComponent]
destination: @""
files: [NSArray arrayWithObject: [path lastPathComponent]]
tag: nil] )
if (![[NSWorkspace sharedWorkspace] performFileOperation: NSWorkspaceRecycleOperation
source: [path stringByDeletingLastPathComponent] destination: @""
files: [NSArray arrayWithObject: [path lastPathComponent]] tag: nil])
{
/* We can't move it to the trash, let's try just to delete it
(will work if it is on a remote volume) */