[fLocationImageView setImage: nil];
}
- #warning enable after 2.7
- /*
#warning when 10.7-only, switch to auto layout
[fMagnetLinkLabel sizeToFit];
const CGFloat minButtonWidth = 82.0;
const CGFloat oldAddButtonWidth = [fAddButton bounds].size.width;
const CGFloat oldCancelButtonWidth = [fCancelButton bounds].size.width;
- #warning add "extra" width that sizeToFit loses
[fAddButton sizeToFit];
[fCancelButton sizeToFit];
NSRect addButtonFrame = [fAddButton frame];
[fCancelButton setFrame: cancelButtonFrame];
[fStartCheck sizeToFit];
- */
}
- (void) windowDidLoad
{
[[NSNotificationCenter defaultCenter] addObserver: self selector: @selector(updatePiecesView) name: @"UpdatePiecesView" object: nil];
- #warning remove when 10.7-only with auto layout
- /*[fTransferSectionLabel sizeToFit];
+ [fTransferSectionLabel sizeToFit];
[fDatesSectionLabel sizeToFit];
[fTimeSectionLabel sizeToFit];
frame.origin.x += widthIncrease;
frame.size.width -= widthIncrease;
[field setFrame: frame];
- }*/
+ }
}
- (void) dealloc
[super dealloc];
}
-#warning enable after 2.7
-/*
- (void) awakeFromNib
{
#warning remove when 10.7-only with auto layout
frame.size.width -= widthIncrease;
[field setFrame: frame];
}
-}*/
+}
- (void) setInfoForTorrents: (NSArray *) torrents
{
[[NSNotificationCenter defaultCenter] addObserver: self selector: @selector(setGlobalLabels) name: @"UpdateGlobalOptions" object: nil];
[[NSNotificationCenter defaultCenter] addObserver: self selector: @selector(updateOptionsNotification:) name: @"UpdateOptionsNotification" object: nil];
- #warning enable after 2.7
- /*
#warning remove when 10.7-only with auto layout
const CGFloat padding = 6.0; //this shows as 8 in IB
[fPrioritySectionLabel sizeToFit];
[fPeersConnectLabel sizeToFit];
NSRect peersConnectLabelFrame = [fPeersConnectLabel frame];
peersConnectLabelFrame.origin.x = NSMaxX(peersConnectFrame) + padding;
- [fPeersConnectLabel setFrame: peersConnectLabelFrame];*/
+ [fPeersConnectLabel setFrame: peersConnectLabelFrame];
}
- (void) dealloc