Re: Unicode filenames with Apple File System and UIManagedDocument

2017-03-21 Thread Quincey Morris
On Mar 20, 2017, at 14:23 , davel...@mac.com wrote: > > "iOS HFS Normalized UNICODE names , APFS now treats all file[ name]s as a bag > of bytes on iOS . We are requesting that Applications developers call the > correct Normalization routines to make sure the file name contains the > correct

Re: UITextField width of UIAlertController -addTextFieldWithConfigurationHandler:

2017-03-21 Thread Carl Hoefs
Thanks, that got it going. It's a compromise. Maybe the options will be expanded in future iOS releases... -Carl > On Mar 21, 2017, at 12:39 PM, Saagar Jha wrote: > > That should be lot easier; just set yourself as the text field’s delegate and > override

Re: UITextField width of UIAlertController -addTextFieldWithConfigurationHandler:

2017-03-21 Thread Saagar Jha
That should be lot easier; just set yourself as the text field’s delegate and override textFieldShouldBeginEditing. Saagar Jha > On Mar 21, 2017, at 12:24, Carl Hoefs wrote: > > Alternately, is there a way to configure the alert to defer the launch of the >

Re: UITextField width of UIAlertController -addTextFieldWithConfigurationHandler:

2017-03-21 Thread Carl Hoefs
Alternately, is there a way to configure the alert to defer the launch of the keyboard until/unless the user wants to edit the textfield (by touching it)? Generally it won't need to be edited, maybe just the first time or so, thus having the keyboard always coming up would be distracting. -

Re: UITextField width of UIAlertController -addTextFieldWithConfigurationHandler:

2017-03-21 Thread Carl Hoefs
Thanks for the hint. In the debugger I discovered that what looks to be a UITextField displayed across the bottom of the alert is actually implemented as a private object of class UIAlertControllerTextField. So I can restrict the text to a portion of the textfield, but I can't find a way to

Re: Unicode filenames with Apple File System and UIManagedDocument

2017-03-21 Thread Alastair Houghton
On 21 Mar 2017, at 12:33, Jean-Daniel wrote: > > This is what the reply suggest but that make no sens for me. If you are > accessing the file using URL, that the work of the framework to convert the > URL into the right file system representation. Agreed, IMO the

Re: Unicode filenames with Apple File System and UIManagedDocument

2017-03-21 Thread Charles Srstka
> On Mar 21, 2017, at 9:13 AM, davel...@mac.com wrote: > >> >> On Mar 21, 2017, at 8:33 AM, Jean-Daniel > > wrote: >> >> >>> Le 21 mars 2017 à 12:03, davel...@mac.com a écrit : >>> On Mar 21, 2017, at 1:06 AM, Jens Alfke

Re: Unicode filenames with Apple File System and UIManagedDocument

2017-03-21 Thread Giacomo Tufano
If Apple Support says (as It said) "iOS HFS Normalized UNICODE names , APFS now treats all files as a bag of bytes on iOS . We are requesting that Applications developers call the correct Normalization routines to make sure the file name contains the correct representation.” then I think that

Re: Odd UILabel behavior on tvOS

2017-03-21 Thread Eric E. Dolecki
Sorry. My argument name to set the string was "string" and that prevented operation evidently. On Tue, Mar 21, 2017 at 10:43 AM Eric E. Dolecki wrote: > I have a view & I update a label within it. Super simple. > > My string is like > label.text = "Connecting to

Printing in Swift

2017-03-21 Thread David Delmonte
Hello Group. I have an NSView-based app (i.e. not document-based), and I’d like to bolt on a printing subsystem. I can get NSViews in my main controller to print ok. However, I want to have a special view constructed just for printing. The view should not show in the app’s window. I cannot

Odd UILabel behavior on tvOS

2017-03-21 Thread Eric E. Dolecki
I have a view & I update a label within it. Super simple. My string is like label.text = "Connecting to \"\(useName)\"" I want the double quotes around that variable. As soon as the useName variable (a string) is inserted, anything after that does not go into the label. label.text = "Connecting

Re: Handling Cocoa Bindings over a tree of View Controllers

2017-03-21 Thread Keary Suska
> On Mar 21, 2017, at 6:26 AM, Daryle Walker wrote: > > A design for my third window iteration involves using several > NSViewController subclasses in a UI tree. The current (i.e. second) version > just has the root NSViewController and a bunch of NSView objects. There is a

Re: Unicode filenames with Apple File System and UIManagedDocument

2017-03-21 Thread davelist
> On Mar 21, 2017, at 8:33 AM, Jean-Daniel wrote: > > >> Le 21 mars 2017 à 12:03, davel...@mac.com a écrit : >> >>> >>> On Mar 21, 2017, at 1:06 AM, Jens Alfke wrote: >>> >>> On Mar 20, 2017, at 2:23 PM, davel...@mac.com wrote:

Re: Unicode filenames with Apple File System and UIManagedDocument

2017-03-21 Thread Aandi Inston
Is the question, what is canonical mapping? I'm going to assume it is, so I can share what I found when I hit much the same issue. This is mostly from memory so let's hope it's right. Take the word Café. How many Unicode characters is this and what are they? Turns out there are two answers. The

Re: Unicode filenames with Apple File System and UIManagedDocument

2017-03-21 Thread Jean-Daniel
> Le 21 mars 2017 à 12:03, davel...@mac.com a écrit : > >> >> On Mar 21, 2017, at 1:06 AM, Jens Alfke wrote: >> >> >>> On Mar 20, 2017, at 2:23 PM, davel...@mac.com wrote: >>> >>> NSURL *url = [[self courseDirectory] URLByAppendingPathComponent:name]; >> >> There’s

Handling Cocoa Bindings over a tree of View Controllers

2017-03-21 Thread Daryle Walker
A design for my third window iteration involves using several NSViewController subclasses in a UI tree. The current (i.e. second) version just has the root NSViewController and a bunch of NSView objects. There is a NSObjectController and a NSArrayController to bind the various view objects to

Re: Unicode filenames with Apple File System and UIManagedDocument

2017-03-21 Thread davelist
> On Mar 21, 2017, at 1:06 AM, Jens Alfke wrote: > > >> On Mar 20, 2017, at 2:23 PM, davel...@mac.com wrote: >> >> NSURL *url = [[self courseDirectory] URLByAppendingPathComponent:name]; > > There’s nothing wrong with that call; it’s the canonical way to add a path >

Re: Of course I forgot some NSTextFinder questions

2017-03-21 Thread Daryle Walker
> On Mar 20, 2017, at 1:41 PM, Quincey Morris > wrote: > > On Mar 20, 2017, at 04:58 , Daryle Walker > wrote: >> >>> If all the strings were concatenated together would be the ‘x’ in "fox”. > >> Is there a

Table Header row question

2017-03-21 Thread Rick Corteza
Hi there, I have an NSPanel that I use as a log with 3 columns. All works well but when I first open the log and start to scroll the TableHeaderView jumps maybe 10 pixels or so to the left and causing the headers to be misaligned. What could be causing this? rc