• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Subclassing NSMutableAttributedString
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Subclassing NSMutableAttributedString
      • From: Arthur Clemens <email@hidden>
References: 
 >Re: [newbie] Handling a preferences window (From: Jeremy Dronfield <email@hidden>)

  • Prev by Date: [Q] Activating and deactivating fonts (again, sorry)
  • Next by Date: Re: see if a key is down
  • Previous by thread: Re: [newbie] Handling a preferences window
  • Next by thread: Re: Subclassing NSMutableAttributedString
  • Index(es):
    • Date
    • Thread