Re: Getting a double-click on a text label

2016-04-17 Thread Ryan Dignard
Would NSClickGestureRecognizer work? I've done this on iOS with the equivalent UITapGestureRecognizer. On Sun, Apr 17, 2016 at 5:45 PM, Graham Cox wrote: > Hi al, > > Here’s something I thought would be trivial, turns out to be non-obvious. > > I have a text label that’s not normally editable t

Getting a double-click on a text label

2016-04-17 Thread Graham Cox
Hi al, Here’s something I thought would be trivial, turns out to be non-obvious. I have a text label that’s not normally editable text, but it can be made editable in some circumstances. It would be useful if a double-click were a shortcut to make it editable, but I can’t see a quick way to set

Re: Does NSString's "- initWithContentsOfURL:usedEncoding:error:" use the tightest encoding possible?

2016-04-17 Thread Charles Srstka
> On Apr 17, 2016, at 1:19 AM, Jens Alfke wrote: > >> >> On Apr 16, 2016, at 7:35 PM, Daryle Walker > > wrote: >> >> If the given method is used to read in a pure ASCII file, will the encoding >> be set to ASCII? Or could the method return a superset encoding (like >>

Window Resizing

2016-04-17 Thread Andreas Mayer
Hi all, I've got a borderless window which users should be able to partially move above the top of the screen frame. By default, windows stop moving/resizing upwards just below the menu bar. Is there some way to change that? I tried overriding -constrainFrameRect:toScreen: but that doesn't hel

How to comply to Disability Discrimination Act of 1995 while developing an iOS app

2016-04-17 Thread Devarshi Kulshreshtha
We have a requirement from our UK client in which he wants us to comply to Disability Discrimination Act of 1995 ( https://en.wikipedia.org/wiki/Disability_Discrimination_Act_1995) while developing the iOS app. I tried to search about it on Internet but most of the information is available on compl

Re: Can a table insert be implemented with an exclusive "addition row"?

2016-04-17 Thread Graham Cox
> On 17 Apr 2016, at 11:40 AM, Daryle Walker wrote: > > a cooler alternative to having a “+” button “Cooler” is subjective, “easier to use” is objective. People are used to the + button; there’s no confusion about how to use it to add a row. Your method is unfamiliar and potentially non-obv

Re: Asynchronous compatibility of NSDocument read/write methods

2016-04-17 Thread Mike Abdullah
Have you read any of the documentation? Your question sounds rather like you haven’t if I’m honest! If using the asynchronous features of the document system, the read and writing methods are still called and execute synchronously, but on a worker thread. There are various APIs built into the d