source: releases/Pester/1.1a5/Source/NSString-NJRExtensions.h@ 293

Last change on this file since 293 was 53, checked in by Nicholas Riley, 22 years ago

Updated for Pester 1.1a5 (very limited release).

Pester 1.1a4 was never released.

File size: 598 bytes
Line 
1//
2// NSString-NJRExtensions.h
3// Pester
4//
5// Created by Nicholas Riley on Mon Dec 16 2002.
6// Copyright (c) 2002 Nicholas Riley. All rights reserved.
7//
8
9#import <AppKit/AppKit.h>
10
11
12@interface NSString (NJRExtensions)
13
14- (NSAttributedString *)small;
15- (NSAttributedString *)smallBold;
16- (NSAttributedString *)underlined;
17
18+ (NSString *)ellipsisString;
19
20
21@end
22
23@interface NSMutableString (NJRExtensions)
24
25- (void)truncateToLength:(unsigned)maxLength by:(NSLineBreakMode)method;
26- (void)truncateToWidth:(float)maxWidth by:(NSLineBreakMode)method withAttributes:(NSDictionary *)attributes;
27
28@end
Note: See TracBrowser for help on using the repository browser.