Re: Substitute for kill(2)?

2023-07-25 Thread Jack Brindle via Cocoa-dev
I would agree with the use of Distributed Notifications, but there is a new limitation that was added a few years ago. The receiver must be in the same login. You can no longer use it to send notifications from one user app to a different user’s app. This came to light for me when I was trying t

Re: Proper way to retrieve the NSScreenNumber in a screen saver ?

2022-11-17 Thread Jack Brindle via Cocoa-dev
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." I would go with Steve’s suggestion as much as possible, The NSScreen class has the info you need. Jac

Re: Retrieving the EXIF date/time from 250k images

2022-08-16 Thread Jack Brindle via Cocoa-dev
Instead of using NSOperationQueue, I would use GCD to handle the tasks. Create a new Concurrent queue (dispatch_queue_create(DISPATCH_QUEUE_CONCURRENT)), then enqueue the individual items to the queue for processing (dispatch_async(), using the queue created above). Everything can be handled in

Re: Indexing broken for one project

2022-02-13 Thread Jack Brindle via Cocoa-dev
In Monterey, /tmp is now only writeable by root. It is quite possible that Xcode couldn’t write there for the indexing. When you changed to a new account, it probably changed where the derived data went. It used to be that /tmp was writeable by anyone. That change bit me recently as well. Secu

Re: App can't be opened

2021-09-09 Thread Jack Brindle via Cocoa-dev
In 10.13 this is not a Notarization problem. It could be a quarantine problem, though. Have him move the application to any directory other than the one where he unzipped the app, then launch the app. That should remove the quarantine and allow him to run the app if that was the problem. The App

Re: Scroller and not apple's mouse

2021-04-14 Thread Jack Brindle via Cocoa-dev
s NSScrollerStyleOverlay. >>> >>> However, I would discourage you from changing this. >>> >>> >>>>> On 13 Apr 2021, at 9:24, IOS NACSPORT via Cocoa-dev wrote: >>>> >>>> Hi, >>>> >>>> I connect

Re: /Library/Application Support off limits?

2021-04-14 Thread Jack Brindle via Cocoa-dev
/Applications is owned by root, and has rwx privileges only for the system, and rx for group (admin) and all. This means you will need to have your installer (with root privileges) to create your company/application directory inside. As an alternative, you can certainly place your directory in /

Re: How to check signature and notarization?

2021-04-12 Thread Jack Brindle via Cocoa-dev
Quick followup: Howard’s app: ArchiChect will do the job you need. The product page is at: https://eclecticlight.co/32-bitcheck-archichect/ And it is free! Jack > On Apr 12, 2021, at 3:40 PM, Jack Brindle via Cocoa-dev > wrote: > > From the code sign man page: > cod

Re: Scroller and not apple's mouse

2021-04-12 Thread Jack Brindle via Cocoa-dev
What is the mouse, and is there any installed software involved that goes with the mouse? Jack > On Apr 12, 2021, at 12:30 AM, IOS NACSPORT via Cocoa-dev > wrote: > > Hi, > > I don't kown is the correct place, In a NSScroller, when I conect the > external mouse, not apple's mouse, the scro

Re: How to check signature and notarization?

2021-04-12 Thread Jack Brindle via Cocoa-dev
From the code sign man page: codesign --display --verbose=4 Terminal.app replace Terminal.app with your application name (be sure to unzip first). The information shown will tell you whether it is has a valid signature. You might try it on a few other apps just to see what that looks like. Be su

Re: Several different NSUserDefaults in the same app?

2021-04-06 Thread Jack Brindle via Cocoa-dev
I agree with you, to an extent. NSUserDefaults is very good when used as a single-level repository for settings data. When you want to categorize the settings by using collections, it starts to show the same problems that a regular file has, except slightly worse. Collections are saved as an obj

Re: Several different NSUserDefaults in the same app?

