Re: Preserving knowledge of renamed/moved directory?

2016-11-28 Thread Rick Mann
> On Nov 28, 2016, at 18:14 , Sean McBride wrote: > > On Mon, 28 Nov 2016 17:06:41 -0800, Rick Mann said: > >> Back in the days before URLs, I could have an FSRef to a directory, and >> no matter where I moved that directory what I named it, the FSRef was >> still

Re: Preserving knowledge of renamed/moved directory?

2016-11-28 Thread Sean McBride
On Mon, 28 Nov 2016 17:06:41 -0800, Rick Mann said: >Back in the days before URLs, I could have an FSRef to a directory, and >no matter where I moved that directory what I named it, the FSRef was >still valid, and I could still read/write to it. > >Now that everything is URL based, if a thread

Re: Preserving knowledge of renamed/moved directory?

2016-11-28 Thread Charles Srstka
> On Nov 28, 2016, at 7:42 PM, Quincey Morris > wrote: > > On Nov 28, 2016, at 17:30 , Charles Srstka > wrote: >> >> This is currently broken in Swift, as of Swift 3, where all file reference >>

Re: Preserving knowledge of renamed/moved directory?

2016-11-28 Thread Rick Mann
> On Nov 28, 2016, at 17:30 , Charles Srstka wrote: > >> On Nov 28, 2016, at 7:06 PM, Rick Mann wrote: >> >> Back in the days before URLs, I could have an FSRef to a directory, and no >> matter where I moved that directory what I named it, the

Re: Preserving knowledge of renamed/moved directory?

2016-11-28 Thread Quincey Morris
On Nov 28, 2016, at 17:30 , Charles Srstka wrote: > > This is currently broken in Swift, as of Swift 3, where all file reference > URLs will get silently and unceremoniously converted back to path-based ones > at the bridge. NSURL or URL or both?

Re: Preserving knowledge of renamed/moved directory?

2016-11-28 Thread Charles Srstka
> On Nov 28, 2016, at 7:06 PM, Rick Mann wrote: > > Back in the days before URLs, I could have an FSRef to a directory, and no > matter where I moved that directory what I named it, the FSRef was still > valid, and I could still read/write to it. > > Now that everything

Preserving knowledge of renamed/moved directory?

2016-11-28 Thread Rick Mann
Back in the days before URLs, I could have an FSRef to a directory, and no matter where I moved that directory what I named it, the FSRef was still valid, and I could still read/write to it. Now that everything is URL based, if a thread changes the name of a directory, or moves it, another

Re: Vertically Centered Colon

2016-11-28 Thread Doug Hill
OK, after doing some tests, UILabel indeed behaves like you mentioned with the SF font. If there aren't numbers on either side of the colon, no vertical centering. My guess would see if you can attempt to set the kStylisticAlternativesType attribute, as noted below, but as previously

Re: Vertically Centered Colon

2016-11-28 Thread Doug Hill
A couple of things to note: 1. In the SF font, colons are vertically centered by default. You can test this by creating a plain UILabel with System Font in IB and type a time e.g. 10:20, and notice the colon is vertically centered. So if you use SF font, you don't have to do anything to get the

Re: Vertically Centered Colon

2016-11-28 Thread Gerriet M. Denkmann
> On 28 Nov 2016, at 23:42, Alastair Houghton > wrote: > > On 28 Nov 2016, at 16:18, Gerriet M. Denkmann wrote: >> >> >>> On 28 Nov 2016, at 22:13, Eric E. Dolecki wrote: >>> >>> You could probably use an attributed

Re: Vertically Centered Colon

2016-11-28 Thread Gerriet M. Denkmann
> On 29 Nov 2016, at 00:40, Quincey Morris > wrote: > > On Nov 28, 2016, at 07:01 , Gerriet M. Denkmann wrote: >> >> But in my case I have “21:37:44” where ““21:37” is bold and “:44” is thin. > > a. Are you using an attributed string

