Re: Accessibility Settings

2024-01-11 Thread Keary Suska via Cocoa-dev
I don’t have those settings on my Mac (Monterey) so I can’t check but I wonder if you can simply query existing controls for their font information? HTH, Keary Suska Esoteritech, Inc. "Demystifying technology for your home or business” > On Jan 11, 2024, at 8:50 AM, Alex Zavatone via

Re: Mystery interference with AirPlay

2022-06-15 Thread Keary Suska via Cocoa-dev
A more useful response may be that you may already have devices that support AirPlay. By any chance have you checked to see if any devices show under the AirPlay menu in the Music desktop app? Note that Mac computers can AirPlay to each other. Many smart TV’s support AirPlay, as do most modern

Re: Problem with rangeOfString and Umlauts

2022-03-11 Thread Keary Suska via Cocoa-dev
NSRange is 0-based, so the 16th character is index 15. Also you might want to use -localizedStandardRangeOfString: instead... Keary Suska Esoteritech, Inc. "Demystifying technology for your home or business” > On Mar 11, 2022, at 9:10 AM, Jack Brindle via Cocoa-dev > wrote: > > I just

Re: Indexing broken for one project

2022-02-06 Thread Keary Suska via Cocoa-dev
I have come across issues where a code syntax error messes up indexing—are you able to do a full, successful compilation? Other than that, I have heard that some issues might require a system restart, i.e. 1) quitting Xcode; 2) deleting derived data (if you use a shared location you might also

Re: Intermittent invisible NSWindow

2021-11-15 Thread Keary Suska via Cocoa-dev
I can say it has been true in the past, even if it is no longer the case. It is not something I test with each OS release. I certainly can move a window almost entirely offscreen—enough to not notice it at least. Also, your suggestion that the window may have an invalid size could also be the

Re: Intermittent invisible NSWindow

2021-11-13 Thread Keary Suska via Cocoa-dev
Have you logged the window coordinates? It might be placed fully offscreen, and that would produce the behavior you are seeing. Keary Suska Esoteritech, Inc. "Demystifying technology for your home or business” > On Nov 13, 2021, at 9:52 AM, Tom Doan via Cocoa-dev > wrote: > > I'm having a

Re: Accessing a property of a view via its controller doesn't work

2021-09-04 Thread Keary Suska via Cocoa-dev
Perhaps a more germane question might be, are you sure that the view controller has a relationship with any window? It is not necessary, as I understand, for a view to exist in a window. A view controller can load a view without placing it into a window, and therefore viewWillMoveToWindow: will

Re: Special question about NSOpenPanel

2021-05-24 Thread Keary Suska via Cocoa-dev
I don’t know if this helps but I have noticed issues under Catalina where with various applications that the save panel simply and inexplicably fails to open. I haven’t thought to see if the open panel was not working either but since it’s a subclass the issues could be related. There doesn’t

Re: MacOS: nonmodal NSAlert panel

2021-05-12 Thread Keary Suska via Cocoa-dev
I believe Apple uses NSPopOver for non-modal alerts and dialogs, which can automatically dismiss when the user clicks outside the popover. Keary Suska Esoteritech, Inc. "Demystifying technology for your home or business" > On May 12, 2021, at 12:17 PM, Carl Hoefs via Cocoa-dev > wrote: > > I

Re: fileManagerWithAuthorization:

2021-03-15 Thread Keary Suska via Cocoa-dev
That forum thread does not, as far as I can tell, say that you need a provisioning profile for non-sandboxed apps. In fact, the final recommendation is to turn off sandboxing to test privileged operations without the need for entitlements. However, it appears an app must still be notarized

Re: Programmatically created NSButton is drawn in the wrong position.

2020-12-15 Thread Keary Suska via Cocoa-dev
Based on what you are doing, setting the property to YES will get you closer to what your problem is. When this property is NO, you cannot accurately control the view’s frame. That being said, when are you verifying that the frame of the buttons is unchanged? Keary Suska Esoteritech, Inc.

Re: NSTimer +timerWithTimeInterval:

2020-04-29 Thread Keary Suska via Cocoa-dev
Are the timer values actual numeric constants, or a variable defined earlier in code? Keary Suska Esoteritech, Inc. "Demystifying technology for your home or business" > On Apr 29, 2020, at 3:35 PM, Carl Hoefs via Cocoa-dev > wrote: > > There are no extensions or categories in the project.

Re: Permission Denied trying to connect to localhost in unit test

2019-12-13 Thread Keary Suska via Cocoa-dev
Yes, you would create a new test target and add all the GUI stuff as a member of the test target. Of course, you will want to exclude them from other targets. You shouldn’t need to do any library linking since it is a common codebase. Simply include the classes and put the glue code in the App

Re: Permission Denied trying to connect to localhost in unit test

2019-12-13 Thread Keary Suska via Cocoa-dev
I would first test to see if you can access networking at all—i.e. connect to a public HTTP server and see if it works. If it doesn’t, then you are probably running against the entitlements issue. I suspect that the “dummy target” indicated is simply a GUI app wrapper built just for testing but

Re: 'altool' cannot be found

2019-06-16 Thread Keary Suska via Cocoa-dev
Looks like something was up with the Cocoa Dev list—you probably see that it came in early this morning. Anyway, glad I could be help. Keary Suska Esoteritech, Inc. "Demystifying technology for your home or business" > On Jun 15, 2019, at 12:14 PM, Leo via Cocoa-dev > wrote: > > > Thanks

Re: 'altool' cannot be found

2019-06-15 Thread Keary Suska via Cocoa-dev
I am using that Xcode version and for a while now all Xcode utilities and command line tools are installed in the Xcode app package. My copy is at /Applications/Xcode.app/Contents/Developer/usr/bin/altool. Do you find it in that location? If so, xcrun should be able to find it. If you run