FROM : John Labovitz
DATE : Thu Oct 07 19:46:10 2004
On Oct 6, 2004, at 1:11 PM, Glen Simmons wrote:
> I tried that, and while it allows selection, it doesn't feel right b/c
> there's that extra character.
Have you tried kerning?
I haven't tried this with attachments, but since they're just treated
as glyphs, you might be able to set a kerning attribute on a range that
includes the character before the attachment and the attachment itself.
You'd do this by setting the range to have the NSKernAttributeName
attribute, with a value (apparently) specified in points.
I'll admit that a potential problem with this approach is if the user
deletes the attachment, you'll want to remove the kerning of the
previous character.
--
John Labovitz Consulting, LLC
http://mac.johnlabovitz.com
<email_removed>
AIM/iChat: jslabovitz
+1 503.949.3492
DATE : Thu Oct 07 19:46:10 2004
On Oct 6, 2004, at 1:11 PM, Glen Simmons wrote:
> I tried that, and while it allows selection, it doesn't feel right b/c
> there's that extra character.
Have you tried kerning?
I haven't tried this with attachments, but since they're just treated
as glyphs, you might be able to set a kerning attribute on a range that
includes the character before the attachment and the attachment itself.
You'd do this by setting the range to have the NSKernAttributeName
attribute, with a value (apparently) specified in points.
I'll admit that a potential problem with this approach is if the user
deletes the attachment, you'll want to remove the kerning of the
previous character.
--
John Labovitz Consulting, LLC
http://mac.johnlabovitz.com
<email_removed>
AIM/iChat: jslabovitz
+1 503.949.3492
| Related mails | Author | Date |
|---|---|---|
| Glen Simmons | Sep 10, 16:10 | |
| Louis C. Sacha | Oct 6, 22:06 | |
| Glen Simmons | Oct 6, 22:11 | |
| John Labovitz | Oct 7, 19:46 | |
| Glen Simmons | Oct 7, 22:16 |






Cocoa mail archive

