Re: Screensavers under macOS 15

2024-10-02 Thread Alex Zavatone via Cocoa-dev
I can update one of my computers to 15 and if you wish to send me the latest copy, I can test for you. Lemme know. Alex Zavatone > On Sep 20, 2024, at 7:12 AM, Gabriel Zachmann via Cocoa-dev > wrote: > > I have received reports that my screensaver is not working under ma

Re: Setting app icon in NSWorkspace

2024-03-22 Thread Alex Zavatone via Cocoa-dev
. Cheers, Alex Zavatone > On Mar 22, 2024, at 8:23 AM, Mark Allan via Cocoa-dev > wrote: > > Hi all, > > I'm trying to offer my users the option (via a pre-defined list in my app's > Preferences) to choose an app icon which shows up in the Dock and the Finder. > &

Re: Xcode interferes with signal handler

2024-01-31 Thread Alex Zavatone via Cocoa-dev
Hi Gabriel. Happy that you’re getting some progress. Did Jens’s reply not explain why it would be interfered with when running in the debugger? > On Jan 31, 2024, at 10:33 AM, Gabriel Zachmann via Cocoa-dev > wrote: > > I have investigated a bit further. > > When I launch my app from lldb (

Re: Xcode interferes with signal handler (was: Sending SIGUSR1 to a process)

2024-01-31 Thread Alex Zavatone via Cocoa-dev
/build_setting_ref.html Hopefully, Jens’s tip will get you what you need! Best, Alex Zavatone > On Jan 31, 2024, at 12:20 AM, Jens Miltner via Cocoa-dev > wrote: > > Xcode intercepts signals in the process being debugged (for good reason). > You can ignore specific signals in Xcode (i.e. pa

Re: Sending SIGUSR1 to a process

2024-01-29 Thread Alex Zavatone via Cocoa-dev
://forums.developer.apple.com/forums/thread/90111 Cheers, Alex Zavatone > On Jan 29, 2024, at 1:06 AM, Gabriel Zachmann via Cocoa-dev > wrote: > > IIRC, one process cannot send a Unix signal to another one. > At least, not any more, and not without special privileges. > > But

Re: Accessibility Settings

2024-01-11 Thread Alex Zavatone via Cocoa-dev
nothing for text and nothing with a 13 in it. Ideally I’d search the entire drive for a mod date of today and locate that file, but I’ll leave that up to you. Good luck. Let us know what you find. Cheers, Alex Zavatone > On Jan 11, 2024, at 10:58 AM, Alex Zavatone via Cocoa-dev > wrote:

Re: Accessibility Settings

2024-01-11 Thread Alex Zavatone via Cocoa-dev
I had to do something like that on iOS a few years back. Let me see if I have a solution for MacOS. Cheers, Alex Zavatone > On Jan 10, 2024, at 10:48 AM, Tom Doan via Cocoa-dev > wrote: > > I'm trying to figure out how to query the value for the > Accessibility---Dis

Re: Avoiding leaks with "initWithCGImage"

2023-08-23 Thread Alex Zavatone via Cocoa-dev
. Cheers, Alex Zavatone Sent from my iPad > On Aug 23, 2023, at 5:48 PM, JPH via Cocoa-dev > wrote: > > Hello friends, > > The enclosed procedure is producing a NSImage from another NSImage, by > cropping in a NSRect. > The resulting sub-Image feeds an imageView in t

Re: Full-screen not working

2023-08-17 Thread Alex Zavatone via Cocoa-dev
Gabe, I wonder if you can manually mess up your pList settings (keep a working copy) to see if this replicates any of the issues you see. Cheers from Windhoek, Alex Zavatone > On Aug 15, 2023, at 8:24 PM, Gabriel Zachmann via Cocoa-dev > wrote: > > I can try that , but I would

Re: Full-screen not working

2023-08-15 Thread Alex Zavatone via Cocoa-dev
I have tested this on 1, 2 and 3 display systems over a month ago. There appears to be a 1/2 hour delay (or so) before it takes over and is full screen. Sorry, I can’t help more at the moment. Greetings from the deepest darkest jungles of suburban Windhoek. Alex Zavatone Sent from my damn

Re: Screensaver options: nothing clickable

2023-08-13 Thread Alex Zavatone via Cocoa-dev
I reported that to you as well if you look at my older replies. Greetings from Etosha. > On Aug 13, 2023, at 8:49 PM, Gabriel Zachmann via Cocoa-dev > wrote: > > One of the users of my screensaver has reported a very funny bug: > my screensaver is working, but when they open the Options panel,

Re: Substitute for kill(2)?

2023-07-25 Thread Alex Zavatone via Cocoa-dev
What if you called a method in the other process and the other process kills itself with a kill? Is kill no longer functional from any process? > On Jul 25, 2023, at 2:49 AM, Gabriel Zachmann via Cocoa-dev > wrote: > > Is there a simple way for one process to send a single signal to another

Re: How do decipher an exception in the log file

2023-07-18 Thread Alex Zavatone via Cocoa-dev
Look in the second line. It’s cratering within setLegacyModelView of your view controller. Then in the 3rd, it’s saying that the index value of the array is invalid, it’s 9223372036854775807. So, it’s trying to set the view and the index is clearly the result of a bad pointer. Gotta run or we

Re: Log file not showing all messages

2023-07-14 Thread Alex Zavatone via Cocoa-dev
I added an internal log file that only keeps the most recent 10,000 lines of logging and then save it internally. There is an option within my old app that lets the user email that to me with the click of a button. It’s been foolproof. Might work for you. Cheers, Alex Zavatone > On Jul

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

2023-07-07 Thread Alex Zavatone via Cocoa-dev
make it quicker and if we can, can we keep doing it until it stops sucking and actually make it good enough?” Cheers and happy Friday, Alex Zavatone > On Jan 15, 2023, at 5:59 PM, James Crate wrote: > > There is a perl program called exiftool that can load and set exif tool

Re: Screensaver running only on one display with a multiple display setup

2023-06-12 Thread Alex Zavatone via Cocoa-dev
I’m seeing it failing on MacOS 10.5.5 on a 3 monitor system and in 13.2.1 on a 2 monitor system when compiled from source. And by “fail”, I mean that it only runs on one display. Alex Zavatone > On Jun 12, 2023, at 7:23 AM, Steven Mills via Cocoa-dev > wrote: > > On Jun 10, 20

Re: NSScreen.screens under multiple displays

2023-06-08 Thread Alex Zavatone via Cocoa-dev
I have a 2 screen system running Ventura and another 3 screen system but not under Ventura. I could build and test for you if you wish. > On Jun 8, 2023, at 11:53 AM, Gabriel Zachmann via Cocoa-dev > wrote: > > In my method > > - (void) viewDidMoveToWindow > > I have these lines of cod

Re: Memory leak in Apple's image handling frameworks ?

2023-05-01 Thread Alex Zavatone via Cocoa-dev
___ 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.c

Re: Memory leak in Apple's image handling frameworks ?

2023-04-30 Thread Alex Zavatone via Cocoa-dev
What I tested was if it matched the Xcode memory pie chart across several apps. I can’t remember what results I got with terminal leaks or heap commands. Add it to one of your programs and give it a shot! Now I’m interested. Cheers, Alex Zavatone > On Apr 30, 2023, at 1:33 PM, Rob Petro

Re: Memory leak in Apple's image handling frameworks ?

2023-04-30 Thread Alex Zavatone via Cocoa-dev
Memory used query method for iOS. https://stackoverflow.com/a/57315975/1058199 // Created by Alex Zavatone on 8/1/19. // class Memory: NSObject { // From Quinn the Eskimo at Apple. // https://forums.developer.apple.com/thread/105088#357415 class func memoryFootprint() -> Fl

Re: Memory leak in Apple's image handling frameworks ?

2023-04-30 Thread Alex Zavatone via Cocoa-dev
could do a video meeting and I could guide you through it. Will reply with the memory querying function. Cheers, Alex Zavatone Sent from my iPhone > On Apr 29, 2023, at 11:15 PM, Rob Petrovec via Cocoa-dev > wrote: > > This sounds like Abandoned Memory, not a leak. Abandoned

Re: OS/X Java native bug

2023-03-19 Thread Alex Zavatone via Cocoa-dev
100 ft view and exhaust the current options before moving pas them. Then there is always the case of, “does anyone else have this working? What are they doing and why does it work if they do?” Cheers, Alex Zavatone Sent from my iPhone > On 19 Mar 2023, at 9:38, Alex Zavatone via Cocoa-

Re: OS/X Java native bug

2023-03-19 Thread Alex Zavatone via Cocoa-dev
oversimplification? Cheers, Alex Zavatone Sent from my iPhone > On 17 Mar 2023, at 7:21, Michael Hall via Cocoa-dev > wrote: > >  > >> On Mar 17, 2023, at 7:49 AM, Alan Snyder wrote: >> >> block() means invoke the block >> >>>> On Mar 17, 2023,

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

2023-01-07 Thread Alex Zavatone via Cocoa-dev
them once you see where the bottlenecks are. I wonder if there is a method to load the EXIF data out of the files without opening them completely. That would seem like the ideal approach. Cheers, Alex Zavatone > On Jan 7, 2023, at 12:36 PM, Gabriel Zachmann wrote: > > Hi Alex, hi

Re: setting Finder search input

2022-12-13 Thread Alex Zavatone via Cocoa-dev
Open a new window Press command F Type text. Of course, you’d need to request GUI Scripting control. You could also just have the compiled script within your bundle and call it. Just compile it using osacompile. osacompile -o output.app input.applescript Cheers, Alex Zavatone > On Dec

Re: setting Finder search input

2022-12-13 Thread Alex Zavatone via Cocoa-dev
Is it reasonable to use an AppleScript to do it? Back in the olden days, I used AS-OC to automate Illustrator, Photoshop, the Finder, TextEdit and ImageOptim all in one compiled application. AS-OC is AppleScript-Objective-C Cheers, Alex Zavatone > On Dec 13, 2022, at 2:22 PM, Rob Petro

Re: Set focus on NSTextField in an NSMenuItem

2022-10-18 Thread Alex Zavatone via Cocoa-dev
I am speaking from an iOS perspective but, is there something like makeFirstResponder? Sent from my iPhone > On Oct 18, 2022, at 6:44 PM, Dragan Milić via Cocoa-dev > wrote: > > Hi all, > > I’m developing a tiny application, which has an NSStatusItem instance with a > menu. One for the men

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

2022-08-18 Thread Alex Zavatone via Cocoa-dev
u made it yourself, how did you > configure it? > That was ~14 years ago. I’m just sharing what I remember. In my case, we wanted the threads to read and then perform actions on the images. Of course, reading images from media will be I/O bound from the device they’re being read from.

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

2022-08-17 Thread Alex Zavatone via Cocoa-dev
free. And Kornel is a great guy for making this available if this matters to you. Here’s the link. https://imageoptim.com/mac Cheers, Alex Zavatone > On Aug 17, 2022, at 1:32 PM, James Crate via Cocoa-dev > wrote: > > I have an app that does some image processing, and when I

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

2022-08-16 Thread Alex Zavatone via Cocoa-dev
. They do all the heavy lifting for you are are easy to implement. Cheers. Alex Zavatone > On Aug 16, 2022, at 2:37 PM, Jack Brindle via Cocoa-dev > wrote: > > Instead of using NSOperationQueue, I would use GCD to handle the tasks. > Create a new Concurrent queue > (dis

Re: Mystery interference with AirPlay

2022-06-17 Thread Alex Zavatone via Cocoa-dev
Hi. I was able to test this yesterday and while streaming from my 2012 MacBook to my Apple TV, and launching Gabriel’s app, there was no interruption in airplay streaming. Nice little app. Cheers, Alex Zavatone > On Jun 16, 2022, at 10:06 AM, Alex Zavatone via Cocoa-dev > wrote: >

Re: Mystery interference with AirPlay

2022-06-16 Thread Alex Zavatone via Cocoa-dev
I’ll email you offline with a screenshot from my phone. > On Jun 16, 2022, at 8:57 AM, Gabriel Zachmann wrote: > > I must be doing something pretty stupid: I don't see all those buttons, > neither on my iPhone nor on my Macbook Pro. > > I tried these instructions: > https://www.macrumors.com/

Re: Mystery interference with AirPlay

2022-06-16 Thread Alex Zavatone via Cocoa-dev
plicate the issue your user is facing, Then once you reproduced it, start reducing functionality until it starts working. Alex Zavatone ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to

Re: Mystery interference with AirPlay

2022-06-16 Thread Alex Zavatone via Cocoa-dev
s and some don’t. My 27” iMac does, my 2015 MBP doesn’t. I think that’s what you mean by “my Mac doesn’t have Airplay.” You’ll need to find a way to replicate it and then start turning off functionality and see when it stops. Good luck. Alex Zavatone > On Jun 16, 2022, at 3:29 AM, Gabriel

Re: Mystery interference with AirPlay

2022-06-15 Thread Alex Zavatone via Cocoa-dev
My guess is that your app is playing sound which will stop any currently playnig airplay audio. If that is the case, I’m not sure if there is an in app setting to not interrupt airplay audio. Alex Zavatone > On Jun 15, 2022, at 3:44 AM, Gabriel Zachmann via Cocoa-dev > wrote: >

Re: Cocoa-dev Digest, Vol 19, Issue 24

2022-04-04 Thread Alex Zavatone via Cocoa-dev
Odd that after sending that, I got an unsubscribe request from 71.231.150.21 which is in Seattle. Do other people get these? Thanks, Alex Zavatone > On Apr 4, 2022, at 2:53 PM, Alex Zavatone via Cocoa-dev > wrote: > > Some disassemblers I’ve used are Hopper and there is also IDA

Re: Cocoa-dev Digest, Vol 19, Issue 24

2022-04-04 Thread Alex Zavatone via Cocoa-dev
Some disassemblers I’ve used are Hopper and there is also IDA. Just in case you need a spare. Cheers, Alex Zavatone > On Apr 4, 2022, at 11:03 AM, Michal L. Wright via Cocoa-dev > wrote: > > On Apr 4, 2022, at 08:45 , Richard Charles wrote: >> >> >>> O

Re: Objective-C selector names in disassembly

2022-04-03 Thread Alex Zavatone via Cocoa-dev
Yes. Are you disassembling a release version or a debug version? > On Apr 3, 2022, at 2:36 PM, Martin Wierschin via Cocoa-dev > wrote: > > Hi everyone, > > I have a question that's been an irritating me for a long time. Is there any > way to get Xcode (or other tools) to show Objective-C sel

Re: Lock screen ?

2022-03-27 Thread Alex Zavatone via Cocoa-dev
How about a little more than that? Hmm? > On Mar 27, 2022, at 1:18 PM, Mike Bellerby via Cocoa-dev > wrote: > > Yes it’s possible. > > Sent from my iPhone > >> On 26 Mar 2022, at 12:44 pm, Gabriel Zachmann via Cocoa-dev >> wrote: >> >> Is it possible for a macOS app to lock the screen w

Re: Building for 10.12

2022-03-20 Thread Alex Zavatone via Cocoa-dev
Isn’t it as simple as setting the minimum build version to 10.12? > On Mar 18, 2022, at 9:47 AM, Gabriel Zachmann via Cocoa-dev > wrote: > > I am trying to build my app for macOS 10.12 (Sierra). > > First of all, is it correct that I need to build it for "My Mac" , not do a > niversal build (

Re: Indexing broken for one project

2022-02-14 Thread Alex Zavatone via Cocoa-dev
using the default location for derived data, which is ~/Library/Developer/Xcode/DerivedData. Just my wild assed guess & inclination. Cheers, Alex Zavatone > On Feb 14, 2022, at 7:29 AM, Gabriel Zachmann via Cocoa-dev > wrote: > > >> >> In Monterey, /tmp i

Re: Indexing broken for one project

2022-02-13 Thread Alex Zavatone via Cocoa-dev
> On Feb 13, 2022, at 4:09 PM, Gabriel Zachmann wrote: > > The Derived Data directory is set to /tmp (i have had that setting for years). Oh, don’t do that. Glad you’ve got it fixed. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please d

Re: Indexing broken for one project

2022-02-13 Thread Alex Zavatone via Cocoa-dev
This seems to indicate an error somewhere in the Xcode prefs. Try using it in that new user is aways am option. Or copy the project back into another folder and see if the original user can open the project from the other folder. Just the two guesses I have at the moment. Cheers, Alex

Re: Indexing broken for one project

2022-02-12 Thread Alex Zavatone via Cocoa-dev
Here’s an idea. Create a new user on your Mac. Open the project from that new user and see if it indexes. It worked fine on my Mac Good luck. > On Feb 12, 2022, at 8:24 AM, Gabriel Zachmann via Cocoa-dev > wrote: > > Here is another attempt at getting to the root of the indexer problem I a

Re: Indexing broken for one project

2022-02-06 Thread Alex Zavatone via Cocoa-dev
13? Let me know. Cheers, Alex Zavatone > On Feb 6, 2022, at 12:18 PM, Rob Petrovec via Cocoa-dev > wrote: > > Quit Xcode, delete the DerivedData directory for your project and re-open > your project. That should trigger a re-index and a full rebuild of your > product

Re: iOS UINavigation background removal.

2022-01-28 Thread Alex Zavatone via Cocoa-dev
?.navigationBar.setBackgroundImage(UIImage(), for: .default) Sadly, each build takes 2 minutes (thanks Swift!) even if I’m only changing 1 line, so it’s not time effective to figure out exactly what is. Fun times. Cheers, Alex Zavatone > On Jan 28, 2022, at 2:02 PM, David Duncan wrote: > >

Re: iOS UINavigation background removal.

2022-01-28 Thread Alex Zavatone via Cocoa-dev
?.navigationBar.setBackgroundImage(UIImage(), for: .default) Thanks again David. You’re on my Christmas list. Alex Zavatone > On Jan 28, 2022, at 1:30 PM, David Duncan wrote: > > UINavigationBarAppearance *appearance = [UINavigationBarAppearance new]; > [appearance configureWithTranspare

iOS UINavigation background removal.

2022-01-28 Thread Alex Zavatone via Cocoa-dev
, Alex Zavatone ___ 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

Stupid accessibility question - Invert colors

2021-10-25 Thread Alex Zavatone via Cocoa-dev
Am I correct in assuming that aside from ignoring invert colors in Smart invert, that there is no way of controlling the colors that either Classic Invert or Smart Invert actually invert to? Forever indebted for helpful answers. Fun times, fun times. - Alex Zavatone

Re: Accessibility UIContentSizeCategory or current accessibility font setting

2021-10-18 Thread Alex Zavatone via Cocoa-dev
s, but wasn’t sure if it’s issued when the font first appears, because there is no change. Thanks Alex Zavatone ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the mode

Re: Accessibility UIContentSizeCategory or current accessibility font setting

2021-10-17 Thread Alex Zavatone via Cocoa-dev
If anyone would find this cheap hack useful to check what the current accessibility dynamic text size is set to, here you go. Still, I’d love to know the actual command so that I can remove this. Cheers, Alex Zavatone import Foundation import UIKit // Use like so. // let myString

Accessibility UIContentSizeCategory or current accessibility font setting

2021-10-17 Thread Alex Zavatone via Cocoa-dev
UIContentSizeCategory exists, but no idea how to see what the current value is. Is anyone aware how to do this? TIA. Alex Zavatone ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list

Re: Accessibility - Smart Invert and images.

2021-09-29 Thread Alex Zavatone via Cocoa-dev
lt;https://developer.apple.com/documentation/swiftui/form/accessibilityignoresinvertcolors(_:)>> > > Matt > >> On Sep 29, 2021, at 12:20 PM, Alex Zavatone via Cocoa-dev >> mailto:cocoa-dev@lists.apple.com>> wrote: >> >> According to the docs, Smart Invert on iOS isn’t

Accessibility - Smart Invert and images.

2021-09-29 Thread Alex Zavatone via Cocoa-dev
with this? Thanks in advance. Alex Zavatone ___ 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

Re: Sandboxing question regarding ~/Pictures

2021-09-27 Thread Alex Zavatone via Cocoa-dev
Any chance you can create a simple case and see if it fails or succeeds? > On Sep 27, 2021, at 9:22 AM, Gabriel Zachmann via Cocoa-dev > wrote: > > Yes, my app does have that entitlement: > > com.apple.security.app-sandbox > > com.apple.security.application-groups > >

iOS key or command key equivalent for testing in the Simulator.

2021-09-08 Thread Alex Zavatone via Cocoa-dev
pretty clueless on is how to globally listen for a key press in iOS across all screens of the app. Does anyone have an idea how yo go about this? Thanks in advance, Alex Zavatone ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

Quick and dirty alignment grid.

2021-09-08 Thread Alex Zavatone via Cocoa-dev
//self.view.addSubview(gridView) It’s easy to change to a 5x5 grid or 10x10 grid. Here’s what it looks like. If anyone wants, I’ll forward the class or put it up on gitHub. Hope someone finds this useful. Alex Zavatone ___ Cocoa-dev mailing list (Cocoa-dev

Re: Accessing a property of a view via its controller doesn't work

2021-09-06 Thread Alex Zavatone via Cocoa-dev
ng about this, but I had overlooked it, due to several > other warnings always being there.) > > Sorry for bothering you all. > Forgot an @synthesize? We haven’t needed to do that since Xcode 4.2. Do you know why you needed to do that? It seems pretty much like an edge case.

Re: Accessing a property of a view via its controller doesn't work

2021-09-04 Thread Alex Zavatone via Cocoa-dev
I don’t know why this is happening, but I’ll often populate a variable if I know it from another class and can’t find it from another. By that, I mean if you know the window in the class that opens the preferences, get it and set it in the MasterViewController. > On Sep 4, 2021, at 12:26 PM

Re: Getting notification when Facetime call comes in

2021-08-24 Thread Alex Zavatone via Cocoa-dev
Why not build your own test bed for the notifications that come in and decide which ones you want to respond to? Cheers, Alex Zavatone > On Aug 24, 2021, at 10:52 AM, Gabriel Zachmann via Cocoa-dev > wrote: > > Thanks a lot for your response! > >> Not sure if that wo

Re: Best way to grey out a status item's image?

2021-08-22 Thread Alex Zavatone via Cocoa-dev
I have some old Objective-C that makes a new image that is desaturated. You could also try tinting it with gray. Let me try to dig up my old image utils. Alex Zavatone > On Aug 22, 2021, at 11:25 AM, Gabriel Zachmann via Cocoa-dev > wrote: > > My status item uses an image as ic

Re: How to distinguish between different MS Teams statuses

2021-07-22 Thread Alex Zavatone via Cocoa-dev
It seems that it would be tough. How can you check if it’s happening in a browser? And what if I move the window to the other monitor? > On Jul 22, 2021, at 12:45 PM, Gabriel Zachmann via Cocoa-dev > wrote: > > My questions is quite simple: > is it possible to determine - in my own app - whet

Re: Simplest way to produce "tick" system sound?

2021-06-11 Thread Alex Zavatone via Cocoa-dev
There are some built in sounds that I remember. You might want want to look for them. > On Jun 11, 2021, at 8:08 AM, Mike Abdullah via Cocoa-dev > wrote: > > NSBeep() ? > > Mike. > > Sent from my iPhone > >> On 11 Jun 2021, at 13:59, Gabriel Zachmann via Cocoa-dev >> wrote: >> >> Sor

Multiple shadows in iOS on a view.

2021-06-10 Thread Alex Zavatone via Cocoa-dev
external shadows which is why I’m trying for multiple views/layers. Thanks in advance. Alex Zavatone Source: extension (UIView) { func addShadowToView( color: UIColor?, alpha: CGFloat, x: CGFloat, y: CGFloat, blur: CGFloat, spread: CGFloat

Does anyone have any experience with positioning items in an iOS UITabBar?

2021-06-04 Thread Alex Zavatone via Cocoa-dev
We’re trying to add extra space to the left and right of a UITabBar, but having no luck at all. Have any of you messed with this? Thanks in advance on any tips. Alex Zavatone ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

Re: How do you handle reading a plist if it may be an array or a dictionary?

2021-05-09 Thread Alex Zavatone via Cocoa-dev
I can still make it generic enough to load it into the app and store it with the help that everyone’s shared with me today. Cheers all! Alex Zavatone > >> If you are controlling what the >> configuration plist is, make it a dictionary at the top level with three >> keys

Re: How do you handle reading a plist if it may be an array or a dictionary?

2021-05-09 Thread Alex Zavatone via Cocoa-dev
team realizes that we are adding security check boxes that we can check off. Very nice. I like this a lot. Where should I send the check? Cheers, Alex Zavatone ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: How do you handle reading a plist if it may be an array or a dictionary?

2021-05-09 Thread Alex Zavatone via Cocoa-dev
; ... > } > else if([object isKindOfClass:NSDitctionary.class]) > { > ... > } > ... > Well, hell! There we go. Thanks Gerd! That’s great! Best, Alex Zavatone > > >> On May 8, 2021, at 19:32, Alex Zavatone via Cocoa-dev >> wrote: >>

Re: How do you handle reading a plist if it may be an array or a dictionary?

2021-05-09 Thread Alex Zavatone via Cocoa-dev
> On May 8, 2021, at 7:42 PM, Ben Kennedy wrote: > > >> On 8 May 2021, at 5:32 pm, Alex Zavatone wrote: >> >> Well, what I’m not sure about are how to store the results internally. Do I >> declare both an NSArray and an NSDictionary and check to see w

Re: How do you handle reading a plist if it may be an array or a dictionary?

2021-05-08 Thread Alex Zavatone via Cocoa-dev
error:(out NSError <https://developer.apple.com/documentation/foundation/nserror> * _Nullable *)error; OK. So once I get an NSData object, then I need to decode it and see if it’s an array or dictionary, which ends up being the same problem I already have. So, what would be the nex

How do you handle reading a plist if it may be an array or a dictionary?

2021-05-08 Thread Alex Zavatone via Cocoa-dev
dictionaryWithContentsOfFile:filePath]]; In some cases, I want the plist to be a dictionary. In others, I want it to be an array. How would anyone recommend to make this a generic method to that could handle if the contents of the plist was an array or a dictionary? Thanks in advance. Alex Zavatone

Re: iOS, handling communicating to a server with a "Not Trusted" SSL cert.

2021-04-22 Thread Alex Zavatone via Cocoa-dev
. Hopefully, this will also help out others who will run into this. Best, and thanks again. Alex Zavatone > On Apr 20, 2021, at 3:32 PM, Alex Zavatone via Cocoa-dev > wrote: > > Thanks Matt. A world of good information in there. > > One thing that’s odd though is that we’r

Re: iOS, handling communicating to a server with a "Not Trusted" SSL cert.

2021-04-20 Thread Alex Zavatone via Cocoa-dev
be bypassed, but the error -1202 is still being caught and the error of “The certificate for this server is invalid” still gets caught in a navigation error on the web delegate. Any ideas? Thanks in advance, Alex Zavatone > On Apr 18, 2021, at 11:54 AM, Matt Eaton wrote: > >>

iOS, handling communicating to a server with a "Not Trusted" SSL cert.

2021-04-17 Thread Alex Zavatone via Cocoa-dev
get these announcements from Apple in emails? Am I the only person who is constantly surprised by these new policies? Thanks in advance. Alex Zavatone ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or

Re: WKWebView rejecting keyboard input

2021-04-15 Thread Alex Zavatone via Cocoa-dev
king sample and it still doesn’t work. Have you tried that yet? Let us know. Alex Zavatone > On Apr 15, 2021, at 9:42 AM, Robert Walsh via Cocoa-dev > wrote: > > I have an Objective-C application that creates a WKWebView to collect form > input. The form has a label, an inp

Re: Scroller and not apple's mouse

2021-04-13 Thread Alex Zavatone via Cocoa-dev
And WHICH non-Apple mice are you using? Sent from my iPhone > On Apr 13, 2021, at 8:44 AM, Alex Zavatone wrote: > > Please show your code. Otherwise, we have little to go on. > > Sent from my iPhone > >> On Apr 13, 2021, at 2:41 AM, Allan Odgaard via Cocoa-dev >

Re: Scroller and not apple's mouse

2021-04-13 Thread Alex Zavatone via Cocoa-dev
Please show your code. Otherwise, we have little to go on. Sent from my iPhone > On Apr 13, 2021, at 2:41 AM, Allan Odgaard via Cocoa-dev > wrote: > > Probably two things relevant here. > > One is General in system preferences which look like this: > > ![](cid:2C16BC1B-F302-426F-9F6A-665F5

Re: Scroller and not apple's mouse

2021-04-12 Thread Alex Zavatone via Cocoa-dev
What are you trying to do? Which platform is this for? Which language are you using? Regards, Alex Zavatone > On Apr 12, 2021, at 2:30 AM, IOS NACSPORT via Cocoa-dev > wrote: > > Hi, > > I don't kown is the correct place, In a NSScroller, when I conect the > e

Re: Several different NSUserDefaults in the same app?

2021-04-04 Thread Alex Zavatone via Cocoa-dev
And if you want a nice simple HMAC256 encoding class to make the results securer if you want, I’ll happily toss one your way. > On Apr 4, 2021, at 2:22 PM, Gabriel Zachmann via Cocoa-dev > wrote: > > >> >> It appears you are trying to get NSUserDefaults to do something that Apple >> doesn?t

Re: Several different NSUserDefaults in the same app?

2021-04-03 Thread Alex Zavatone via Cocoa-dev
//developer.apple.com/documentation/foundation/nsdate>, NSArray <https://developer.apple.com/documentation/foundation/nsarray>, or NSDictionary <https://developer.apple.com/documentation/foundation/nsdictionary>. Am I missing something here? Alex Zavatone > On Apr 2, 2021, at

Re: Bug reporting again.

2020-11-22 Thread Alex Zavatone via Cocoa-dev
> On Nov 22, 2020, at 3:08 PM, Ben Kennedy wrote: > > >> On 22 Nov 2020, at 12:45 pm, Alex Zavatone via Cocoa-dev >> wrote: >> >> I’ve found a bug in Swift’s loadView for UIViewController on iOS that I’d >> like to report. Swift.org tells us t

Bug reporting again.

2020-11-22 Thread Alex Zavatone via Cocoa-dev
how can I report this? Thanks in advance. Alex Zavatone ___ 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

Re: Keyboard woes

2020-11-17 Thread Alex Zavatone via Cocoa-dev
; > -Laurent. > -- > Laurent Daudelin > laur...@nemesys-soft.com > Skype: LaurentDaudelin > Logiciels Némésys Software > http://www.neme

Re: Keyboard woes

2020-11-17 Thread Alex Zavatone via Cocoa-dev
Which version of Xcode and iOS? Is it in a Simulator, on the device or both? > On Nov 17, 2020, at 6:12 PM, Laurent Daudelin via Cocoa-dev > wrote: > > Anybody knows why, all of a sudden, when the keyboard will appear when > editing a UITextField or a UITextView, the entire screen seems to fr

Re: Missing log output

2020-11-12 Thread Alex Zavatone via Cocoa-dev
o, I arbitrarily limited >> each file to 10,000 lines of text when writing to them, trimming the oldest >> line if the file length was > 10,000 lines. > > Would there be an easy way to do this? Yeah. I’ll look up the code now. Cheers. Alex Zavatone

Re: Missing log output

2020-11-12 Thread Alex Zavatone via Cocoa-dev
be encrypted? To get around this, I just made sure not to log any PII and used a lookup to get any special info. Just some background info on the thought process that was behind several of the logging that I put in place over the years. Cheers. Alex Zavatone > On Nov 9, 2020, at 3:23 PM, G

Re: Missing log output

2020-11-10 Thread Alex Zavatone via Cocoa-dev
In the approaches that I used, I logged to a specific file so that I can simply get that file and send that one. On iOS, it was simply getting the file from the docs folder and either using a mailto: URL or using the MFMailComposeViewController. I don’t know if you’re on iOS or MacOS. The

Re: Missing log output

2020-11-09 Thread Alex Zavatone via Cocoa-dev
up a predicate on the name of your app and return the text that is a log message from your app. If you want, you can also filter on a timestamp within now to n weeks or months back. Cheers. > On Nov 9, 2020, at 5:09 PM, Alex Zavatone via Cocoa-dev > wrote: > > I did something

Re: Missing log output

2020-11-09 Thread Alex Zavatone via Cocoa-dev
also allowed me to build a QA screen where I could enable tests and look at states of important objects in the running app. I can send you the code if you want once I find it. Let me know. Alex Zavatone > On Nov 9, 2020, at 3:23 PM, Gabriel Zachmann via Cocoa-dev > wrote: > > &g

Re: NSScrollView's custom content inset

2020-11-05 Thread Alex Zavatone via Cocoa-dev
Care to post a screenshot of what you expect and what’s happening? Cheers. Alex Zavatone > On Nov 5, 2020, at 1:28 PM, Dragan Milić via Cocoa-dev > wrote: > > Hi all, > > What would be the best approach to set custom insets of the contentView > (NSClipView) of a NSSc

Re: Scaling a UIImage

2020-11-04 Thread Alex Zavatone via Cocoa-dev
which ones you might want and I can send them to you offlist. Cheers, Alex Zavatone > On Nov 4, 2020, at 5:10 PM, Carl Hoefs wrote: > > Thanks for the UIImage category resizing methods! They are quite useful. > > -Carl > >> On Nov 4, 2020, at 2:17 PM, Alex Zavaton

Re: Scaling a UIImage

2020-11-04 Thread Alex Zavatone via Cocoa-dev
Sorry for the delay. I hope these do what you need. Of course you’ll need to add checks to make sure that you’re not dividing by zero or nil. // Alex Zavatone 4/2/16. + (UIImage *)imageWithImage:(UIImage *)image scaledToHeight:(CGFloat)newHeight { CGFloat ratio = newHeight

Re: Scaling a UIImage

2020-11-02 Thread Alex Zavatone via Cocoa-dev
I’lll dig up a utility class that I made for UIImage that has this as well as others. Cheers. > On Nov 2, 2020, at 4:59 PM, Carl Hoefs via Cocoa-dev > wrote: > > How can I correctly scale a UIImage from 3264x2448 down to 640x480 pixels? > > > I have an iOS app that interacts with a macOS se

Re: How to parse a log file

2020-10-26 Thread Alex Zavatone via Cocoa-dev
If you upload your build (iOS) to the iTunes connect, I do believe that the dSym goes up as well. Look at the build script for Crashlytics. It makes sure to upload your dSyms and does the symbolicating for iOS apps. The process already exists with these and other crash tracking tools. It’s pr

Re: How to parse a log file

2020-10-26 Thread Alex Zavatone via Cocoa-dev
/diagnosing_issues_using_crash_reports_and_device_logs/adding_identifiable_symbol_names_to_a_crash_report?language=objc Alex Zavatone > On Oct 26, 2020, at 5:19 PM, Jens Alfke via Cocoa-dev > wrote: > > > >> On Oct 26, 2020, at 3:01 PM, Gabriel Zachmann via Cocoa-dev >> wrote: >> >>

Re: How to parse a log file

2020-10-26 Thread Alex Zavatone via Cocoa-dev
myself. Or use PayPal. : D I hope this is a correct explanation of how Gabriel got to the answer he mentioned. Alex Zavatone > On Oct 26, 2020, at 5:01 PM, Gabriel Zachmann via Cocoa-dev > wrote: > > From a user, I received a log file that contains an error (see below) > and a

Re: Throttling drawing to vertical refresh

2020-10-23 Thread Alex Zavatone via Cocoa-dev
wrote: > > The problem with that approach is that I'd need to find out the monitor's > refresh rate in order to calculate "nextUpdateTime" and I'm not sure if I can > get this information from all monitors reliably. > > On 19.10.2020 at 00:09 Alex Zavat

Re: Throttling drawing to vertical refresh

2020-10-23 Thread Alex Zavatone via Cocoa-dev
27;d need to find out the monitor's > refresh rate in order to calculate "nextUpdateTime" and I'm not sure if I can > get this information from all monitors reliably. > > On 19.10.2020 at 00:09 Alex Zavatone wrote: > >> It shouldn’t be too hard to

Re: Throttling drawing to vertical refresh

2020-10-18 Thread Alex Zavatone via Cocoa-dev
It shouldn’t be too hard to roll your own simply based on milliseconds of a timer. Even a simple if (myMilliseconds > nextUpdateTime) { [updateObject doThatUpdate]; nextUpdateTime = myMilliseconds + msThrottle; } lets you get a basic throttle. Cheers, Alex Zavatone >

Re: Rotating NSTextField 90 degrees

2020-09-24 Thread Alex Zavatone via Cocoa-dev
http://digerati-illuminatus.blogspot.com/2009/09/how-do-you-rotate-nsbutton-nstextfield.html > On Sep 24, 2020, at 11:09 PM, Carl Hoefs via Cocoa-dev > wrote: > > In my MacOS app I need to display some vertical text (normal text rotated 90 > degrees counterclockwise). > > I don't see anythi

  1   2   3   4   5   6   7   8   9   10   >