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.

Re: Using CALayer to display a PDF ?

2025-01-05 Thread Alex Zavatone via Cocoa-dev
Try it out! > On Jan 5, 2025, at 11: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 tha

Re: Using CALayer to display a PDF ?

2025-01-05 Thread Gabriel Zachmann via Cocoa-dev
Page = [ [NSImage init] addRepresentation: imagePDFrep]; ? Is that the general gist of it? Best, G. smime.p7s Description: S/MIME cryptographic signature _______ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comment

Re: Using CALayer to display a PDF ?

2025-01-04 Thread Alex Zavatone via Cocoa-dev
Oh, I forgot to ask. Are you doing this on the Mac or on iOS? My writeup is from an iOS perspective. See? I told you. No coffee this morning Hope it helps to guide you in the right direction in any case. Alex Zavatone > On Jan 4, 2025, at 6:30 AM, Gabriel Zachmann via Cocoa-dev >

Re: Using CALayer to display a PDF ?

2025-01-04 Thread Alex Zavatone via Cocoa-dev
-image And sorry if there are any inaccuracies in my overview. No coffee today. Cheers! Hope this helps. Alex Zavatone > On Jan 4, 2025, at 6:30 AM, Gabriel Zachmann via Cocoa-dev > wrote: > > I am using CALayer's to display images with some animations. > > Now,

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 obje

Using CALayer to display a PDF ?

2025-01-04 Thread Gabriel Zachmann via Cocoa-dev
gards, Gabriel smime.p7s Description: S/MIME cryptographic signature ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.appl

Re: Screensavers under macOS 15

2024-10-02 Thread Alex Zavatone via Cocoa-dev
I can update one of my computers to 15 and if you wish to send me the latest copy, I can test for you. Lemme know. Alex Zavatone > On Sep 20, 2024, at 7:12 AM, Gabriel Zachmann via Cocoa-dev > wrote: > > I have received reports that my screensaver is not working under ma

Re: Screensavers under macOS 15

2024-10-02 Thread Steve Mills via Cocoa-dev
On Sep 20, 2024, at 07:12, Gabriel Zachmann via Cocoa-dev wrote: > > I have received reports that my screensaver is not working under macOS 15. For what it's worth, mine is working just fine. And they have not fixed the bug that leaves legacy screensavers loaded and running after

Re: Screensavers under macOS 15

2024-09-20 Thread Steve Mills via Cocoa-dev
, Mac geek ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https

Re: Screensavers under macOS 15

2024-09-20 Thread Steve Mills via Cocoa-dev
On Sep 20, 2024, at 07:12, Gabriel Zachmann via Cocoa-dev wrote: > > I have received reports that my screensaver is not working under macOS 15. > In particular, it seems like it can't access its settings , using > ScreenSaverDefaults -defaultsForModuleWithName I haven

Screensavers under macOS 15

2024-09-20 Thread Gabriel Zachmann via Cocoa-dev
on: S/MIME cryptographic signature _______ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscript

Re: Setting app icon in NSWorkspace

2024-03-22 Thread Mark Allan via Cocoa-dev
de signing. > > Let me see what I can look in to. > > Cheers, > Alex Zavatone > >> On Mar 22, 2024, at 8:23 AM, Mark Allan via Cocoa-dev >> wrote: >> >> Hi all, >> >> I'm trying to offer my users the option (via a pre-defined list in

Re: Setting app icon in NSWorkspace

2024-03-22 Thread Alex Zavatone via Cocoa-dev
. Cheers, Alex Zavatone > On Mar 22, 2024, at 8:23 AM, Mark Allan via Cocoa-dev > wrote: > > Hi all, > > I'm trying to offer my users the option (via a pre-defined list in my app's > Preferences) to choose an app icon which shows up in the Dock and the Finder. > &

Setting app icon in NSWorkspace

2024-03-22 Thread Mark Allan via Cocoa-dev
is please? The folks at Panic have managed to do it with Nova, so it must be possible, I just can't figure it out. Thanks Mark ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to t

