Subclassing NSMutableAttributedString
Subclassing NSMutableAttributedString
- Subject: Subclassing NSMutableAttributedString
- From: Arthur Clemens <email@hidden>
- Date: Tue, 1 Oct 2002 22:13:49 +0200
Somehow I do not succeed in creating a subclass for
NSMutableAttributedString. Each time I get a null object.
Is NSMutableAttributedString a special case?
This is what I use:
in a NSTextView subclass:
MyMutableAttributedString *ms = [[MyMutableAttributedString alloc]
initWithPath:path documentAttributes:nil];
NSLog(@"ms = %@", ms);
in MyMutableAttributedString.h:
@interface MyMutableAttributedString : NSMutableAttributedString {
}
// methods
@end
in MyMutableAttributedString.m:
@implementation SlovarDB_MutableAttributedString
- (id)init
{
if (self = [super init]) {
NSLog(@"init");
}
return self;
}
// other methods
@end
Arthur Clemens
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.