Re: OS/X Java native bug

2023-03-19 Thread Alan Snyder via Cocoa-dev
Your comments don’t make sense to me.

You either post an event to run the code on the main thread or, if you are on 
the main thread, you run the code directly.

Running the code directly is what invoking a block does.

How is that unnecessary?

Would it make more sense if the parameter were named “c” and the code said 
“c()”?



> On Mar 19, 2023, at 6:22 AM, Michael Hall  wrote:
> 
> 
> 
>> On Mar 18, 2023, at 4:46 AM, Michael Hall  wrote:
>> 
>>> On Mar 17, 2023, at 7:49 AM, Alan Snyder >> > wrote:
>>> 
>>> block() means invoke the block
>> 
>> 
>> Not exactly and it still seems unnecessary here.
>> 
>> It appears to convert the block to a selector and then to invoke it. 
> 
> There seems to be something I’m missing here. An app running with this 
> changed was crashing.
> So the separate block() call might be necessary for some reason.
> 

___

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/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Entitlements of ScreenSaverEngine under macOS Mojave (10.14)

2021-09-20 Thread Alan Snyder via Cocoa-dev
Executable=/System/Library/CoreServices/ScreenSaverEngine.app/Contents/MacOS/ScreenSaverEngine
Identifier=com.apple.ScreenSaver.Engine
Format=bundle with Mach-O thin (x86_64)
CodeDirectory v=20100 size=365 flags=0x0(none) hashes=4+5 location=embedded
Platform identifier=7
Hash type=sha256 size=32
CandidateCDHash sha256=d1c076eb022429c69eb591f76762740ffab13c44
Hash choices=sha256
CDHash=d1c076eb022429c69eb591f76762740ffab13c44
Signature size=4485
Authority=Software Signing
Authority=Apple Code Signing Certification Authority
Authority=Apple Root CA
Info.plist entries=20
TeamIdentifier=not set
Sealed Resources version=2 rules=13 files=80
Internal requirements count=1 size=76

http://www.apple.com/DTDs/PropertyList-1.0.dtd;>


com.apple.developer.extension-host.screensaver

com.apple.security.cs.disable-library-validation





> On Sep 20, 2021, at 1:19 PM, Gabriel Zachmann via Cocoa-dev 
>  wrote:
> 
> codesign -dvvv --entitlements :- 
> /System/Library/CoreServices/ScreenSaverEngine.app/Contents/MacOS/ScreenSaverEngine

___

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/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Thoughts on Cocoa source code

2019-10-09 Thread Alan Snyder via Cocoa-dev


> On Oct 9, 2019, at 10:41 AM, Jens Alfke via Cocoa-dev 
>  wrote:
> 
> You don't want to use the _implementation_ details! Those can and do change 
> completely over time

There is a situation where I think it is fine to use the implementation 
details, and that is to work around a problem in an old release of macOS, which 
is never going to be changed (with the possible exception of a security patch, 
I suppose, but that is unlikely to cause any problems).

Believe it or not, some bugs are not fixed until the next release, or the one 
after that, or …


___

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/archive%40mail-archive.com

This email sent to arch...@mail-archive.com