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 method? Or [
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 is too horrible (
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 think of is that, if legacyScreenSave
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 new settings into persi
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 process "ArtSaver" (the name of my plug
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 'defaults' command to read the
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.
>
> A while ago, I think I
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, ...).
>
> In an app, I
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 waking the sc
You should definitely submit a bug to Apple. You can reference FB13444225,
which is my report of the bug that causes ScreenSaverViews to not be removed
after the screensaver stops, and they keep running after the screensaver starts
up again, so they keep multiplying.
--
Steve Mills
Drummer, Mac
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't upgraded either. I usua
> On Feb 1, 2024, at 11:53, Gabriel Zachmann wrote:
>
> NSRegistrationDomain
> The domain consisting of a set of temporary defaults whose values can be set
> by the application to ensure that searches will always be successful.
Yes. Remember that registered defaults DO NOT appear in the on-disk
> 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 current version of Xcode, unde
> 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
> effect immediately in the littl
Yes, Apple broke legacy screensavers when multiple monitors are present, even
some of their own screensavers. We just have to wait for them to fix it. It's
been reported, and I've heard that they are aware.
https://discussions.apple.com/thread/254745941
Steve via iPad
_
> On Dec 13, 2022, at 14:11, Torsten Curdt via Cocoa-dev
> wrote:
>
> I would like to open a Finder window with a pre-filled search filter and
> search results - but I just cannot find a good way to do it. I tried to
> find a way through the Scripting Bridge but it seems like this is not
> expo
> On Dec 13, 2022, at 13:50, Gabriel Zachmann via Cocoa-dev
> wrote:
>
> I am not interested in detecting whether or not my screensaver is running in
> System Prefs preview.
>
> I am interested in the *screen* on which I am running, irrespective of
> whether it's inside System Prefs or as a f
I mentioned somewhere in one of my replies that you know when it’s being run in
the System Prefs preview because isPreview is passed to the main entry point.
Steve via iPad
> On Dec 11, 2022, at 14:56, Gabriel Zachmann via Cocoa-dev
> wrote:
>
> Thanks again for the responses. And sorry for
> On Nov 17, 2022, at 16:11, Gabriel Zachmann via Cocoa-dev
> wrote:
>
> Thanks a lot for your quick responses!
>
> I would like to understand what you are saying and what is going on, so
> please bear with me.
>
> So, Steve, if I understand correctly, you suggest to write:
>
> - (void) vie
> On Nov 17, 2022, at 11:59, Jack Brindle via Cocoa-dev
> wrote:
>
> The NSScreen screen property is nullable. From the docs for NSWindow screen:
>
> "The value of this property is the screen where most of the window is on; it
> is nil when the window is offscreen."
If a screensaver window
> On Nov 17, 2022, at 10:44, Gabriel Zachmann via Cocoa-dev
> wrote:
>
> In my screensaver (macOS),
> I am trying to retrieve the 'screen number' (NSScreenNumber) for the screen
> on which I am running.
[NSScreen.screens indexOfObject:window.screen] gives you the zero-based screen
index. 0
> On Nov 9, 2022, at 11:26, Gabriel Zachmann via Cocoa-dev
> wrote:
>
> I asked them to send the log file, but I could not find anything elucidating
> in the log.
You didn’t do something like change the min version for your config xib? If I
were you, I’d look at the dif of every file you’ve c
> On May 30, 2021, at 06:46, Gabriel Zachmann via Cocoa-dev
> wrote:
>
> Thanks again for the hints.
> In the meantime I have found out that it seems like legacyScreenSaver under
> macOS 10.15.0 does not have the right entitlements.
Didn’t we cover this a couple years ago? No, you can’t do an
> On Apr 4, 2021, at 10:11, Richard Charles via Cocoa-dev
> wrote:
>
> Why does Apple cache the defaults, what are the positive benefits? I have
> only ever been infuriated with this process during development.
For the same reason as any cache; speed and efficiency.
Steve via iPad
__
> On Apr 3, 2021, at 12:00, Gabriel Zachmann via Cocoa-dev
> wrote:
>
> Oh, and BTW: what happens if I do this:
>
>NSDictionary * monitor_user_defaults = [ [NSUserDefaults standardDefaults]
> dictionaryForKey: displayName_];
>[monitor_user_defaults setObject: anArray forKey: @"Pref1"]
> On Apr 3, 2021, at 11:02, Gabriel Zachmann via Cocoa-dev
> wrote:
>
>
>>
>> Why not use your top level NSUserDefaults as a dictionary and use each
>> monitor name as a key for each object in the dictionary? Is that too clunky?
>
> I was thinking of that, but I was hoping for a more eleg
On Jun 5, 2020, at 13:33:17, Gabriel Zachmann via Cocoa-dev
wrote:
>
> Everything works, *except* in Dark Mode, the text in the NSTextView is not
> legible, since it's black text on dark background.
>
> What should I do to make this panel also Dark Mode "proof" ?
Make sure the text color is s
On May 28, 2020, at 06:39:40, Gabriel Zachmann via Cocoa-dev
wrote:
>
> I have screensaver where the user can select a folder through the options
> sheet.
> In that sheet, I open an NSOpenPanel, make a few settings, runModal,
> let the user navigate and choose a folder, then get oPanel.URL.
C
> I can't recall/reproduce, but it was definitely *inside*
> CGImageSourceCreateThumbnailAtIndex().
>
> If there is no image a tinder 0, shouldn't it just return NULL gracefully?
We don’t know that. There are many routines that throw exceptions when the
index is out of bounds. You should be cal
On May 26, 2020, at 16:10:26, Gabriel Zachmann via Cocoa-dev
wrote:
>
> I've just had a crash in
> CGImageSourceCreateThumbnailAtIndex( new_image, 0, imageOpts );
We went through this quite a while ago in private emails.
CGImageSourceCreateThumbnailAtIndex is fine to use from any thread. Are
> On May 9, 2020, at 12:13, Gabriel Zachmann via Cocoa-dev
> wrote:
>
> Would that really make the background (worker) thread execute all that
> internal copying/decoding of images in the *background* thread?
>
> I am asking because, currently, all this stuff gets executed in the main
> threa
> On May 9, 2020, at 08:51, Gabriel Zachmann via Cocoa-dev
> wrote:
>
>
>>
>>
>> Try Instruments. Apple have written a measuring tool for a reason :)
>
> Thanks for the hint.
>
> I've done that.
> In the Heaviest Stack Trace, I am seeing functions like
> CA::Transcation::commit()
> CA::Re
On May 8, 2020, at 12:50:23, Alex Zavatone wrote:
>
> Oh Steve, which version of MacOS are you seeing this on?
What? I'm not the OP of this thread.
--
Steve Mills
Drummer, Mac geek
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do
On May 8, 2020, at 09:08:17, Richard Charles via Cocoa-dev
wrote:
>
> Some of the dynamically linked libraries are large. If they are put in a
> workspace with the main project then it is so large it becomes cumbersome to
> work with.
>
> One library has over 1,100 source files. Using a works
On May 7, 2020, at 17:53:43, Gabriel Zachmann via Cocoa-dev
wrote:
>
> Should I skip this statement in case -startAnimation has been compiled into
> the app?
It's not "compiled into the app". It's part of the OS. Calling it will cause it
to do its thing, but in an environment it wasn't design
On May 5, 2020, at 15:19:15, Gabriel Zachmann via Cocoa-dev
wrote:
>
> Well, in my own -startAnimation, I do
> [super startAnimation];
Which could be doing all sorts of things that assume it's running in a known
screensaver environment.
--
Steve Mills
Drummer, Mac geek
On May 4, 2020, at 15:33:28, Gabriel Zachmann via Cocoa-dev
wrote:
>
>> run in a normal app that can deactivate, hide, minimize, etc, you're
>> throwing it all kinds of things it isn't designed to handle.
>>
>> If you really want to run your screensaver animation in a non-screensaver
>> app,
On May 4, 2020, at 03:28:23, Gabriel Zachmann wrote:
>
> You mean, it could happen that Apple decides to make ScreenSaverView a
> subclass of some class other than NSView ?
> (currently, it is a subclass of NSView)
No, I mean just what I said. It's not guaranteed or even suggested that
Screen
> On May 2, 2020, at 09:15, Gabriel Zachmann via Cocoa-dev
> wrote:
>
> I've got an app that makes heavy use of ScreenSaverView (i.e., creates an
> instance of a subclass).
ScreenSaverView is for screensavers, not apps. It’s behavior in an app is not
guaranteed to work.
Steve via iPad
On Apr 29, 2020, at 15:36:23, Carl Hoefs via Cocoa-dev
wrote:
>
> When I issue NSTimer's +timerWithTimeInterval: method, I'm getting
> unexpected timer firing times (20X faster than expected).
>
> ∙ If I specify 1.0 for the time interval, my method gets called 20 times/sec.
> ∙ If I speci
On Mar 22, 2020, at 19:32:25, Sandor Szatmari
wrote:
>
>
> The only issue I see is that if this code were ever called on the main
> thread. I don’t know if this is likely because we don’t know enough about
> the OP’s code. But if there is a chance a simple test would suffice.
>
> if ( [NST
> On Mar 22, 2020, at 15:38, Rob Petrovec via Cocoa-dev
> wrote:
>
> I would not do this. It is widely documented that AppKit API that produce
> UI elements, like NSOpenPanel, are _not_ thread safe.
The code shown *is* threadsafe. It’s calling it on the main thread.
Steve via iPad
___
> On Mar 6, 2020, at 09:04, Gabriel Zachmann via Cocoa-dev
> wrote:
>
> Is it possible to share one NIB/XIB between two different apps?
> If yes, what would be the best approach for development: different Xcode
> projects, or different targets within the same Xcode project?
Sure. The easiest
On Mar 5, 2020, at 08:05:13, Gabriel Zachmann via Cocoa-dev
wrote:
>
> When installing my screensaver (i.e., downloading and double-clicking),
> some people get a funny warning saying "cannot check for malicious software".
Tell users to not double-click it, but to install it manually in
/Libra
> On Mar 3, 2020, at 08:51, Gabriel Zachmann via Cocoa-dev
> wrote:
> But I would also like to *understand* why things are not working (if they are
> not working).
> So, why would copying the app bundle to some other place
> (using in Xcode's Copy Files phase) cause this weird error?
Because
> On Feb 22, 2020, at 10:04, Richard Charles via Cocoa-dev
> wrote:
>
> This is bizarre. When did this start, Catalina? It has been my experience
> that the default scale factor is 1.0 for normal displays and 2.0 for Retina
> displays.
It’s been that way for quite a while. 10.12 or 10.13 mayb
On Feb 18, 2020, at 14:23:22, Gabriel Zachmann via Cocoa-dev
wrote:
>
> I understand that - but how can I store SSBs, if the app (legacyScreenSaver)
> does not have the com.apple.security.files.bookmarks.* entitlement?
Don't worry about what entitlements the engine has. That's beyond your co
> On Feb 18, 2020, at 10:50, Gabriel Zachmann via Cocoa-dev
> wrote:
>
> Also, it can access files on an external disk, if the directory is provided
> during the same run via NSOpenPanel.
> But not in a later run , when it tries to access those same files (on
> external disk) with user inter
On Feb 17, 2020, at 04:17:26, Gabriel Zachmann via Cocoa-dev
wrote:
>
> One of my users (maybe, they others don't bother)
> told me that occasionally, they get an error message that must originate from
> this piece of code in my screensaver:
>
>NSURL * url = [NSURL fileURLWithPath: [self a
On Jan 10, 2020, at 08:41, Gabriel Zachmann via Cocoa-dev
wrote:
>
>
> Follow-up question: is there a way to do that for screensavers?
That’s what happens when you go through NSOpenPanel and the user chooses a
folder. Read that document that 2 of us have suggested.
Steve via iPad
On Jan 10, 2020, at 07:36:03, Gabriel Zachmann via Cocoa-dev
wrote:
>
> So, is .../Containers/.../Data/Pictures linked to ~/Pictures automatically?
Yes. That's under-the-hood stuff that you should mostly ignore. Pretend it
doesn't exist. The OS will do what it needs to do.
> I am searching th
On Jan 8, 2020, at 15:29:47, Gabriel Zachmann via Cocoa-dev
wrote:
>
> In my screensaver, I try to search the Pictures directory in the user's home.
> It is OK - for now - if my app cannot access any .photoslibrary, but I'd like
> to pick up
> any other images in ~/Pictures.
>
> I get the path
> On Dec 18, 2019, at 11:19, Carl Hoefs via Cocoa-dev
> wrote:
>
> I have a macOS daemon that uses NSTimers for scheduling user event
> reminders.
>
> This works well except for abrupt time changes:
> (1) the user explicitly changes the date/time
> (2) the user crosses into a different tim
> On Dec 10, 2019, at 11:56, Turtle Creek Software via Cocoa-dev
> wrote:
tl;dr
Oh god NOOO!
Steve via iPhone
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact
Please kill this thread. We're all sick of the constant notifications that turn
out to only be this crap. Argue somewhere else. This is for development
questions and getting real help.
--
Steve Mills
Drummer, Mac geek
___
Cocoa-dev mailing list (Coco
You should use an external poll site for this rather than filling the list with
yet another thread full of discussions and arguments.
Steve via iPhone
> On Nov 19, 2019, at 10:42, Turtle Creek Software via Cocoa-dev
> wrote:
>
> Before I email comments to Apple, it would help to know more abo
> On Sep 19, 2019, at 18:22, Carl Hoefs via Cocoa-dev
> wrote:
>
> I'm writing an iPhone app that analyzes an input image and generates nine jpg
> images. That's too many to be displayed at once on the GUI, so I thought to
> use an "album of images" that the user can thumb through (an animated
On Sep 18, 2019, at 16:50:39, Rick Mann via Cocoa-dev
wrote:
>
> Yeah, I'm inclined to think it's an error in the docs.
If you look at the input expression in this great site, you'll see 2 /'s as
part of it. They mark the beginning and the end (before flags).
https://regexr.com
--
Steve Mill
> On Sep 17, 2019, at 10:20, Gabriel Zachmann via Cocoa-dev
> wrote:
>
> How can I make Xcode to put an image into the Resources bundle of my screen
> saver?
Just add the png or tiff directly to the project like any other file, and turn
on the checkbox for your target when it asks which targe
On Jul 25, 2019, at 20:50:18, Dragan Milić via Cocoa-dev
wrote:
>
> The thing is, in that dragging session I have to supply a list of URLs, so
> that other applications expecting URLs (like Finder, for example) would
> accept them. As a matter of fact, speaking about specifics, what I really
On Jul 25, 2019, at 20:08:40, Rob Petrovec via Cocoa-dev
wrote:
>
> I would not recommend using those deprecated API. They are not long for this
> world. With that said, I don’t have a better solution.
Yeah, hard to say how much longer they'll be available. You could always add a
single ite
> On Jul 25, 2019, at 19:12, Dragan Milić via Cocoa-dev
> wrote:
>
> Hi everyone,
>
> Here's a very straightforward question: starting a dragging session with
>
> -[NSDraggingSession beginDraggingSessionWithItems:event:source:]
>
> and having multiple dragging items automatically adds a bad
On May 28, 2019, at 19:46:26, Leo via Cocoa-dev
wrote:
>
>
> Hmm... my earlier message today never got through.
Supposedly, these lists are to be done away with at some point. Someone started
co...@apple-dev.groups.io, which many of us have moved to. Or use the annoying
and inferior dev foru
63 matches
Mail list logo