[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #23954] setFont not implemented in nSTextStorage

From: Fred Kiefer
Subject: [bug #23954] setFont not implemented in nSTextStorage
Date: Tue, 19 Aug 2008 07:01:33 +0000
User-agent: Mozilla/5.0 (compatible; Konqueror/3.5; Linux) KHTML/3.5.9 (like Gecko) SUSE

Follow-up Comment #4, bug #23954 (project gnustep):

Sorry, my fault. I change a sentence I wrote around, but didn't adjust the
words. What I wanted to say was, NSTextView (and the abstract class NSText)
both support setFont: in GNustep. For the class NSTextStorage this method is
only provided as a scripting extension and currently GNUstep doesn't provide
most of these extensions.

There wont be a problem to include this method if you really need it an
provide an implementation. OK, this is really easy, here is one (code stolen
from NSTextView), but why would we want it?

- (void) setFont: (NSFont *)font
  if (!font)

  [self addAttribute: NSFontAttributeName
    value: font
    range: NSMakeRange(0, [self length])];

As soon as you provide a good reason for it, I will add this method to a
scripting category on NSTextStorage.


Reply to this item at:


  Nachricht geschickt von/durch Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]