2021-04-04 Thread Jack Brindle via Cocoa-dev
e depreciated initWithUser: and added initWithSuiteName: around this same > timeframe. > > >> On Apr 4, 2021, at 12:15 AM, Jack Brindle via Cocoa-dev >> wrote: >> >> Gabriel; >> >> It appears you are trying to get NSUserDefaults to do something that

Re: Several different NSUserDefaults in the same app?

2021-04-03 Thread Jack Brindle via Cocoa-dev
Gabriel; It appears you are trying to get NSUserDefaults to do something that Apple doesn’t want it to do these days. Why not create your own defaults, writing the data to a dictionary that is then written to a file that you save in the ~/Library/Preferences folder, with a name of your choice?

Re: Customizing the Notarization Workflow fails

2020-04-25 Thread Jack Brindle via Cocoa-dev
final product. Once you get the hang of Notarization, you will find it isn’t difficult. Getting there is, however. Jack > On Apr 25, 2020, at 6:23 PM, Jack Brindle via Cocoa-dev > wrote: > > It seems like it would be easier to find the Build directory’s releases > folder a

Re: Customizing the Notarization Workflow fails

2020-04-25 Thread Jack Brindle via Cocoa-dev
It seems like it would be easier to find the Build directory’s releases folder and the find the built product somewhere inside. It’s relation to the Build directory won’t change from build to build. Once you find that, just Notarize it in place. You need to make sure that it is already code/prod

Re: Future of Cocoa

2019-11-21 Thread Jack Brindle via Cocoa-dev
I would add that for those of us developing for the Mac platform, the security sessions have been critical for the last two years. Without a good understanding of the issues discussed in those sessions, I don’t see how a developer's application could run properly on Catalina. I see the WWDC ses

Re: Apple Notary Service returning false "Could not find the RequestUUID"

2019-11-02 Thread Jack Brindle via Cocoa-dev
Jerry; Thanks for updating that info. Your info has helped a lot in my own notarization efforts. The Notarization system consists of two parts - the front end that our scripts communicate with to request takes and get info, and a back-end that actually does the notarization work. When we get t

Re: Scrolling differences when using Trackpad or Mouse-Wheel

2018-06-21 Thread Jack Brindle
- MacBook > Mouse - Apple Keyboard - Dell Hub - MacBook > > Checking the Trace in Instruments reveals that the scrolling via mouse wheel > get processed differently than scrolling on the trackpad. > > - Michael > >> On 21. Jun 2018, at 02:01, Jack Brindle wrote:

Re: Scrolling differences when using Trackpad or Mouse-Wheel

2018-06-20 Thread Jack Brindle
with that method of communications. I’m not saying this is a mouse issue, just trying to make sure it isn’t one. Jack Brindle Logitech Engineering > On Jun 20, 2018, at 4:53 AM, Michael Starke > wrote: > > I'm using a Logitech mouse without any additional drivers instal

Re: Scrolling differences when using Trackpad or Mouse-Wheel

2018-06-19 Thread Jack Brindle
What’s the mouse? It’s not from Apple, so what is it, how is it connected and does it use any software to help it work? Jack > On Jun 19, 2018, at 2:56 AM, Michael Starke > wrote: > > Hi list, > > I'm currently trying to find the bottleneck in my app MacPass that's causing > the scrolling

Re: Crashes inside CFStringDeallocate

2018-05-25 Thread Jack Brindle
Not necessarily. I have never seen a guarantee that the C++ string functions output their data in the exact format that [NSString stringWithCharacters:length:] needs as an input. As you discovered, getting UTF8 from the C++ string does give you proper data for the corresponding NSString creator

Re: Persistent User Defaults

2018-04-24 Thread Jack Brindle
One thing further. The defaults are set in the program, and changes are written to the plist when they first differ from the set defaults. This can be very confusing since many folks expect to see all defaults in the file and are surprised to see only a few. Interestingly it appears that if they

Re: NSLayoutConstraint crash

