Re: OS/X Java native bug

2023-03-19 Thread Alan Snyder via Cocoa-dev
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 >> <mailto:javali...@cbfiddle.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

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

Re: assertion failure

2018-04-07 Thread Alan Snyder
screen. You have yours set to go full screen. It shouldn’t be. > > —Rob > > >> On Apr 7, 2018, at 10:24 AM, Alan Snyder <applemail832...@cbfiddle.com> >> wrote: >> >> I am getting an assertion failure notice on the console when running a small &g

assertion failure

2018-04-07 Thread Alan Snyder
I am getting an assertion failure notice on the console when running a small test program: Assertion failure in -[AWTWindow_Panel _validateCollectionBehavior:], /Library/Caches/com.apple.xbs/Sources/AppKit/AppKit-1504.83.101/AppKit.subproj/NSWindow.m:14741 (This message is on 10.12.6, the

NSDocument autosave in place – possible data loss?

2017-12-24 Thread Alan Snyder
I was thinking about the idea of automatic save in place, and it occurred to me there could be a problem. Suppose the user wants to move some content from one place in a document to another. A typical way to do this would be to cut the content from the original location and paste it in the new

using AppleScript to print an HTML document

2017-09-24 Thread Alan Snyder
I’m trying to use AppleScript to get Safari to print an HTML document (showing the print dialog) and am having no luck with the direct approach. This script times out without opening a print dialog or printing the document: tell application "Safari" print POSIX file

Re: Ignore Spelling not persistent?

2017-08-23 Thread Alan Snyder
PM, Jens Alfke <j...@mooseyard.com> wrote: > > > >> On Aug 22, 2017, at 6:26 PM, Alan Snyder <applemail832...@cbfiddle.com >> <mailto:applemail832...@cbfiddle.com>> wrote: >> >> The documentation that I have seen for the Ignore Spelling contex

Ignore Spelling not persistent?

2017-08-22 Thread Alan Snyder
The documentation that I have seen for the Ignore Spelling contextual menu item says that it applies to the current document, but does not say one way or the other whether the setting is persistent. As far as I can tell, the setting is not persistent. That strikes me as odd. Why would one want

Re: inconsistencies in view renderings

2016-10-20 Thread Alan Snyder
If you exclude textured controls in the window content area, then my examples are all moot. Can you tell me how to create a window with a bottom status bar in IB? It seems to depend on some sort of analysis by AppKit. > On Oct 19, 2016, at 8:16 PM, Quincey Morris >

Re: inconsistencies in view renderings

2016-10-19 Thread Alan Snyder
the intent is to gray out all textured buttons in inactive windows but the support is buggy? Alan > On Oct 18, 2016, at 8:53 PM, Quincey Morris > <quinceymor...@rivergatesoftware.com> wrote: > > On Oct 18, 2016, at 19:43 , Alan Snyder <applemail832...@cbfiddle.com &

Re: inconsistencies in view renderings

2016-10-18 Thread Alan Snyder
That sounds rather mysterious. What kind of project configuration would affect the display of buttons? Well, try this on Sierra: Use the Open File… menu item of Safari to open a dialog. Then activate a different application. On my system, the Cancel button in the dialog grays out (although it

Re: inconsistencies in view renderings

2016-10-18 Thread Alan Snyder
Sounds like you were not using textured rounded buttons, which are the ones that I wrote about. > On Oct 18, 2016, at 1:00 PM, Quincey Morris > <quinceymor...@rivergatesoftware.com> wrote: > > On Oct 18, 2016, at 12:17 , Alan Snyder <applemail832...@cbfiddle.com &

Re: inconsistencies in view renderings

2016-10-18 Thread Alan Snyder
cey Morris > <quinceymor...@rivergatesoftware.com> wrote: > > On Oct 18, 2016, at 08:00 , Alan Snyder <applemail832...@cbfiddle.com> wrote: >> >> Is the choice to gray or not to gray when inactive under programmer control? > > IIRC you can control t

Re: inconsistencies in view renderings

2016-10-18 Thread Alan Snyder
Is the choice to gray or not to gray when inactive under programmer control? > On Oct 18, 2016, at 12:08 AM, Quincey Morris > wrote: > > Keep in mind that buttons have *two* kinds of graying these days. One > indicates that the button is disabled. The

inconsistencies in view renderings

2016-10-17 Thread Alan Snyder
I am not an expert on Interface Builder, so I hope to learn something about how IB simulates the display of views or how IB defined views are constructed at run time. I have a UI that includes textured rounded buttons with text labels. In IB, when the IB window is inactive, the buttons display

Re: NSImage from bitmap - then delete bitmap

2016-07-22 Thread Alan Snyder
Or better yet, have the termination request come from a thread other than the main thread. > On Jul 22, 2016, at 9:38 AM, Alan Snyder <applemail832...@cbfiddle.com> wrote: > > >> On Jul 22, 2016, at 7:45 AM, Trygve Inda <cocoa...@xericdesign.com> wrote: >> >

Re: NSImage from bitmap - then delete bitmap

2016-07-22 Thread Alan Snyder
> On Jul 22, 2016, at 7:45 AM, Trygve Inda wrote: > > Because the main thread sometimes needs to ask the worker threads to > terminate. If it does this after performOnMainThread has been called by a > worker thread, but before the main thread has processed it, then the

debugging a deadlock involving NSViewHierarchyLock

2016-07-18 Thread Alan Snyder
I have an application that occasionally deadlocks with the main thread calling -[NSViewHierarchyLock _lockForWriting:handler:] and no other thread stack showing any operation in progress that might need to own this lock. I saved a core dump. Is there any way I can poke around in the core dump

Re: Imported UTI taking precedence over Exported UTI

2016-07-01 Thread Alan Snyder
Have you tried lsregister -dump? > On Jul 1, 2016, at 9:18 AM, Matthew LeRoy wrote: > > Hi, > > I’m having an issue where it appears that an Imported UTI for a certain file > extension declared by one application is taking precedence over an Exported > UTI for the same

Re: LSSharedFIleList API deprecated

2015-12-11 Thread Alan Snyder
> On Dec 9, 2015, at 5:04 PM, Dragan Milić wrote: > > Yeah, but I need to manage system-wide items, like favorites (found in > Finder’s sidebar), recent document (on system level, not my application > level), recent servers, etc. Finder still does that so I don’t really get the

mysterious behavior of system font metrics

2015-10-28 Thread Alan Snyder
I am using some code (Java) that assumes it is OK to create a size 1 font and then scale-transform it to render other font sizes. I would not expect this to work with Yosemite system fonts, but most of the time it works better than expected. But sometimes it does not. (The expected problem is

Re: mysterious behavior of system font metrics

2015-10-28 Thread Alan Snyder
uincey Morris > <quinceymor...@rivergatesoftware.com> wrote: > > On Oct 28, 2015, at 12:17 , Alan Snyder <applemail832...@cbfiddle.com > <mailto:applemail832...@cbfiddle.com>> wrote: >> >> The mysterious behavior that I observe is that the result of [NSFont &

Re: mysterious behavior of system font metrics

2015-10-28 Thread Alan Snyder
Thanks for the pointer. I will post there. Alan > On Oct 28, 2015, at 1:48 PM, Jens Alfke wrote: > > I believe there’s a mailing list on lists.apple.com > for CoreText; that might be a good place to ask. >