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: Cocoa framework or Object class to uncompress files

2022-10-24 Thread Marco S Hyman via Cocoa-dev
> > I'm hoping there's a built-in solution or framework that I'm just overlooking. Guess: The Apple Archive framework https://developer.apple.com/documentation/applearchive ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not pos

Re: Indexing broken for one project

2022-02-13 Thread Marco S Hyman via Cocoa-dev
On Feb 13, 2022, at 4:39 PM, Jack Brindle via Cocoa-dev wrote: > > In Monterey, /tmp is now only writeable by root. ??? Does terminal.app have special privs? ~% ls -l /tmp lrwxr-xr-x@ 1 root wheel 11 Feb 6 13:22 /tmp@ -> private/tmp ~% ls -ld /private/tmp drwxrwxrwt 23 root wheel 736 Feb

Re: /Library/Application Support off limits?

2021-04-14 Thread Marco S Hyman via Cocoa-dev
> Our app isn't sandboxed, but when I try to create a "/Library/Application > Support/NewFolder" folder in there I get the following message: > > /*You don't have permission to save the file "NewFolder" in the folder > "Application Support."*/ Yup. You want ~/Library/Application Support/NewF

Re: How to check signature and notarization?

2021-04-12 Thread Marco S Hyman via Cocoa-dev
I don’t know about zip file distribution, but I have both the app AND the dmg that I use for distribution notarized. I create the DMG from a folder containing the notarized app and a link to /Applications then run codesign on the DMG and upload the result to Apple for notarization. Once notar

Re: Question about Info.plist's

2020-08-19 Thread Marco S Hyman via Cocoa-dev
On Aug 19, 2020, at 11:11 AM, Saagar Jha via Cocoa-dev wrote: > > Which file are you modifying? The one in your source directory? Because the > one that goes in the final product doesn’t get copied over until after you’ve > lost most control over the build process (it’s done by Xcode after the

Re: Launching another app with command line arguments

2020-06-20 Thread Marco S Hyman via Cocoa-dev
> On Jun 20, 2020, at 4:31 PM, Gabriel Zachmann wrote: > >> >> If app B can be treated as a sub-process of app A you can use Process. I >> know that argument passing works with Process. > > Sounds good. How can A launch B as its sub-process? (and pass command line > arguments?) > > le

Re: Launching another app with command line arguments

2020-06-20 Thread Marco S Hyman via Cocoa-dev
> On Jun 20, 2020, at 4:16 PM, Gabriel Zachmann wrote: > > So, the new question is: is there any easy way how my app A can launch my app > B > and pass a simple piece of info from A to B, such as a boolean flag or an > integer? If app B can be treated as a sub-process of app A you can use P

Re: Launching another app with command line arguments

2020-06-20 Thread Marco S Hyman via Cocoa-dev
> > That works fine, *except* the command line arguments are not passed along :-( Is your app sandboxed? Arguments are ignored in sandboxed applications. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or mo

Re: Points vs pixels in a bash script

2020-06-08 Thread Marco S Hyman via Cocoa-dev
Using > system_profiler SPDisplaysDataType > I can retrieve the size of a Mac's display in pixels. > > However, the command > > tell application "System Events" to get the size of every window of every > process tell application “Finder” set screen_resolution to bounds of window of deskto

Re: Performance issue on macOS 10.15 obtaining display name for ~/Desktop, ~/Documents, and ~/Downloads

2020-04-23 Thread Marco S Hyman via Cocoa-dev
>> Also weird, why would it phone home for a shell script which has neither >> been stapled nor even code-signed? > I think you answered the question just then… a "shell script which has > neither been stapled nor even code-signed”. Google XProtect & Gatekeeper. 1) The executable part of

Re: Image GPS Properties Question

2020-04-02 Thread Marco S Hyman via Cocoa-dev
Update to what I wrote: > So the data I need is somewhere in the metadata, but CGImage... can’t see it. > This is only reported to be an issue when processing Cannon raw CR3 format > files. FWIW this issue was resolved by the release of macOS 10.15.4. Did not even need to recompile using the

Image GPS Properties Question

2020-03-02 Thread Marco S Hyman via Cocoa-dev
Hello all, Given a URL to an image I currently do this to grab image properties (ignoring error handling to simplify the example code) let imgRef = CGImageSourceCreateWithURL(url as CFURL, nil) let imgProps = CGImageSourceCopyPropertiesAtIndex(imgRef, 0, nil) as NSDictionary? let GPSDictionary

Re: Confusion about screen resolution

2020-02-22 Thread Marco S Hyman via Cocoa-dev
> > But a typographical point is a unit of distance. There are 27 points per > inch. (I.e., a typographical point is 0.0139 inches or 0.353 mm). Transposition typo? There are 72 points/inch. The given inch and mm values are correct if rounded to 3 digits. _

Re: NSDatePicker display format

2020-01-21 Thread Marco S Hyman via Cocoa-dev
On Jan 21, 2020, at 3:04 PM, robmar...@frontiernet.net wrote: > > Have you tried adding a NSDateFormatter to the DatePickerCell (in code or in > the xib) and setting its format string to what you want? There doesn’t seem to be any way to get the DatePickerCell to use the formatter. At least no

Re: NSDatePicker display format

2020-01-21 Thread Marco S Hyman via Cocoa-dev
On Jan 21, 2020, at 3:04 PM, robmar...@frontiernet.net wrote: > > Have you tried adding a NSDateFormatter to the DatePickerCell (in code or in > the xib) and setting its format string to what you want? > > Haven't tried it, but might work... No, I hadn’t. I dragged a DateFormatter over the cel

NSDatePicker display format

2020-01-21 Thread Marco S Hyman via Cocoa-dev
Is there a way to change the date format used by NSDatePicker? The dateValue I’m seeing, for example, is "1/20/2020 1:41:42 PM”. At a minimum I’d like the time displayed in 24 hour mode instead of AM/PM. Ideally I’d like the date to be “:MM:dd HH:mm:ss” because that is how it is used elsew

Re: UIView block-based methods

2019-11-09 Thread Marco S Hyman via Cocoa-dev
> What is this 'block-based animation API’?\ The section of the doc named Animating Views starts with: Use of these methods is discouraged. Use the UIViewPropertyAnimator class to perform animations instead. I’d start looking there. ___ Cocoa-dev m

Re: Thoughts on Cocoa

2019-10-02 Thread Marco S Hyman via Cocoa-dev
On Oct 2, 2019, at 1:15 PM, Sam Ryan via Cocoa-dev wrote: > > It has felt like the support is not there the > last few years, with much of the documentation "archived" and the new > documentation focused on Swift. While the text in the doc window shows me the Swift version I can always click o