source: branches/1.7-ita/aux/cocotron/win32/cocotron/issue508/FontToNameTransformer.m

Last change on this file was 13451, checked in by Gary Palter, 15 years ago

Test case for Cocotron issue 508

File size: 591 bytes
Line 
1//
2// FontToNameTransformer.m
3// issueXXX
4//
5// Created by Gary Palter on 2/18/10.
6// Copyright 2010 Clozure Associates. All rights reserved.
7//
8
9#import "FontToNameTransformer.h"
10
11
12@implementation FontToNameTransformer
13
14+(Class) transformedValueClass
15{
16 return [NSString class];
17}
18
19+(BOOL) allowReverseTransformation
20{
21 return NO;
22}
23
24-(NSString *) transformedValue:(NSData *)value
25{
26// NSFont *font = [NSKeyedUnarchiver unarchiveObjectWithData:value];
27// return [NSString stringWithFormat:@"%@ %.0f", [font displayName], [font pointSize]];
28
29 return @"Monaco 10";
30}
31
32@end
Note: See TracBrowser for help on using the repository browser.