2018-03-16 Thread Jack Brindle
I would be willing to bet that you are throwing a lot of constraint exceptions without realizing it. When the view is laid out the constraints are evaluated, including the priorities. When a set of constraints has a conflict with another (very easy to do) the priorities come into play. If you se

Re: [ANN] Nursery Framework 1.0.1 (build with Xcode 9) released

2017-10-27 Thread Jack Brindle
. They received many horrified looks as they discussed forking, child died events and so forth. It provided much laughter after they explained what the discussion was all about. Best of luck learning our complex language. And if we can help, just ask! - Jack Brindle > On Oct 27, 2017, at 12:57

Re: Inserting a button into another application's toolbar

2017-09-18 Thread Jack Brindle
Actually, there may be a way. It all depends on exactly where in the menu bar you want to place the menu item. If you want to add it on the right side as a status item, then you need to check out NSStatusBar. This would allow you to add a separate application (more likely a user Agent which can b

Re: NSTouchBar in Carbon

2017-01-01 Thread Jack Brindle
an interesting challenge in our environment, especially without windows or views available. Please let us know how you do it! Jack Brindle > On Dec 30, 2016, at 5:30 AM, Uli Kusterer > wrote: > > On 12 Dec 2016, at 07:22, David M. Cotter wrote: >> My app is mostly C++ (

Re: Anyone recommend Dash?

2015-07-09 Thread Jack Brindle
Way back when (Xcode 3) the doc interface was pretty good. Now its really awful. The web interface is far better. But Dash is even better than that. Dash 2 (and now Dash 3) gives you searchable interface for not just Xcode docs but others as well. Dash 3 extends this, adding archives, and as far

Re: Cheating a synchronous call on the main thread

2015-06-30 Thread Jack Brindle
continuing. Pthreads have been in OS X for a very long time… Now let me repeat. pthread_join is evil, bad, not to be used. There are much better ways of doing things, even in pthreads. And definitely not to be used in the main thread… - Jack Brindle > On Jun 29, 2015, at 2:41 PM, Quincey Mor

Re: NSFontPanel for a modal window

2015-06-14 Thread Jack Brindle
I’’m surprised that no one else has suggested looking at the TextEdit source. It’s available from Apple as a sample… That should be rather revealing. - Jack > On Jun 13, 2015, at 10:00 PM, Kurt Sutter wrote: > > Good point. Yes, I have some changeFont: selectors in some of my classes, but > I

Re: NSPathControl

2015-05-31 Thread Jack Brindle
Oops, not any more. clickedPathComponentCell was deprecated in Yosemite. Instead, look at the URL property. Valid back to 10.5. > On May 27, 2015, at 3:43 PM, Lee Ann Rucker wrote: > > > On May 27, 2015, at 2:55 PM, Jens Alfke wrote: > >> >>> On May 27, 2015, at 2:46 PM, Raglan T. Tiger

Re: Where is my bicycle?

2015-04-06 Thread Jack Brindle
Have you checked the Font you are using to display the character string to see if it contains the bicycle character? If not, you probably won’t get the character you seek. - Jack > On Apr 6, 2015, at 11:15 AM, Gerriet M. Denkmann wrote: > > >> On 7 Apr 2015, at 00:15, Quincey Morris >> wro

Re: get class of a method

2015-02-22 Thread Jack Brindle
Doesn’t [self class] do this? The method is within whatever self is, so it seems appropriate that [self class] would provide what you want. - Jack > On Feb 22, 2015, at 4:41 AM, BareFeetWare > wrote: > > Hi all, > > How can I get the class of a method, at runtime? > > I can get the name of

Re: Application Crashing Under Mavericks, but not Yosemite (Entitlements Issue?)

2014-12-31 Thread Jack Brindle
interesting. - Jack Brindle > On Dec 29, 2014, at 5:06 PM, Roland King wrote: > > >> >> I'm currently trying to set up developer tools on my new, fresh Mavericks >> installation, but there is only one place where containsString: is being >> cal