Re: Problem with rangeOfString and Umlauts

2022-03-11 Thread Matt Jacobson via Cocoa-dev
> On Mar 11, 2022, at 12:17 PM, Gabriel Zachmann via Cocoa-dev > wrote: > > > Well, SSIA. > In more detail, I've got two strings: > > file_basename = @"Morgendämmerung (1)" > info_item = @"Morgendämmerung" > > This code > >NSString * prefix = [ info_item commonPrefixWithString:

Re: Accessibility UIContentSizeCategory or current accessibility font setting

2021-10-17 Thread Matt Jacobson via Cocoa-dev
Hey Alex, > On Oct 17, 2021, at 2:51 PM, Alex Zavatone via Cocoa-dev > wrote: > > We’ve got a situation where we need to check the current accessibility font > size enum and apply custom settings to some attributed fonts. I’ve seen that > there is a way to check the current dynamic text

Re: Accessibility - Smart Invert and images.

2021-09-29 Thread Matt Jacobson via Cocoa-dev
Check out this property on UIView: > or this “modifier” method on SwiftUI View:

Re: App can't be opened

2021-09-15 Thread Matt Jacobson via Cocoa-dev
Hey, > On Sep 15, 2021, at 11:38 AM, Gabriel Zachmann via Cocoa-dev > wrote: > > Thanks so much! I guess that missing symbol explains the crash. > > BTW: is it possible, to make Xcode produce an error message when I am using > symbols that are not available on the deployment target? >

Re: ARC and C++ structures

2021-09-15 Thread Matt Jacobson via Cocoa-dev
> On Sep 15, 2021, at 11:21 AM, Tor Arne Vestbø wrote: > > >> On 14 Sep 2021, at 16:33, Matt Jacobson via Cocoa-dev >> mailto:cocoa-dev@lists.apple.com>> wrote: >> >> By default, when an NSWindow is `-close`d (which can only happen once

Re: ARC and C++ structures

2021-09-14 Thread Matt Jacobson via Cocoa-dev
Hi Tom, > On Sep 14, 2021, at 9:53 AM, Tom Doan via Cocoa-dev > wrote: > > I have a multiple platform application (Windows, Mac, GTK) that is > primarily organized using C++ with Objective-C used for the > Mac-specific interface. I recently switched to use ARC (as we are > using Scintilla

Re: "A build only device cannot be used to run this target" appearing with "Any Mac" scheme

2021-08-23 Thread Matt Jacobson via Cocoa-dev
> On Aug 23, 2021, at 2:20 PM, Gabriel Zachmann wrote: > > Hi Matt, > > thanks a lot for your quick response. It clarifies a few things .. but see > below. > >> >> That pop-up actually has two halves: first, a scheme, and second, a run >> destination. >> >> “Any Mac” and “My Mac” are run

Re: "A build only device cannot be used to run this target" appearing with "Any Mac" scheme

2021-08-23 Thread Matt Jacobson via Cocoa-dev
Hey Gabriel, > On Aug 23, 2021, at 1:48 PM, Gabriel Zachmann via Cocoa-dev > wrote: > > I have a screensaver that compiles and runs fine when I use the active scheme > "My Mac". > However, when I switch to "Any Mac (Apple Silicon, Intel)", I get the error > message > "A build only device

Re: NSExceptionHandler and "Internal Error" dialog

2021-05-28 Thread Matt Jacobson via Cocoa-dev
> On May 28, 2021, at 8:41 PM, James Walker wrote: > > On 5/28/21 4:21 PM, Matt Jacobson wrote: >> On May 28, 2021, at 6:54 PM, James Walker via Cocoa-dev >> wrote: >>> When an uncaught exception is raised, I want to log some information about >>&

Re: NSExceptionHandler and "Internal Error" dialog

2021-05-28 Thread Matt Jacobson via Cocoa-dev
Hey James, > On May 28, 2021, at 6:54 PM, James Walker via Cocoa-dev > wrote: > > When an uncaught exception is raised, I want to log some information about it > but let it continue on as normal. But when I use NSExceptionHandler, an > uncaught exception displays an "Internal Error" modal

Re: Crashing in NSTabView

2019-05-22 Thread Matt Jacobson
> On May 22, 2019, at 1:19 PM, Casey McDermott wrote: > > The Allocations feature in Instruments looks promising. Is there a way to > limit the display to just one class? Otherwise it is WTMI. Check out File → Recording Options… Matt ___

Re: lockFocusIfCanDraw behavior in layer-backed mode

2018-12-17 Thread Matt Jacobson
Hi, > On Dec 15, 2018, at 7:07 AM, Tor Arne Vestbø wrote: > > Hey hey, > >> On 15 Dec 2018, at 01:38, Matt Jacobson wrote: >> >> You were probably calling -lockFocusIfCanDraw >> <https://developer.apple.com/documentation/appkit/nsview/1483285-lock

Re: NSString drawAtPoint in Mojave

2018-12-14 Thread Matt Jacobson
Hi, > On Dec 13, 2018, at 3:27 PM, Tom Doan wrote: > > ITOT that the problem was that I had a call to lockFocusIfCanDraw > in my drawRect handler (from who knows what prior incarnation of > the OS) which, according to the documentation is deprecated and > "does nothing and should not be

Re: Why would a view be asked to draw after its window has been ordered out?

2018-12-13 Thread Matt Jacobson
The buffered nature of the Mac OS X window system means that windows can “display” (i.e., go through the process of updating) even when ordered out. Ordered-out windows can occasionally be seen on screen (consider App Exposé, which shows minimized windows, or Show All Tabs in apps using

Re: Layer-hosting views as superview?

2018-03-21 Thread Matt Jacobson
> On Mar 21, 2018, at 6:36 AM, Markus Spoettl wrote: > > On 3/21/18 14:26, Markus Spoettl wrote: >> It seems the old rule that layer-hosting views must not have sub-views is no >> longer >> valid. I remember in the old days you couldn't have layer-hosting NSViews >>