Re: Non-breaking hyphen in UILabel?

2014-01-25 Thread Graham Cox
On 25 Jan 2014, at 7:27 am, Jens Alfke j...@mooseyard.com wrote: Nor was there a decent built-in text layout framework (OK, this is off-topic, but today's the 30th anniversary of the Mac I'll take your TEHandle and raise you PROCEDURE SetClikLoop... --Graham

Non-breaking hyphen in UILabel?

2014-01-24 Thread Rick Mann
I have a UILabel that breaks lines if the text gets too long. Traditionally, on the Mac, you could type an option-hyphen to get a non-breaking hyphen, but this still breaks (when I type option-hyphen in my source code file in Xcode). Is there a way to get a non-breaking hyphen in a UILabel

Re: Non-breaking hyphen in UILabel?

2014-01-24 Thread Mark Woollard
if the text gets too long. Traditionally, on the Mac, you could type an option-hyphen to get a non-breaking hyphen, but this still breaks (when I type option-hyphen in my source code file in Xcode). Is there a way to get a non-breaking hyphen in a UILabel? Thanks -- Rick

Re: Non-breaking hyphen in UILabel?

2014-01-24 Thread Rick Mann
. Traditionally, on the Mac, you could type an option-hyphen to get a non-breaking hyphen, but this still breaks (when I type option-hyphen in my source code file in Xcode). Is there a way to get a non-breaking hyphen in a UILabel? Thanks -- Rick

Re: Non-breaking hyphen in UILabel?

2014-01-24 Thread Jens Alfke
On Jan 23, 2014, at 11:59 PM, Rick Mann rm...@latencyzero.com wrote: I have a UILabel that breaks lines if the text gets too long. Traditionally, on the Mac, you could type an option-hyphen to get a non-breaking hyphen, but this still breaks (when I type option-hyphen in my source code file

Re: Non-breaking hyphen in UILabel?

2014-01-24 Thread Mike Abdullah
On 24 Jan 2014, at 16:56, Jens Alfke j...@mooseyard.com wrote: On Jan 23, 2014, at 11:59 PM, Rick Mann rm...@latencyzero.com wrote: I have a UILabel that breaks lines if the text gets too long. Traditionally, on the Mac, you could type an option-hyphen to get a non-breaking hyphen, but

Re: Non-breaking hyphen in UILabel?

2014-01-24 Thread Kyle Sluder
On Fri, Jan 24, 2014, at 09:23 AM, Mike Abdullah wrote: There is a non-breaking hyphen. Not sure what the unicode point is for it, but it’s there in the Special Characters palette if you search. I think you're thinking of U+00AD SOFT HYPHEN. A quick test in TextEdit shows that AppKit does not

Re: Non-breaking hyphen in UILabel?

2014-01-24 Thread Fritz Anderson
On 24 Jan 2014, at 2:19 AM, Rick Mann rm...@latencyzero.com wrote: Thanks. That certainly works, but I found the trick: set the line break mode for the whole thing to word, and put in the non-breaking hyphen using the Special Characters palette. I see there is such a thing as a nonbreak

Re: Non-breaking hyphen in UILabel?

2014-01-24 Thread Quincey Morris
On Jan 24, 2014, at 09:58 , Kyle Sluder k...@ksluder.com wrote: A quick test in TextEdit shows that AppKit does not render soft hyphens as hyphens, but it will break on them. Actually, TextEdit is Doing It Wrong™. Soft (or discretionary) hyphens mark the points in a word where the word is

Re: Non-breaking hyphen in UILabel?

2014-01-24 Thread Kyle Sluder
On Fri, Jan 24, 2014, at 11:36 AM, Quincey Morris wrote: On Jan 24, 2014, at 09:58 , Kyle Sluder k...@ksluder.com wrote: A quick test in TextEdit shows that AppKit does not render soft hyphens as hyphens, but it will break on them. Actually, TextEdit is Doing It Wrong™. Soft (or

Re: Non-breaking hyphen in UILabel?

2014-01-24 Thread Rick Mann
On Jan 24, 2014, at 09:47 , Fritz Anderson fri...@manoverboard.org wrote: I see there is such a thing as a nonbreak hyphen (U+2011) but the traditional Mac keyboard never emitted it. Opt-minus is an en dash (U+2013). For visual effect, it may serve your intention, but it does not parse the

Re: Non-breaking hyphen in UILabel?

2014-01-24 Thread Jens Alfke
On Jan 24, 2014, at 12:06 PM, Rick Mann rm...@latencyzero.com wrote: I see there is such a thing as a nonbreak hyphen (U+2011) but the traditional Mac keyboard never emitted it. Opt-minus is an en dash (U+2013). For visual effect, it may serve your intention, but it does not parse the

Re: Non-breaking hyphen in UILabel?

2014-01-24 Thread Rick Mann
I didn't mean to suggest it was using Unicode. I meant that several apps treated option-dash and option-space and option-return as non-breaking (the latter referring to page breaks). Sent from my iPhone On Jan 24, 2014, at 12:27, Jens Alfke j...@mooseyard.com wrote: On Jan 24, 2014, at