Oolite 1.91.0.7646-241128-10e222e
Loading...
Searching...
No Matches
NSAttributedString(OODebugExtensions) Category Reference

#include <OODebugUtilities.h>

Class Methods

(id) + stringWithString:
 
(id) + stringWithString:font:
 

Detailed Description

Definition at line 51 of file OODebugUtilities.h.

Method Documentation

◆ stringWithString:

+ (id) stringWithString: (NSString *) string

Definition at line 1 of file OODebugUtilities.m.

64 :(NSString *)string
65{
66 return [[[self alloc] initWithString:string] autorelease];
67}

◆ stringWithString:font:

+ (id) stringWithString: (NSString *) string
font: (NSFont *) font 

Definition at line 1 of file OODebugUtilities.m.

70 :(NSString *)string font:(NSFont *)font
71{
72 if (string == nil) return nil;
73 NSDictionary *attr = [NSDictionary dictionaryWithObject:font forKey:NSFontAttributeName];
74 return [[[self alloc] initWithString:string attributes:attr] autorelease];
75}
return nil

The documentation for this category was generated from the following files: