• 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: NSTextView - NSAttributedString paragraph style attributes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTextView - NSAttributedString paragraph style attributes


  • Subject: Re: NSTextView - NSAttributedString paragraph style attributes
  • From: Alastair Houghton <email@hidden>
  • Date: Tue, 28 Jul 2009 10:30:41 +0100

On 27 Jul 2009, at 17:32, listsapple wrote:

Adding an NSParagraphStyle to an NSMutableAttributedString then stuffing the string into an NSTextView crashes my app. Anyone know if NSParagraphStyles are supported in NSTextView?

They most certainly are.

(FWIW, it isn't really a case of them "being supported in NSTextView", since it's the layout manager and typesetter that will care about the paragraph styles, and you could use them without NSTextView/NSText if you wanted.)

If I had to guess, you're probably over-releasing your NSParagraphStyle or some such, but since you haven't shown us any code we obviously can't see exactly what the error is.

Kind regards,

Alastair.

--
http://alastairs-place.net



_______________________________________________

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: NSTextView - NSAttributedString paragraph style attributes
      • From: listsapple <email@hidden>
References: 
 >NSTextView - NSAttributedString paragraph style attributes (From: listsapple <email@hidden>)

  • Prev by Date: Re: NSString and regular expressions
  • Next by Date: Re: NSString and regular expressions
  • Previous by thread: NSTextView - NSAttributedString paragraph style attributes
  • Next by thread: Re: NSTextView - NSAttributedString paragraph style attributes
  • Index(es):
    • Date
    • Thread