• 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: listsapple <email@hidden>
  • Date: Tue, 28 Jul 2009 15:23:38 +0100


Alastair Houghton wrote:

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.


The crash occurs in a Carbon/Cocoa hybrid. I've since confirmed that it doesn't crash in a Cocoa-only app. Thanks for the double confirmation.


Bernie


_______________________________________________

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


References: 
 >NSTextView - NSAttributedString paragraph style attributes (From: listsapple <email@hidden>)
 >Re: NSTextView - NSAttributedString paragraph style attributes (From: Alastair Houghton <email@hidden>)

  • Prev by Date: NSPopUpButtonCell needs Extra Oomph to -display
  • Next by Date: Dynamic UI with scroll view
  • Previous by thread: Re: NSTextView - NSAttributedString paragraph style attributes
  • Next by thread: where can I download xcode 3.2
  • Index(es):
    • Date
    • Thread