Changeset 664
- Timestamp:
- Jul 22, 2006, 9:00:58 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/macosx/Controller.m
r663 r664 2113 2113 - (NSRect) windowWillUseStandardFrame: (NSWindow *) window defaultFrame: (NSRect) defaultFrame 2114 2114 { 2115 return [self windowFrameForAmount: [fFilteredTorrents count]]; 2115 NSRect frame = [fDefaults boolForKey: @"AutoSize"] ? [window frame] 2116 : [self windowFrameForAmount: [fFilteredTorrents count]]; 2117 2118 frame.size.width = [fDefaults boolForKey: @"SmallView"] ? [fWindow minSize].width : 450.0; 2119 return frame; 2116 2120 } 2117 2121 2118 2122 - (void) setAutoSize: (NSNotification *) notification 2119 2123 { 2120 #warning will not work because of sheets2121 //[[fWindow standardWindowButton: NSWindowZoomButton] setEnabled: ![fDefaults boolForKey: @"AutoSize"]];2122 2124 [self setWindowSizeToFit]; 2123 }2124 2125 - (BOOL) windowShouldZoom: (NSWindow *) sender toFrame: (NSRect) newFrame2126 {2127 return ![fDefaults boolForKey: @"AutoSize"];2128 2125 } 2129 2126
Note: See TracChangeset
for help on using the changeset viewer.