• 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
Re: A horizontal line rule within a NSAttributedString?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A horizontal line rule within a NSAttributedString?


  • Subject: Re: A horizontal line rule within a NSAttributedString?
  • From: "Gary L. Wade" <email@hidden>
  • Date: Sat, 18 Feb 2017 15:50:06 -0800

Either try subclassing NSTextAttachment and overriding the methods in NSTextAttachmentContainer or use a subclass of NSTextAttachmentCell.
--
Gary L. Wade
http://www.garywade.com/ <http://www.garywade.com/>
> On Feb 18, 2017, at 3:26 PM, Daryle Walker <email@hidden> wrote:
>
> What is the attachment supposed to be? An image of a line? That doesn’t seem scalable (to the page size). And the effort seems to be the same as figuring out NSTextBlock.
>
>> On Feb 18, 2017, at 5:43 PM, Gary L. Wade <email@hidden <mailto:email@hidden>> wrote:
>>
>> I would use NSTextAttachment, create an attributed string from it, and combine your three attributed strings into one.
>> --
>> Gary L. Wade
>> http://www.garywade.com/ <http://www.garywade.com/>
>>> On Feb 18, 2017, at 2:16 PM, Daryle Walker <email@hidden <mailto:email@hidden>> wrote:
>>>
>>> An idea for formatted output of my data is the two sections turned into attributed strings, with a line between them. But I couldn’t figure out how to make a line. I didn’t want to resort to raw drawing commands. I prefer not to create (X)HTML representations (so I could put a “<hr>” in between). Poking around NSAttributedString, there seems to be a NSTextBlock that could do it. Any advice on how?
>
>
> —
> Daryle Walker
> Mac, Internet, and Video Game Junkie
> darylew AT mac DOT com
>

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: A horizontal line rule within a NSAttributedString?
      • From: Aleksei Kac <email@hidden>
References: 
 >A horizontal line rule within a NSAttributedString? (From: Daryle Walker <email@hidden>)
 >Re: A horizontal line rule within a NSAttributedString? (From: "Gary L. Wade" <email@hidden>)
 >Re: A horizontal line rule within a NSAttributedString? (From: Daryle Walker <email@hidden>)

  • Prev by Date: How hard is it to make a NSOrderedSetController?
  • Next by Date: Re: How hard is it to make a NSOrderedSetController?
  • Previous by thread: Re: A horizontal line rule within a NSAttributedString?
  • Next by thread: Re: A horizontal line rule within a NSAttributedString?
  • Index(es):
    • Date
    • Thread