Re: Views without any layout constraints may clip their content or overlap other views

2019-09-23 Thread James Walker via Cocoa-dev
On 9/23/19 8:30 AM, Richard Charles via Cocoa-dev wrote: On Sep 23, 2019, at 8:06 AM, Gabriel Zachmann via Cocoa-dev wrote: Recently, I am getting lots of warnings saying "Views without any layout constraints may clip their content or overlap other views" when I build my screen saver. Try

Xcode 11 can't make an objective-C subclass any more?

2019-09-23 Thread James Walker via Cocoa-dev
Am I losing my mind, or is there no longer a good way to create a new Objective-C subclass? If I go to create a new Objective-C file, I am offered the file type options: Empty File, Category, Protocol, Extension. No subclass. ___ Cocoa-dev mailing

Re: Xcode 11 can't make an objective-C subclass any more?

2019-09-23 Thread James Walker via Cocoa-dev
On 9/23/19 2:23 PM, Jens Alfke wrote: On Sep 23, 2019, at 2:19 PM, James Walker via Cocoa-dev mailto:cocoa-dev@lists.apple.com>> wrote: Am I losing my mind, or is there no longer a good way to create a new Objective-C subclass?  If I go to create a new Objective-C file, I am offer

Re: Questions regarding release

2019-09-26 Thread James Walker via Cocoa-dev
On 9/26/19 4:20 PM, Gabriel Zachmann via Cocoa-dev wrote: The issue in the below code to my eye is that you allocate a path with CGPathCreateWithRect (+1) but then don't release it. In that case, I am wondering: doesn't ownership pass to the textlayer ? If yes, shouldn't textlayer release the p

Re: Thoughts on productivity

2019-10-24 Thread James Walker via Cocoa-dev
On 10/24/19 3:57 PM, Rob Petrovec via Cocoa-dev wrote: On Oct 24, 2019, at 4:50 PM, Stephane Sudre wrote: On Fri, Oct 25, 2019 at 12:38 AM Rob Petrovec via Cocoa-dev wrote: If its a ranty bug report, which apparently happens a lot, it goes into a black-hole never to see the light of day i

Re: Fullscreen window problems

2019-10-24 Thread James Walker via Cocoa-dev
On 10/24/19 8:45 AM, Ray, Jeffrey R. {Jeff} (AFRC-630) via Cocoa-dev wrote: I have a multi-platform OpenGL app (most code is c++, a tiny bit is Obj-C++). It switches between windowed and full screen mode by having an allocated-once window, and an allocated-and-destroyed full screen that comes

Re: NSWorkspace notifications related to time change

