[futurebasic] Re: [OT] setting default font for NSTextView does not have intended result - still defaults to Helvetica

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : June 2014 : Group Archive : Group : All Groups

From: Brian S <fblistserve@...>
Date: Mon, 16 Jun 2014 19:56:43 -0700
On Jun 16, 2014, at 7:46 PM, Brian S <fblistserve@...> wrote:

> Other info:
> (1) There is no text in the NSTextField, so there is no text to select and apply.
> (2) Making the call after the panel appears doesn’t change the behavior
> (3) Using a constant instead of NSSmallControlSize doesn’t change the behavior

(4) This is an NSAttributedString in the NSTextView ( probably a given ).  Possibly I need to build the NSAttributedString by passing in documentAttributes in a dictionary( see below using nil instead of dictionary ). No time to try it right now but that only handles when a string is being placed in the NSTextView and doesn’t handle the default when someone starts typing into it.

NSAttributedString *taskDesc = [[NSAttributedString alloc] initWithRTFD:descData documentAttributes:nil];