Annotation of chimera/BookmarksButton.mm, revision 1.1

1.1     ! hyatt       1: //
        !             2: //  BookmarksButton.mm
        !             3: //  Chimera
        !             4: //
        !             5: //  Created by David Hyatt on Mon Apr 15 2002.
        !             6: //  Copyright (c) 2001 __MyCompanyName__. All rights reserved.
        !             7: //
        !             8: 
        !             9: #import "BookmarksButton.h"
        !            10: 
        !            11: 
        !            12: @implementation BookmarksButton
        !            13: 
        !            14: - (id)initWithFrame:(NSRect)frame {
        !            15:   self = [super initWithFrame:frame];
        !            16:   if (self) {
        !            17:     // Initialization code here.
        !            18:   }
        !            19: 
        !            20:   // Create a sample button.
        !            21:   [self setBezelStyle: NSRegularSquareBezelStyle];
        !            22:   [self setBordered: NO];
        !            23:   [self setImagePosition: NSImageLeft];
        !            24:   [self setImage: [NSImage imageNamed: @"smallbookmark"]];
        !            25:   [self setFont: [NSFont labelFontOfSize: 11.0]];
        !            26:   [self setRefusesFirstResponder: YES];
        !            27:   //[[self cell] setHighlightsBy: NSChangeGrayCellMask];
        !            28:   [self sizeToFit];
        !            29: 
        !            30:   return self;
        !            31: }
        !            32: 
        !            33: @end

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>