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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to