Re: Unhidden subview outside of superview's bounds

2024-02-10 Thread Dragan Milić via Cocoa-dev
> On Sat 10.02.2024, at 11.16, Dragan Milić via Cocoa-dev wrote: > > Hello all, > > I’ve finally changed my main development platform to macOS 14 Sonoma and > almost immediately have I encountered something I consider being a bug. I > searched for similar issues, but now

Unhidden subview outside of superview's bounds

2024-02-10 Thread Dragan Milić via Cocoa-dev
ly)? -- Dragan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev

Re: Screen saver settings don't take effect (again) under Sonoma

2024-02-01 Thread Steve Mills via Cocoa-dev
at’s going on. Steve via iPad _______ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mai

Re: Screen saver settings don't take effect (again) under Sonoma

2024-02-01 Thread Gabriel Zachmann via Cocoa-dev
en, I read the actual values from monitor_user_prefs. > > When the user changes a setting, I do the inverse, like this: > > .. create a new dictionary monitor_user_prefs, containing all the key/value > pairs of the settings .. > [defaults_ setObject: monitor_user_prefs

Re: Xcode interferes with signal handler

2024-01-31 Thread Gabriel Zachmann via Cocoa-dev
Sorry, Jens and Pascal! I have received your messages just now. You were right, as I have found out a while later kind of the hard way ... So, thanks again! Best regards, Gabriel smime.p7s Description: S/MIME cryptographic signature ___ Cocoa-dev

Re: Xcode interferes with signal handler (was: Sending SIGUSR1 to a process)

2024-01-31 Thread Gabriel Zachmann via Cocoa-dev
lldb will stop on SIGUSR1 Set your breakpoints as needed, then r --no-stdin Then you can 'kill -30 ' without getting those annoying breaks in mach_msg2_trap. Hope this helps. Gabriel. smime.p7s Description: S/MIME cryptographic signature ___

Re: Xcode interferes with signal handler

2024-01-31 Thread Alex Zavatone via Cocoa-dev
Hi Gabriel. Happy that you’re getting some progress. Did Jens’s reply not explain why it would be interfered with when running in the debugger? > On Jan 31, 2024, at 10:33 AM, Gabriel Zachmann via Cocoa-dev > wrote: > > I have investigated a bit further. > > When I launc

Re: Xcode interferes with signal handler

2024-01-31 Thread Gabriel Zachmann via Cocoa-dev
them, maybe, an ancillary process from Xcode? > smime.p7s Description: S/MIME cryptographic signature ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the m

Re: Xcode interferes with signal handler (was: Sending SIGUSR1 to a process)

2024-01-31 Thread Alex Zavatone via Cocoa-dev
/build_setting_ref.html Hopefully, Jens’s tip will get you what you need! Best, Alex Zavatone > On Jan 31, 2024, at 12:20 AM, Jens Miltner via Cocoa-dev > wrote: > > Xcode intercepts signals in the process being debugged (for good reason). > You can ignore specific signals in Xcode (i.e. pa

Re: Xcode interferes with signal handler (was: Sending SIGUSR1 to a process)

2024-01-30 Thread Jens Miltner via Cocoa-dev
false process handle SIGUSR1 -p true HTH, -jens > Von: Gabriel Zachmann > Betreff: Xcode interferes with signal handler (was: Sending SIGUSR1 to a > process) > Datum: 30. Januar 2024 um 20:31:45 MEZ > An: "cocoa-dev@lists.apple.com" > > > I am set

Re: Xcode interferes with signal handler

2024-01-30 Thread Pascal Bourguignon via Cocoa-dev
Le 30/01/2024 à 20:31, Gabriel Zachmann via Cocoa-dev a écrit : I am setting up a signal handler in my app like this: void *e = signal( SIGUSR1, signal_handler ); if ( e == SIG_ERR ) ... It works (i can 'kill -30 '), BUT ONLY, if I run my app outside of Xcode. When I

Xcode interferes with signal handler (was: Sending SIGUSR1 to a process)

2024-01-30 Thread Gabriel Zachmann via Cocoa-dev
a signal handler? Or does a kill on the command line deliver the signal to several processes, one of them, maybe, an ancillary process from Xcode? Best regards, Gabriel smime.p7s Description: S/MIME cryptographic signature ___ Cocoa-dev mai

Figma UI/UX?

2024-01-29 Thread Laurent Daudelin via Cocoa-dev
ftware https://www.nemesys-soft.com/ ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Updat

Re: Sending SIGUSR1 to a process

2024-01-29 Thread Alex Zavatone via Cocoa-dev
://forums.developer.apple.com/forums/thread/90111 Cheers, Alex Zavatone > On Jan 29, 2024, at 1:06 AM, Gabriel Zachmann via Cocoa-dev > wrote: > > IIRC, one process cannot send a Unix signal to another one. > At least, not any more, and not without special privileges. > > But

Re: Sending SIGUSR1 to a process

2024-01-29 Thread Gabriel Zachmann via Cocoa-dev
ationMain, mach_msg2_trap. My signal_handler won't get called. smime.p7s Description: S/MIME cryptographic signature _______ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the li

Re: Sending SIGUSR1 to a process

2024-01-29 Thread Saagar Jha via Cocoa-dev
Yes, this should work. The only changes I know of is that you can’t signal some Apple processes these days if System Integrity Protection is engaged. Saagar Jha > On Jan 28, 2024, at 23:06, Gabriel Zachmann via Cocoa-dev > wrote: > > IIRC, one process cannot send a Unix signal to

Sending SIGUSR1 to a process

2024-01-28 Thread Gabriel Zachmann via Cocoa-dev
d. Best regards, Gabriel smime.p7s Description: S/MIME cryptographic signature ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.ap

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 v

Re: Accessibility Settings

2024-01-11 Thread Alex Zavatone via Cocoa-dev
nothing for text and nothing with a 13 in it. Ideally I’d search the entire drive for a mod date of today and locate that file, but I’ll leave that up to you. Good luck. Let us know what you find. Cheers, Alex Zavatone > On Jan 11, 2024, at 10:58 AM, Alex Zavatone via Cocoa-dev > wrote:

Re: Accessibility Settings

2024-01-11 Thread Alex Zavatone via Cocoa-dev
I had to do something like that on iOS a few years back. Let me see if I have a solution for MacOS. Cheers, Alex Zavatone > On Jan 10, 2024, at 10:48 AM, Tom Doan via Cocoa-dev > wrote: > > I'm trying to figure out how to query the value for the > Accessibility---Dis

Accessibility Settings

2024-01-10 Thread Tom Doan via Cocoa-dev
ion? Best regards, Tom Doan --- Estima 2717 Harrison St Evanston, IL 60201 USA _______ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev

Re: Security-scoped bookmark and screensaver

2024-01-03 Thread Gabriel Zachmann via Cocoa-dev
smime.p7s Description: S/MIME cryptographic signature _______ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com H

Re: Security-scoped bookmark and screensaver

2024-01-03 Thread Steve Mills via Cocoa-dev
> On Jan 3, 2024, at 06:20, Gabriel Zachmann via Cocoa-dev > wrote: > > From one of the users of my screensaver, I get the issue report that > resolving the SSB does not work. > He is running macOS 10.14.6 on a Mac Mini. > I have compiled my screensaver using the cur

Security-scoped bookmark and screensaver

2024-01-03 Thread Gabriel Zachmann via Cocoa-dev
rk ]; .. = [NSString stringWithFormat: @"Orig path: %@", [dict objectForKey: NSURLPathKey]; smime.p7s Description: S/MIME cryptographic signature ___________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or m

NSFileCoordinator woes

2023-11-03 Thread Dragan Milić via Cocoa-dev
documentation in the right way and work myself through more complex examples and use cases. Thanks, -- Dragan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at

Re: Screen saver settings don't take effect (again) under Sonoma

2023-10-12 Thread Michael Diehr via Cocoa-dev
There's an active discussion rying to reverse-engineer the screen saver settings in Sonoma over on GitHub: https://github.com/JohnCoates/Aerial/issues/1332 ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin reques

Re: Screen saver settings don't take effect (again) under Sonoma

2023-10-12 Thread Steve Mills via Cocoa-dev
> On Oct 12, 2023, at 04:54, Gabriel Zachmann via Cocoa-dev > wrote: > > Now, under Sonoma (14.0), I have an issue with the settings (user defaults) > of my screen saver, again. > > I go into System Settings, change some settings of my screen saver, they take > e

Screen saver settings don't take effect (again) under Sonoma

2023-10-12 Thread Gabriel Zachmann via Cocoa-dev
setObject: monitor_user_prefs forKey: displayName_]; bool success = [defaults_ synchronize]; smime.p7s Description: S/MIME cryptographic signature _______ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderato

Linear Alpha Blending

2023-10-10 Thread Jeff McClintock via Cocoa-dev
Hi, I am drawing user-interface elements in Cocoa. I have a problem with transparent colors. I have created a minimal example to illustrate the issue. https://github.com/JeffMcClintock/AlphaBlender Here is the apps output: https://synthedit.com/files/AlphaBlender.png To explain

Re: Drawing same text and graphics in different CGContextRef

2023-09-22 Thread David Duncan via Cocoa-dev
ntext, and restore it afterwards). > > All the best > JP > > > > > > > >a graphic context created by myself ( hence not the supplied on by the > printing framework ) > >> Le 22 sept. 2023 à 17:59, David Duncan > <mailto:david.dun.

