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