Re: Opening custom files (iOS) from web

2017-03-20 Thread Jens Alfke
> On Mar 20, 2017, at 10:00 PM, Rick Aurbach wrote: > > BUT...what I want to do next is to click on a link on a webpage (i.e., an href=“”> element pointing to a ‘.poetry’ file) and have the file downloaded > and opened by my app. To be a little bit pedantic: it’s best not to think about thing

Re: Unicode filenames with Apple File System and UIManagedDocument

2017-03-20 Thread Jens Alfke
> 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 component to a URL, filesystem or not. > NSURL *url = [NSURL fileURLWithFileSystemRepres

Re: UITextField width of UIAlertController -addTextFieldWithConfigurationHandler:

2017-03-20 Thread Saagar Jha
I haven’t tested this, but have you tried calling [self layoutIfNeeded] in the completion block of [self presentViewController:animated:completion]? Saagar Jha > On Mar 20, 2017, at 16:09, Carl Hoefs wrote: > > iOS 10.2.1 > > I'm using UIAlertController -addTextFieldWithConfigurationHandler:

Opening custom files (iOS) from web

2017-03-20 Thread Rick Aurbach
While I have lots of experience with apps, my knowledge of all things web is pretty lacking, so I’m asking for pointers rather than a solution to the following problem: I have an iOS app that supports importing a custom file-type. I’ve defined the document type and exported UITs in my app. The

Re: Unicode filenames with Apple File System and UIManagedDocument

2017-03-20 Thread Jean-Daniel
> Le 7 mars 2017 à 21:03, davel...@mac.com a écrit : > >> >> On Mar 7, 2017, at 1:19 PM, Alastair Houghton >> wrote: >> >> On 7 Mar 2017, at 12:47, Jean-Daniel wrote: >>> >>> Did you try to use NSString -fileSystemRepresentation instead of UTF-8, or >>> even better, use URL. While using UT

UITextField width of UIAlertController -addTextFieldWithConfigurationHandler:

2017-03-20 Thread Carl Hoefs
iOS 10.2.1 I'm using UIAlertController -addTextFieldWithConfigurationHandler: to display an alert with a textfield. Is there any way to shorten the width of the displayed textfield? I've tried setting its frame/bounds, but it has no effect. -Carl _

Re: Unicode filenames with Apple File System and UIManagedDocument

2017-03-20 Thread davelist
I received a polite reply from my bug stating: "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." Havi

Re: NSTextFinder guide

2017-03-20 Thread Quincey Morris
On Mar 20, 2017, at 04:49 , Daryle Walker wrote: > > Is it possible for a find-next from the table view’s last location to jump to > the text view’s first location whenever the text view is active? > I’m on the fence whether this is a good user interaction, though This is likely not the answe

Re: Of course I forgot some NSTextFinder questions

2017-03-20 Thread Quincey Morris
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 off-by-one bug with the end of the second string? Or am I really > misunderstanding Apple’s counting strategy? The second string seems to be > only 9 char

Of course I forgot some NSTextFinder questions

2017-03-20 Thread Daryle Walker
1. From Apple’s NSTextFinder class guide : > For example, if a client had the strings “The quick”, “brown fox” , “jumped > over the lazy”, and “dog”, and a NSText​Finder instance requests the string > at index 18, then the client should

NSTextFinder guide

2017-03-20 Thread Daryle Walker
Now I’m looking into adding find support to my window. My window is divided into two halves: a NSTableView and a NSTextView. The two views are in separate tabs, so you can’t see them at the same time. Also, I sometimes have the text-view inactive. (When it’s inactive, you can’t click the text vi