Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTextView Solved (code)... other question about bold/italic...



malcom <email@hidden> wrote:

>Now i have another question... how can i set the
>BOLD/UNDERLINE/ITALIC style on the text.
>The cocoa doc about attributed string don't mention it.

The docs do mention underline as an attribute:

<http://developer.apple.com/techpubs/macosx/Cocoa/Reference/Foundation/Java/Classes/NSAttributedString.html>

Bold and italic may not be attributes, but separate fonts. At least that's
my first guess, knowing nothing else about NSAttributedString. That would
be the first thing I tried. If that didn't work, I'd scan the Developer
Tools examples, then I'd go search Apple's ADC web-site:
<http://developer.apple.com/search/search.html>

I suggest that you simply review the available documentation. You seem to
be asking questions that are, in fact, addressed by the documentation. I
found the above URL for NSAttributedString simply by going to Apple's ADC
search page and typing "NSAttributedString" into the text-field. The top
item found was the above URL, and it contains a link to the explanations
for NSAttributedString.

-- GG
_______________________________________________
java-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/java-dev
Be sure to read the FAQ http://developer.apple.com/java/faq/ before posting
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.