File: Label.m

package info (click to toggle)
terminal.app 0.9.4+cvs20051125-5
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 460 kB
  • ctags: 106
  • sloc: objc: 6,098; makefile: 42; sh: 13
file content (26 lines) | stat: -rw-r--r-- 651 bytes parent folder | download | duplicates (5)
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
/*
copyright 2002 Alexander Malmberg <alexander@malmberg.org>

This file is a part of Terminal.app. Terminal.app is free software; you
can redistribute it and/or modify it under the terms of the GNU General
Public License as published by the Free Software Foundation; version 2
of the License. See COPYING or main.m for more information.
*/

#include "Label.h"

@implementation NSTextField (label)
+ newLabel: (NSString *)title
{
	NSTextField *f;
	f=[[self alloc] init];
	[f setStringValue: title];
	[f setEditable: NO];
	[f setDrawsBackground: NO];
	[f setBordered: NO];
	[f setBezeled: NO];
	[f setSelectable: NO];
	[f sizeToFit];
	return f;
}
@end