2019-12-18 Thread James Walker via Cocoa-dev
On 12/18/19 9:55 AM, Carl Hoefs via Cocoa-dev wrote: However, I cannot get this notification to fire on system time changes. My other notifications (such as sleep wake, etc) do fire. -Carl [[[NSWorkspace sharedWorkspace] notificationCenter] addObserver: self selector: @sel

Detect when a process has stopped responding?

2019-12-30 Thread James Walker via Cocoa-dev
Some Apple utilities such as Activity Monitor can detect when a process has stopped responding to events. Is there any way to do that using public APIs? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or mode

Re: Can't delete file on external disk

2020-03-12 Thread James Walker via Cocoa-dev
On 3/12/20 9:55 AM, Gabriel Zachmann via Cocoa-dev wrote: In my app, I collect lists of files that reside on an external disk. When the user opens the directory of the files, I create a security-scoped bookmark like this: directoryBookmark_ = [dir bookmarkDataWithOptions: NSURLBookmarkCre

Re: Drag and Drop of NSTokenField stopped working in Catalina

2020-06-30 Thread James Walker via Cocoa-dev
On 6/30/20 3:32 AM, Michael Kloske via Cocoa-dev wrote: In my window controller, which implements I have the following code: - (BOOL)tokenField:(NSTokenField *)tokenField writeRepresentedObjects:(NSArray *)objects toPasteboard:(NSPasteboard *)pboard { return [pboard writeObjects:ob

Re: How to parse a log file

2020-10-26 Thread James Walker via Cocoa-dev
On 10/26/20 3:31 PM, Alex Zavatone via Cocoa-dev wrote: As a note to Jens’s tip, it’s important to keep the .dSWM files for your releases so that you can symbolicate your crash logs. Crashlytics does this for you, but the debug symbols are stripped from released builds to try and prevent peop

Re: MacOS: nonmodal NSAlert panel

2021-05-12 Thread James Walker via Cocoa-dev
On 5/12/21 11:17 AM, Carl Hoefs via Cocoa-dev wrote: I had thought it was possible on MacOS to run an NSAlert panel nonmodally... I'd like to present an informational alert for n seconds then dismiss it without user interaction. But I don't see any way to dismiss, terminate, cancel, invalidate

NSExceptionHandler and "Internal Error" dialog

2021-05-28 Thread James Walker via Cocoa-dev
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 dialog with buttons "Show Details", "Crash", and "Continue". I don't see any explicit men

Re: NSExceptionHandler and "Internal Error" dialog

2021-05-28 Thread James Walker via Cocoa-dev
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 it but let it continue on as normal. But when I use NSExceptionHandler, an uncaught exception displays an

Re: Distributing Mac App to Registered Devices

2021-06-23 Thread James Walker via Cocoa-dev
On 6/23/21 9:33 AM, Richard Charles via Cocoa-dev wrote: How do you distribute software (not on app store) to Mac beta testers and not be presented with a malicious software warning? Notarize your beta builds, just like you should be doing with your release builds. When upgrading a project

Is a HUD panel supposed to be translucent?

2022-03-17 Thread James Walker via Cocoa-dev
I was under the impression that a HUD panel (NSWindowStyleMaskHUDWindow) was supposed to be dark and translucent. But for me it's dark but not at all translucent. Am I just mis-remembering? I'm running Monterey. ___ Cocoa-dev mailing list (Cocoa-de

Re: Building for 10.12

2022-03-18 Thread James Walker via Cocoa-dev
On 3/18/22 1:03 PM, Gabriel Zachmann via Cocoa-dev wrote: Make sure you have the 10.12 SDK installed in your Xcode. To find out what Actually, it seems I wouldn't need older SDK's any more, see, for instance: https://developer.apple.com/forums/thread/82518 And some people even say

NSSplitView layout problem

2022-09-08 Thread James Walker via Cocoa-dev
I have an editable text view and a combo box that I want to lay out horizontally in a split view. The regular size of a combo box defaults to 25 points high, while the regular size of an edit field defaults to 21 points high. But NSSplitView with horizontal layout sets its subviews to the sam

Re: Cocoa framework or Object class to uncompress files

2022-10-25 Thread James Walker via Cocoa-dev
On 10/24/22 6:45 PM, Carl Hoefs via Cocoa-dev wrote: My iOS app downloads a gzip'd data file into its sandbox that the app needs to unzip and process. I don't see anything in Cocoa (such as NSFileManager) that addresses uncompressing files. Is there a way? (BTW, I tried some ancient 3rd party

Re: Code signing checking

2023-01-06 Thread James Walker via Cocoa-dev
On 1/6/23 12:28 PM, Aandi Inston via Cocoa-dev wrote: Is there any API for doing the following activities related to code signing? - Check that the signature on the running codesigned executable is from the same company as the signature on a bundle? OR - Get the company from the codesigned runnin

Re: Substitute for kill(2)?

2023-07-25 Thread James Walker via Cocoa-dev
On 7/25/23 7:38 AM, Rob Petrovec via Cocoa-dev wrote: NSDistributedNotificationCenter is a way to send a notification out across the system. Only processes that are listening for the notification will receive it and have a chance to do something with it. It’s like yelling out in a crowded room

Re: Using CALayer to display a PDF ?

2025-01-04 Thread James Walker via Cocoa-dev
On 1/4/25 4:30 AM, Gabriel Zachmann via Cocoa-dev wrote: I am using CALayer's to display images with some animations. Now, I would like to display PDFs (just the first page). Could some kind soul please explain to me how to load PDFs? And would I then just add such a PDF object as layer.conten

Re: Using CALayer to display a PDF ?

2025-01-05 Thread James Walker via Cocoa-dev
On 1/5/25 9:47 AM, Gabriel Zachmann via Cocoa-dev wrote: Thanks a lot to both of you! I'm sure there's more than one way to do it, but one way is to create an NSPDFImageRep. You can then get a CGImageRef from that, or on macOS, create an NSImage and set that as the layer contents. I forget to