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 in Xcode). Option-hyphen isn't non-breaking; it's an en-dash*, which is generally used in ranges of numbers, like "20–30". Apple's layout code will break at en-dashes (though I'm not sure whether or not that's typographically correct.) You're probably thinking of option-space, which is a nonbreaking space. AFAIK there's no equivalent character for hyphens. —Jens * http://en.wikipedia.org/wiki/Dash#En_dash _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com