proper title in prefs window

This commit is contained in:
Mitchell Livingston 2006-10-24 21:04:40 +00:00
parent b95748b998
commit ab291dc44d
1 changed files with 9 additions and 2 deletions

View File

@ -916,13 +916,20 @@
int difference = [view frame].size.height - [[window contentView] frame].size.height;
windowRect.origin.y -= difference;
windowRect.size.height += difference;
[window setTitle: [fToolbar selectedItemIdentifier]];
[view setHidden: YES];
[window setContentView: view];
[window setFrame: windowRect display: YES animate: YES];
[view setHidden: NO];
NSToolbarItem * item;
NSEnumerator * enumerator = [[fToolbar items] objectEnumerator];
while ((item = [enumerator nextObject]))
if ([[item itemIdentifier] isEqualToString: [fToolbar selectedItemIdentifier]])
{
[window setTitle: [item label]];
break;
}
}
- (void) folderSheetClosed: (NSOpenPanel *) openPanel returnCode: (int) code contextInfo: (void *) info