~ubuntu-branches/ubuntu/vivid/terminal.app/vivid

« back to all changes in this revision

Viewing changes to Label.m

  • Committer: Bazaar Package Importer
  • Author(s): Gürkan Sengün
  • Date: 2005-11-25 15:35:20 UTC
  • Revision ID: james.westby@ubuntu.com-20051125153520-98yiw1zatalh7t1j
Tags: upstream-0.9.4+cvs20051125
Import upstream version 0.9.4+cvs20051125

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
copyright 2002 Alexander Malmberg <alexander@malmberg.org>
 
3
 
 
4
This file is a part of Terminal.app. Terminal.app is free software; you
 
5
can redistribute it and/or modify it under the terms of the GNU General
 
6
Public License as published by the Free Software Foundation; version 2
 
7
of the License. See COPYING or main.m for more information.
 
8
*/
 
9
 
 
10
#include "Label.h"
 
11
 
 
12
@implementation NSTextField (label)
 
13
+ newLabel: (NSString *)title
 
14
{
 
15
        NSTextField *f;
 
16
        f=[[self alloc] init];
 
17
        [f setStringValue: title];
 
18
        [f setEditable: NO];
 
19
        [f setDrawsBackground: NO];
 
20
        [f setBordered: NO];
 
21
        [f setBezeled: NO];
 
22
        [f setSelectable: NO];
 
23
        [f sizeToFit];
 
24
        return f;
 
25
}
 
26
@end