Changeset 431
- Timestamp:
- Jun 22, 2006, 2:51:59 AM (17 years ago)
- Location:
- trunk/macosx
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/macosx/InfoWindowController.h
r417 r431 28 28 @interface InfoWindowController : NSWindowController 29 29 { 30 NSMutableArray * fTorrents, * fFiles; 30 NSArray * fTorrents; 31 NSMutableArray * fFiles; 31 32 NSImage * fAppIcon; 32 33 -
trunk/macosx/InfoWindowController.m
r425 r431 56 56 fAppIcon = [[NSApp applicationIconImage] copy]; 57 57 58 fTorrents = [[NSArray alloc] init]; 58 59 fFiles = [[NSMutableArray alloc] initWithCapacity: 6]; 59 60 [fFileTable setDoubleAction: @selector(revealFile:)]; … … 74 75 - (void) dealloc 75 76 { 76 if (fTorrents) 77 [fTorrents release]; 77 [fTorrents release]; 78 78 [fFiles release]; 79 79 … … 84 84 - (void) updateInfoForTorrents: (NSArray *) torrents 85 85 { 86 if (fTorrents) 87 [fTorrents release]; 86 [fTorrents release]; 88 87 fTorrents = [torrents retain]; 89 88 … … 315 314 { 316 315 NSRect windowRect = [window frame]; 317 windowRect.size.width = [window minSize].width; 318 316 windowRect.size.width = [window minSize].width; 319 317 return windowRect; 320 318 } … … 329 327 - (void) setWindowForTab: (NSString *) identifier animate: (BOOL) animate 330 328 { 331 NSWindow * window = [self window];332 NSRect frame = [window frame];333 334 329 float height; 335 336 330 if ([identifier isEqualToString: TAB_ACTIVITY_IDENT]) 337 331 height = TAB_ACTIVITY_HEIGHT; … … 343 337 height = TAB_INFO_HEIGHT; 344 338 339 NSWindow * window = [self window]; 340 NSRect frame = [window frame]; 345 341 NSView * view = [[fTabView selectedTabViewItem] view]; 342 346 343 float difference = height - [view frame].size.height; 347 344 frame.origin.y -= difference;
Note: See TracChangeset
for help on using the changeset viewer.