Re: Vertically Centered Colon

2016-11-28 Thread Alex Zavatone
I have old iOS attributed strong code that explicitly handles superscripting specific characters in an NS attributed string from the baseline by a % of the character height or by a fixed pixel amount. Let me know if you want it. Sent from my iPhone > On Nov 28, 2016, at 10:42 AM, Alastair

Re: Vertically Centered Colon

2016-11-28 Thread Quincey Morris
On Nov 28, 2016, at 07:01 , Gerriet M. Denkmann wrote: > > But in my case I have “21:37:44” where ““21:37” is bold and “:44” is thin. a. Are you using an attributed string whose text is “21:37:44”, or two unattributed strings? b. You have a — I don’t know exactly what to

Re: Vertically Centered Colon

2016-11-28 Thread Alastair Houghton
On 28 Nov 2016, at 16:18, Gerriet M. Denkmann wrote: > > >> On 28 Nov 2016, at 22:13, Eric E. Dolecki wrote: >> >> You could probably use an attributed string and add an attribute for the >> last colon: NSBaselineOffsetAttributeName > > Yes; but this

Re: Vertically Centered Colon

2016-11-28 Thread Gerriet M. Denkmann
> On 28 Nov 2016, at 22:13, Eric E. Dolecki wrote: > > You could probably use an attributed string and add an attribute for the last > colon: NSBaselineOffsetAttributeName Yes; but this would be some rather desperate work-around. I was rather thinking of

Re: How to convert from decomposed to precomposed UTF-8 on iOS

2016-11-28 Thread Andreas Falkenhahn
On 28.11.2016 at 16:54 David Duncan wrote: >> On Nov 28, 2016, at 10:36 AM, Andreas Falkenhahn >> wrote: >> (I'm sorry, but this mail isn't really about Cocoa but I've checked all >> the lists hosted on lists.apple.com and I haven't found a list which >> is suitable so

Re: How to convert from decomposed to precomposed UTF-8 on iOS

2016-11-28 Thread David Duncan
> On Nov 28, 2016, at 10:36 AM, Andreas Falkenhahn > wrote: > > (I'm sorry, but this mail isn't really about Cocoa but I've checked all > the lists hosted on lists.apple.com and I haven't found a list which > is suitable so I'll try here.) > > I need to convert a char

Re: How to detect rotation in progress in viewDidLayoutSubview

2016-11-28 Thread David Duncan
> On Nov 27, 2016, at 7:25 AM, Andreas Falkenhahn > wrote: > > On 27.11.2016 at 00:04 David Duncan wrote: > >> What are you trying to accomplish? > > I want to keep my UIView centered on the screen so I need to > change its position when the device rotates. I'm

How to convert from decomposed to precomposed UTF-8 on iOS

2016-11-28 Thread Andreas Falkenhahn
(I'm sorry, but this mail isn't really about Cocoa but I've checked all the lists hosted on lists.apple.com and I haven't found a list which is suitable so I'll try here.) I need to convert a char array that contains decomposed UTF-8 characters (as used by HFS) into a precomposed UTF-8 char

Re: Vertically Centered Colon

2016-11-28 Thread Eric E. Dolecki
You could probably use an attributed string and add an attribute for the last colon: NSBaselineOffsetAttributeName On Mon, Nov 28, 2016 at 10:02 AM Gerriet M. Denkmann wrote: > iOS 10.1.1 > > WWDC 2015,Session 804: Introducing the New System Fonts tells (at about > 23:23)

Vertically Centered Colon

2016-11-28 Thread Gerriet M. Denkmann
iOS 10.1.1 WWDC 2015,Session 804: Introducing the New System Fonts tells (at about 23:23) about Vertically Centered Colons. But I do not understand, how to turn this on. It works automatically (in SF) with colons surrounded by digits. But in my case I have “21:37:44” where ““21:37” is bold and