Re: Drawing same text and graphics in different CGContextRef

2023-09-22 Thread JPH via Cocoa-dev
t JP a graphic context created by myself ( hence not the supplied on by the printing framework ) > Le 22 sept. 2023 à 17:59, David Duncan a écrit : > > > >> On Sep 22, 2023, at 11:12 AM, JPH via Cocoa-dev >> wrote: >> >> I am facing the following pr

Re: Drawing same text and graphics in different CGContextRef

2023-09-22 Thread David Duncan via Cocoa-dev
> On Sep 22, 2023, at 11:12 AM, JPH via Cocoa-dev > wrote: > > I am facing the following problems in drawing text and graphics in > CGContextRef of an NSview and Printing framework: > > 1) drawing text using: [finalString drawInRect:textBox > withAttribu

Drawing same text and graphics in different CGContextRef

2023-09-22 Thread JPH via Cocoa-dev
gards JP ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.a

Re: How to check for full-screen apps, robustly?

2023-09-12 Thread Gabriel Zachmann via Cocoa-dev
> would give the right ‘fullscreen’ sizes for any current or future screen > shape. > > > Angela Brett (she/her) > http://angelastic.com > ang...@angelastic.com > > > > > smime.p7s Description: S/MIME cryptographic signature ___

Re: 'originals' folder is greyed out

2023-09-05 Thread Gabriel Zachmann via Cocoa-dev
cription: S/MIME cryptographic signature _______ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/U

Re: 'originals' folder is greyed out

2023-09-05 Thread Rob Petrovec via Cocoa-dev
is different? If it was a permissions issue the icon would have a 🚫 badge on it and should not appear disabled (grayed out). Hope that helps & good luck. —Rob > On Sep 5, 2023, at 12:10 PM, Gabriel Zachmann via Cocoa-dev > wrote: > > My app loads a number of image files a

'originals' folder is greyed out

2023-09-05 Thread Gabriel Zachmann via Cocoa-dev
el PS: Yes, I know that an app/user should never mess with the contents of the photos library. But in my app, I am merely loading the files, nothing else. smime.p7s Description: S/MIME cryptographic signature ___ Cocoa-dev mailing list (Cocoa-de

Re: Avoiding leaks with "initWithCGImage"

2023-08-24 Thread Rob Petrovec via Cocoa-dev
gt; with it. >> >> Cheers, >> Alex Zavatone > > > Le 24 août 2023 à 07:44, Sandor Szatmari a > écrit : > > You mention ARC… aren’t you not supposed to explicitly release objects under > ARC? Am I misunderstanding? > > Sandor > >> >

Re: Avoiding leaks with "initWithCGImage"

2023-08-24 Thread Rob Petrovec via Cocoa-dev
> On Aug 23, 2023, at 11:44 PM, Sandor Szatmari via Cocoa-dev > wrote: > > You mention ARC… aren’t you not supposed to explicitly release objects under > ARC? Am I misunderstanding? > > Sandor > >> On Aug 23, 2023, at 18:48, JPH via Cocoa-dev >> wrot

Re: Avoiding leaks with "initWithCGImage"

2023-08-24 Thread JPH via Cocoa-dev
à 07:44, Sandor Szatmari a écrit : You mention ARC… aren’t you not supposed to explicitly release objects under ARC? Am I misunderstanding? Sandor > >> On Aug 23, 2023, at 4:47 PM, JPH via Cocoa-dev >> wrote: >> >> Hello friends, >> >> The enclosed

Re: Avoiding leaks with "initWithCGImage"

2023-08-23 Thread Sandor Szatmari via Cocoa-dev
You mention ARC… aren’t you not supposed to explicitly release objects under ARC? Am I misunderstanding? Sandor > On Aug 23, 2023, at 18:48, JPH via Cocoa-dev > wrote: > > Hello friends, > > The enclosed procedure is producing a NSImage from another NSImage, by >

Re: Avoiding leaks with "initWithCGImage"

2023-08-23 Thread Alex Zavatone via Cocoa-dev
. Cheers, Alex Zavatone Sent from my iPad > On Aug 23, 2023, at 5:48 PM, JPH via Cocoa-dev > wrote: > > Hello friends, > > The enclosed procedure is producing a NSImage from another NSImage, by > cropping in a NSRect. > The resulting sub-Image feeds an imageView in t

Re: Avoiding leaks with "initWithCGImage"

2023-08-23 Thread Rob Petrovec via Cocoa-dev
CGImageForProposedRect returns an autoreleased CGImageRef, so your CFRelease(imageRef) is an overrelease and likely the cause of your problem. The rest of the code looks fine, including the release of subImageRef (if it was uncommented). —Rob > On Aug 23, 2023, at 4:47 PM, JPH via Cocoa-

Avoiding leaks with "initWithCGImage"

2023-08-23 Thread JPH via Cocoa-dev
___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev

Re: How to check for full-screen apps, robustly?

2023-08-19 Thread Angela Brett via Cocoa-dev
justing mainScreen.frame with mainScreen.safeAreaInsets? I haven’t tried it but I would hope those would give the right ‘fullscreen’ sizes for any current or future screen shape. Angela Brett (she/her) http://angelastic.com ang...@angelastic.com _____

Re: How to check for full-screen apps, robustly?

2023-08-19 Thread Gabriel Zachmann via Cocoa-dev
Description: S/MIME cryptographic signature ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your

How to check for full-screen apps, robustly?

2023-08-19 Thread Gabriel Zachmann via Cocoa-dev
notch, and use a smaller mainScreen.frame.size accordingly; but I am pretty sure this would break with the next Mac models again. So, I am looking for something more future-proof. Best regards, Gabriel smime.p7s Description: S/MIME cryptographic signature ___ Coco

Re: Full-screen not working

2023-08-17 Thread Alex Zavatone via Cocoa-dev
Gabe, I wonder if you can manually mess up your pList settings (keep a working copy) to see if this replicates any of the issues you see. Cheers from Windhoek, Alex Zavatone > On Aug 15, 2023, at 8:24 PM, Gabriel Zachmann via Cocoa-dev > wrote: > > I can try that , but I would

Re: Confusion with app settings / NSUserDefaults

2023-08-16 Thread Saagar Jha via Cocoa-dev
rsely, it’s not necessarily sitting around watching the >> plist file for changes. The correct way to update user defaults in an ad-hoc >> fashion is to use the defaults command. >> > ___ Cocoa-dev mailing list (Cocoa-dev@lists.app

Re: Confusion with app settings / NSUserDefaults

2023-08-15 Thread Gabriel Zachmann via Cocoa-dev
phic signature _______ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/

Re: Confusion with app settings / NSUserDefaults

2023-08-15 Thread Gabriel Zachmann via Cocoa-dev
to disk > immediately. Conversely, it’s not necessarily sitting around watching the > plist file for changes. The correct way to update user defaults in an ad-hoc > fashion is to use the defaults command. > smime.p7s Description: S/MIME cryptographic signature ____

Re: Full-screen not working

2023-08-15 Thread Gabriel Zachmann via Cocoa-dev
I can try that , but I would have no idea what to look for. Is there any known reasons why a toggleFullScreen call might not send the window to full-screen? smime.p7s Description: S/MIME cryptographic signature ___ Cocoa-dev mailing list (Cocoa

Re: Full-screen not working

2023-08-15 Thread Gabriel Zachmann via Cocoa-dev
Best regards, Gabriel smime.p7s Description: S/MIME cryptographic signature ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.app

Re: Full-screen not working

2023-08-15 Thread Gary L. Wade via Cocoa-dev
I would suggest asking your user for a system report or sysdiagnose. It might glean some details about their environment. -- Gary > On Aug 15, 2023, at 3:30 AM, Gabriel Zachmann via Cocoa-dev > wrote: > > I have one user of my macOS app (under macOS 13.4.1) > where the app d

Re: Full-screen not working

2023-08-15 Thread Alex Zavatone via Cocoa-dev
pain in the ass iPhone. > On Aug 15, 2023, at 12:31, Gabriel Zachmann via Cocoa-dev > wrote: > > I have one user of my macOS app (under macOS 13.4.1) > where the app does not want to go into full-screen mode. > > It is a pretty plain app. > >

Full-screen not working

2023-08-15 Thread Gabriel Zachmann via Cocoa-dev
ve already googled, but it seems like what that user reports does not happen anywhere else. Is there anything that could prevent a window from going into fullscreen mode? Best regards, Gabriel smime.p7s Description: S/MIME cryptographic signature _______

Re: Screensaver options: nothing clickable

2023-08-13 Thread Alex Zavatone via Cocoa-dev
I reported that to you as well if you look at my older replies. Greetings from Etosha. > On Aug 13, 2023, at 8:49 PM, Gabriel Zachmann via Cocoa-dev > wrote: > > One of the users of my screensaver has reported a very funny bug: > my screensaver is working, but when they open th

Screensaver options: nothing clickable

2023-08-13 Thread Gabriel Zachmann via Cocoa-dev
s, Gabriel smime.p7s Description: S/MIME cryptographic signature _______ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/U

Re: Confusion with app settings / NSUserDefaults

2023-08-06 Thread Marco S Hyman via Cocoa-dev
Use the commend “defaults delete de.zach.ArtSaverApp” to delete all your prefs. That should remove them everywhere. At least that is what as worked for my in my limited experience. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not

Re: Confusion with app settings / NSUserDefaults

2023-08-06 Thread Saagar Jha via Cocoa-dev
an ad-hoc fashion is to use the defaults command. > On Aug 6, 2023, at 01:53, Gabriel Zachmann via Cocoa-dev > wrote: > > I am pretty confused with the NSUserDefaults system. > > My app stores different settings for different monitors in the > [NSUserDefaults standardU

Confusion with app settings / NSUserDefaults

2023-08-06 Thread Gabriel Zachmann via Cocoa-dev
value in plist file reflects that, even while I have the plist file open in Xcode. Very confused, Gabriel. smime.p7s Description: S/MIME cryptographic signature _______ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin request

Re: Substitute for kill(2)?

2023-07-25 Thread Jack Brindle via Cocoa-dev
notifications. These are easy to use, and, I believe, still the best way to send info from one app to another in the Mac system. Jack > On Jul 25, 2023, at 9:38 AM, Rob Petrovec via Cocoa-dev > wrote: > > NSDistributedNotificationCenter is a way to send a notification out across > t

Re: Substitute for kill(2)? (James Walker)

2023-07-25 Thread Gabriel Zachmann via Cocoa-dev
hLength: NSStatusItem.variableLength ) in my app ... smime.p7s Description: S/MIME cryptographic signature _______ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Re: Substitute for kill(2)? (James Walker)

2023-07-25 Thread Gabriel Zachmann via Cocoa-dev
regards, Gabriel smime.p7s Description: S/MIME cryptographic signature ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)

Re: Substitute for kill(2)?

2023-07-25 Thread Gabriel Zachmann via Cocoa-dev
ription: S/MIME cryptographic signature _______ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscr

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: Substitute for kill(2)?

2023-07-25 Thread Rob Petrovec via Cocoa-dev
ow me to send a signal.) > > What do you mean by "distributed notification" ? > How would I send it? > > Best regards, Gabriel > > ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin request

Re: Substitute for kill(2)?

2023-07-25 Thread Gabriel Zachmann via Cocoa-dev
ptographic signature ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/coco

Re: Substitute for kill(2)?

2023-07-25 Thread Rob Petrovec via Cocoa-dev
Yeah, you might be able to send out a distributed notification and have the menuling listen for it. When it receives it it can kill itself or go through the normal teardown/quit procedure. —Rob > On Jul 25, 2023, at 6:15 AM, Alex Zavatone via Cocoa-dev > wrote: > > What if

Re: Substitute for kill(2)?

2023-07-25 Thread Alex Zavatone via Cocoa-dev
What if you called a method in the other process and the other process kills itself with a kill? Is kill no longer functional from any process? > On Jul 25, 2023, at 2:49 AM, Gabriel Zachmann via Cocoa-dev > wrote: > > Is there a simple way for one process to send a sing

Substitute for kill(2)?

2023-07-25 Thread Gabriel Zachmann via Cocoa-dev
, this is no longer possible. (At least, not without privilege elevation, which seems too complicated.) All hints and ideas will be appreciated! Best regards, Gabriel smime.p7s Description: S/MIME cryptographic signature ___ Cocoa-dev mailing list

Re: "Z" in setDateFormat ?

2023-07-22 Thread Roland King via Cocoa-dev
It’s quoted. So it prints “Z” >> >>>> On 22 Jul 2023, at 06:15, Gabriel Zachmann via Cocoa-dev >>>> wrote: >>> >>> In the Apple docs in chapter "Date Formatters" I found sample code that >>> contains this line: >>> &g

Re: "Z" in setDateFormat ?

2023-07-22 Thread Gabriel Zachmann via Cocoa-dev
Thanks! ... and what is the meaning of the Z at the end of a date/time ? GMT+0:0 ? Best regards, Gabriel > On 22. Jul 2023, at 12:25, Roland King wrote: > > It’s a literal. It’s quoted. So it prints “Z” > >> On 22 Jul 2023, at 06:15, Gabriel Zachmann via Cocoa-dev >&g

Re: "Z" in setDateFormat ?

2023-07-22 Thread Pascal Bourguignon via Cocoa-dev
Le 22/07/2023 à 12:15, Gabriel Zachmann via Cocoa-dev a écrit : In the Apple docs in chapter "Date Formatters" I found sample code that contains this line: [rfc3339DateFormatter setDateFormat:@"'-'MM'-'dd'T'HH':'mm':'ss&#x

Re: "Z" in setDateFormat ?

2023-07-22 Thread Roland King via Cocoa-dev
It’s a literal. It’s quoted. So it prints “Z” > On 22 Jul 2023, at 06:15, Gabriel Zachmann via Cocoa-dev > wrote: > > In the Apple docs in chapter "Date Formatters" I found sample code that > contains this line: > > [rfc3339DateFormatter setDateFormat:@&

"Z" in setDateFormat ?

2023-07-22 Thread Gabriel Zachmann via Cocoa-dev
he 'Z' do? And where would I find the doc about it? (and potential other letters?) My guess would be it has something to do with the 'Z'/time offset mentioned in RFC 3339, but it is unclear to me exactly what is meant here. Best regards, Gabriel smime.p7s Description: S/

Re: How do decipher an exception in the log file

2023-07-21 Thread Gabriel Zachmann via Cocoa-dev
Saagar Jha > >> On Jul 18, 2023, at 16:01, Gabriel Zachmann via Cocoa-dev >> wrote: >> >> >>> That number is 0x7FFF, which is particularly recognizable and >>> happens to be the value of NSNotFound. >>> >>> I imagine th

NSFileCoordinator operations on a directory (and it's content)

2023-07-20 Thread Dragan Milić via Cocoa-dev
Since my question is about specific Cocoa API, but it also involves file system operations, I don't know it the appropriate place to ask is here or Filesystem-dev list, so I'll ask on both (and hope nobody will mind it :-)) I have an application, which "messes" with files i

Re: How do decipher an exception in the log file

2023-07-20 Thread Saagar Jha via Cocoa-dev
Console should have it. That crash log will have the base address in it that you can use to symbolicate things. Saagar Jha > On Jul 18, 2023, at 16:01, Gabriel Zachmann via Cocoa-dev > wrote: > > >> That number is 0x7FFF, which is particularly recognizable and

Re: How do decipher an exception in the log file

2023-07-18 Thread Gabriel Zachmann via Cocoa-dev
ther than log messages, would be a lot more useful. Where would i find that crash report, given its a screensaver? Just in case something like that happens again ... Best regards, Gabriel smime.p7s Description: S/MIME cryptographic signature ___ Cocoa

Re: How do decipher an exception in the log file

2023-07-18 Thread Ben Kennedy via Cocoa-dev
> On Jul 18, 2023, at 9:28 AM, Gabriel Zachmann via Cocoa-dev > wrote: > > 2023-07-17 13:13:23.657278+0200 0xff744Error 0x1144e1 > 2670 0legacyScreenSaver: [com.apple.ScreenSaver:Modules] > -[LegacyExtensionManager processExtensionRequest:replyI

Re: How do decipher an exception in the log file

2023-07-18 Thread Alex Zavatone via Cocoa-dev
we could say why. GL. > On Jul 18, 2023, at 11:28 AM, Gabriel Zachmann via Cocoa-dev > wrote: > > Does anybody know how I could decipher the following entries in the log file? > More precisely, is there a way I can determine the location in the code where > the exception occur

How do decipher an exception in the log file

2023-07-18 Thread Gabriel Zachmann via Cocoa-dev
] smime.p7s Description: S/MIME cryptographic signature ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe

Re: Log file not showing all messages

2023-07-14 Thread Alex Zavatone via Cocoa-dev
14, 2023, at 8:09 AM, Gabriel Zachmann via Cocoa-dev > wrote: > > I have an app that logs messages (info and errors) as follows: > >... >log_client_ = os_log_create( "de.zach.MyApp", "MyApp" ); >... > > void logMessage(

Log file not showing all messages

2023-07-14 Thread Gabriel Zachmann via Cocoa-dev
uts?? They all occur on the same day, and users extract and send their log files on the same day the problem occurs. Any ideas and hints will be highly appreciated! Best, G. smime.p7s Description: S/MIME cryptographic signature ___ Cocoa-dev

  1   2   3   4   5   6   7   8   9   10   >