Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > NSText or NSTextView - how to insert 0 length NSAttributedString?

NSText or NSTextView - how to insert 0 length NSAttributedString?
Thread Tools
Professional Poster
Join Date: Nov 2000
Location: Tasmania, Australia
Status: Offline
Reply With Quote
Jul 15, 2003, 08:40 PM
 
How do I insert an NSAttributedString with zero characters, but a defined ParagraphStyle attribute, into an NSText or NSTextView object?

I've been using NSText's "insertText:" method, but this fails with an assertion error when tyring to insert a string with 0 length (even if it does have attributes).

Basically, what I want to end up with, is an NSTextView with some predefined paragraph attributes that a user can start entering text into, without having to set any paragraph attributes manually thenselves.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 02:10 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2