Changeset 12444


Ignore:
Timestamp:
May 19, 2011, 10:01:16 PM (10 years ago)
Author:
livings124
Message:

implement missing copyWithZone in TorrentCell?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/TorrentCell.m

    r12329 r12444  
    119119}
    120120
     121- (id) copyWithZone: (NSZone *) zone
     122{
     123    id value = [super copyWithZone: zone];
     124    [value setRepresentedObject: [self representedObject]];
     125    return value;
     126}
     127
    121128- (NSRect) iconRectForBounds: (NSRect) bounds
    122129{
     
    328335{
    329336    Torrent * torrent = [self representedObject];
     337    NSAssert(torrent != nil, @"can't have a TorrentCell without a Torrent");
    330338   
    331339    const BOOL minimal = [fDefaults boolForKey: @"SmallView"];
     
    804812- (NSAttributedString *) attributedStatusString: (NSString *) string
    805813{
    806     #warning we shouldn't have to do this
    807     if (!string)
    808         string = @"";
    809814    return [[[NSAttributedString alloc] initWithString: string attributes: fStatusAttributes] autorelease];
    810815}
Note: See TracChangeset for help on using the changeset viewer.