Re: NSTextView - NSAttributedString paragraph style attributes
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