Re: Respecting tabs across applications

2012-01-12 Thread James Merkel
On Jan 11, 2012, at 2:40 PM, James Merkel wrote: > > On Jan 11, 2012, at 8:39 AM, Ross Carter wrote: > >> On Jan 10, 2012, at 10:14 PM, James Merkel wrote: >> >>> the default NSParagraphStyle is being applied to my string. >> >> To be precise, a NSParagraphStyle is being applied to your attri

Re: Respecting tabs across applications

2012-01-11 Thread James Merkel
On Jan 11, 2012, at 8:39 AM, Ross Carter wrote: > On Jan 10, 2012, at 10:14 PM, James Merkel wrote: > >> the default NSParagraphStyle is being applied to my string. > > To be precise, a NSParagraphStyle is being applied to your attributed string. > The NSString does not contain any formatting

Re: Respecting tabs across applications

2012-01-11 Thread Ross Carter
On Jan 10, 2012, at 10:14 PM, James Merkel wrote: > the default NSParagraphStyle is being applied to my string. To be precise, a NSParagraphStyle is being applied to your attributed string. The NSString does not contain any formatting information. When you copy rich text, say from TextEdit, yo

Re: Respecting tabs across applications

2012-01-10 Thread James Merkel
On Jan 10, 2012, at 6:54 PM, Jens Alfke wrote: > I *think* what you mean there is that the layout works with whatever > NSParagraphStyle’s default tab stops are Ok, there's something I didn't understand -- the default NSParagraphStyle is being applied to my string. So, I am supposed to modify

Re: Respecting tabs across applications

2012-01-10 Thread Jens Alfke
On Jan 10, 2012, at 5:45 PM, James Merkel wrote: > The strings are tabbed for Helvetica Regular 12 point font. So yes if the > font is changed the tabs would change. I *think* what you mean there is that the layout works with whatever NSParagraphStyle’s default tab stops are — I think they’re

Re: Respecting tabs across applications

2012-01-10 Thread Scott Ribe
On Jan 10, 2012, at 6:45 PM, James Merkel wrote: > The strings are tabbed for Helvetica Regular 12 point font. That sentence, right there, makes no sense at all. Once you understand that, you'll understand the whole problem. (Hint: what is a "tab" character and what will its width be?) -- Sco

Re: Respecting tabs across applications

2012-01-10 Thread James Merkel
On Jan 10, 2012, at 4:52 PM, Jens Alfke wrote: > > On Jan 10, 2012, at 2:00 PM, James Merkel wrote: > >> In fact, I am using multiple consecutive tab characters to force things to >> line up -- i.e. a sure recipe for disaster. > > The trouble with that is that the number of tabs you’ll need d

Re: Respecting tabs across applications

2012-01-10 Thread Jens Alfke
On Jan 10, 2012, at 2:00 PM, James Merkel wrote: > In fact, I am using multiple consecutive tab characters to force things to > line up -- i.e. a sure recipe for disaster. The trouble with that is that the number of tabs you’ll need depends on the width of each item, and that’s highly dependen

Re: Respecting tabs across applications

2012-01-10 Thread James Merkel
On Jan 10, 2012, at 1:20 PM, Jens Alfke wrote: > > On Jan 10, 2012, at 12:49 PM, James Merkel wrote: > >> In my application I tab text (Helvetica 12 font) so that things line up in >> my application window. >> If I copy a text selection out of my app window and then look at the >> clipboard,

Re: Respecting tabs across applications

2012-01-10 Thread Jens Alfke
On Jan 10, 2012, at 12:49 PM, James Merkel wrote: > In my application I tab text (Helvetica 12 font) so that things line up in my > application window. > If I copy a text selection out of my app window and then look at the > clipboard, the text looks the same as in my window. > If the clipboar