FROM : I. Savant
DATE : Sun Feb 24 21:28:16 2008
On Feb 24, 2008, at 3:16 PM, Gary L. Wade wrote:
> [textView setString:@"Lyrics Code Here"];
Of course this works too. :-) The caveat is that if you have
formatting applied, this may interfere. There are similar NSText
methods such as -replaceCharactersInRange:withString: and the like.
These also give no control over formatting.
If you're worried about preserving formatting (when you have
"allows multiple fonts" enabled, etc.) you'll find it easier to modify
the underlying NSTextStorage.
--
I.S.
DATE : Sun Feb 24 21:28:16 2008
On Feb 24, 2008, at 3:16 PM, Gary L. Wade wrote:
> [textView setString:@"Lyrics Code Here"];
Of course this works too. :-) The caveat is that if you have
formatting applied, this may interfere. There are similar NSText
methods such as -replaceCharactersInRange:withString: and the like.
These also give no control over formatting.
If you're worried about preserving formatting (when you have
"allows multiple fonts" enabled, etc.) you'll find it easier to modify
the underlying NSTextStorage.
--
I.S.
| Related mails | Author | Date |
|---|---|---|
| Jeremy | Feb 24, 20:43 | |
| Gary L. Wade | Feb 24, 21:16 | |
| I. Savant | Feb 24, 21:20 | |
| Jeremy | Feb 24, 21:23 | |
| I. Savant | Feb 24, 21:28 | |
| I. Savant | Feb 24, 21:30 | |
| I. Savant | Feb 24, 21:33 | |
| Jeremy | Feb 24, 21:34 | |
| I. Savant | Feb 24, 21:38 | |
| Jeremy | Feb 24, 21:44 |






Cocoa mail archive

