Re: NSPredicateEditorRowTemplate subviews layout

2025-05-17 Thread Steve Mills via Cocoa-dev
On May 16, 2025, at 09:36, Dragan Milić via Cocoa-dev wrote: > > Trying to resize any control in a row template by force (setFrame: or > setFrameSize:) has no effect. Have you tried adding a width constraint instead? Or subclass NSPopUpButton and override the intrinsicContentSize m

Re: Cocoa-dev Digest, Vol 22, Issue 12

2025-05-17 Thread Arved von Brasch via Cocoa-dev
teView { datePicker = dateView! } else { datePicker = newDateView()! } return [views[0], views[1], datePicker] } } } That sort of thing worked for me. Regards, Arved > On 17 May 2025, at 05:00, cocoa

NSPredicateEditorRowTemplate subviews layout

2025-05-16 Thread Dragan Milić via Cocoa-dev
behaviour, as well as code samples, if necessary, but I’d like to ask first, maybe someone already knows what I’m talking about and provide some insights and solutions. Thanks in advance, -- Dragan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com

NSPredicateEditorRowTemplate subviews layout

2025-05-16 Thread Dragan Milić via Cocoa-dev
behaviour, as well as code samples, if necessary, but I’d like to ask first, maybe someone already knows what I’m talking about and provide some insights and solutions. Thanks in advance, -- Dragan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com

Re: Settings of screen saver not persistent - again

2025-04-20 Thread Alex Zavatone via Cocoa-dev
> On Apr 19, 2025, at 4:53 AM, Gabriel Zachmann via Cocoa-dev > wrote: > > >> >> The only thing I can think of is that, if legacyScreenSaver is still running >> an old instance of your screensaver (which you've learned can now happen), >> it i

Re: Settings of screen saver not persistent - again

2025-04-20 Thread Alex Zavatone via Cocoa-dev
025, at 4:53 AM, Gabriel Zachmann via Cocoa-dev > wrote: > > >> >> The only thing I can think of is that, if legacyScreenSaver is still running >> an old instance of your screensaver (which you've learned can now happen), >> it is somehow caching the specia

Re: Settings of screen saver not persistent - again

2025-04-19 Thread Steve Mills via Cocoa-dev
On Apr 19, 2025, at 04:53, Gabriel Zachmann via Cocoa-dev wrote: > > > Is there an easy way to check, if other instances are still running? I log stuff to see what's going on. Either using standard logging (OSLog, etc) or write to your own file if trying to filter in Console i

Re: Settings of screen saver not persistent - again

2025-04-19 Thread Gabriel Zachmann via Cocoa-dev
; 1. Make sure legacyScreenSaver is not running in Activity Monitor. Quit/kill > it if it is. > 2. Open the System Prefs and change your screensaver's prefs. > 3. Run it to see if the changes are kept. smime.p7s Description: S/MIME cryptographic signature _____

Re: Settings of screen saver not persistent - again

2025-04-19 Thread Gabriel Zachmann via Cocoa-dev
ink that's it. I tried your experiment and i think it proves that there are other instances of my screensaver running. Is there an easy way to check, if other instances are still running? Best regards, Gabriel smime.p7s Description: S/MIME cryptographic signature ____

Re: Settings of screen saver not persistent - again

2025-04-18 Thread Steve Mills via Cocoa-dev
On Apr 18, 2025, at 06:32, Gabriel Zachmann via Cocoa-dev wrote: > > > This is what I do once the user clicks OK: > > [defaults_ setObject: monitor_user_prefs forKey: displayName_]; > [defaults_ synchronize]; The only thing I can th

Re: Settings of screen saver not persistent - again

2025-04-18 Thread Gabriel Zachmann via Cocoa-dev
the new prefs directly after the OK button. Best, Gab. 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

Re: Settings of screen saver not persistent - again

2025-04-15 Thread Steve Mills via Cocoa-dev
On Apr 15, 2025, at 07:57, Gabriel Zachmann via Cocoa-dev wrote: > > But that does not explain, why new settings will not become persistent, does > it? > I mean, when I do > [defaults_ setObject: monitor_user_prefs forKey: displayName_]; > the Mac *could* write the

Re: Settings of screen saver not persistent - again

2025-04-15 Thread Gabriel Zachmann via Cocoa-dev
uot;legacyScreenSaver" suggest, that this framework will be going away anyways at some point ... What are your thoughts? Best regards, Gabriel smime.p7s Description: S/MIME cryptographic signature ___________ Cocoa-dev mailing list (Cocoa-dev@lists.ap

Re: Settings of screen saver not persistent - again

2025-04-13 Thread Steve Mills via Cocoa-dev
On Apr 13, 2025, at 16:01, Gabriel Zachmann via Cocoa-dev wrote: > > > I don't see this on my side. > I have let macOS launch my screensaver several times, > but still I see exactly one process: >legacyScreenSaver (Wallpaper) > Also, I don't see any pro

Re: Settings of screen saver not persistent - again

2025-04-13 Thread Gabriel Zachmann via Cocoa-dev
l times, but still I see exactly one process: legacyScreenSaver (Wallpaper) Also, I don't see any process "ArtSaver" (the name of my plugin). Best regards, Gabriel smime.p7s Description: S/MIME cryptographic signature ___ Coc

Re: How can I read settings of a screen saver plugin

2025-04-12 Thread Steve Mills via Cocoa-dev
On Apr 12, 2025, at 06:23, Gabriel Zachmann via Cocoa-dev wrote: > > I have already asked a similar question , but please let me try again. > > I would like to access the defaults of my screen saver plugin using the > 'defaults' command. Like I said before, the '

Re: Settings of screen saver not persistent - again

2025-04-12 Thread Steve Mills via Cocoa-dev
On Apr 12, 2025, at 06:34, Gabriel Zachmann via Cocoa-dev wrote: > > The settings of screen savers used to be broken for a long time, i.e., macOS > would not make them persistent, or it would not "deliver" them to the plugin > through the regular NSUserDefaults API. >

Settings of screen saver not persistent - again

2025-04-12 Thread Gabriel Zachmann via Cocoa-dev
es anybody else experience this regression? Best, Gab. 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 mode

How can I read settings of a screen saver plugin

2025-04-12 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: How to change settings of my screen saver on the command line

2025-03-27 Thread Gabriel Zachmann via Cocoa-dev
ged the defaults system with macOS 15 (or 14?). The old ways don't work anymore, IIRC. Especially the plist files seem to play a somewhat different role than they used to. Best regards, Gabriel smime.p7s Description: S/MIME cryptographic signature ________

Re: How to change settings of my screen saver on the command line

2025-03-26 Thread Steve Mills via Cocoa-dev
On Mar 26, 2025, at 08:08, Gabriel Zachmann via Cocoa-dev wrote: > > I have a screensaver that uses a number of settings the user can change > through the Options in System Settings. > > It uses several dictionaries, one per display type (built-in, external > monitor, ...).

How to change settings of my screen saver on the command line

2025-03-26 Thread Gabriel Zachmann via Cocoa-dev
or pointers will be highly appreciated. 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. Conta

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

  1   2   3   4   5   6   7   8   9   10   >