Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: dbe71da0fd
Fetching contributors…

Cannot retrieve contributors at this time

file 39 lines (31 sloc) 0.886 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
/* FSObjectBrowserBottomBarTextDisplay.m Copyright (c) 2009 Philippe Mougin. */
/* This software is open source. See the license. */

#import "FSObjectBrowserBottomBarTextDisplay.h"

@implementation FSObjectBrowserBottomBarTextDisplay

- (id)initWithFrame:(NSRect)frameRect
{
  self = [super initWithFrame:frameRect];
  if (self)
  {
    [self setBezelStyle:NSTexturedRoundedBezelStyle];
    [self setBordered:NO];
    [self setAlignment:NSLeftTextAlignment];
    [self setAutoresizingMask:NSViewWidthSizable | NSViewMaxYMargin];
    [self setTitle:@""];
  }
  return self;
}

- (void)setString:(NSString *)string
{
  [self setTitle:[string stringByReplacingOccurrencesOfString:@"\n" withString:@" "]];
}

- (BOOL)mouseDownCanMoveWindow
{
  return YES;
}

- (void)mouseDown:(NSEvent *)theEvent
{
  // We want to avoid the button highlighting
  return;
}


@end
Something went wrong with that request. Please try again.