Re: Math question

2017-01-24 Thread Saagar Jha
Not completely sure if this is what you want, but I think your “scale” would be: scale = (distance - minDistance) / (maxDistance - minDistance) * (maxScale - minScale) + minScale In this case, scale = (distance - 100) / 100 * 2 + 1 Saagar Jha > On Jan 24, 2017, at 10:45 AM, Eric E. Dole

Re: Is it possible to set an NSTableView cell background color?

2017-02-22 Thread Saagar Jha
Well, assuming you have a NSTableCellView, you can set its background color using its layer. For example: cell.layer.backgroundColor = NSColor.black.cgColor Saagar Jha > On Feb 22, 2017, at 16:14, David Delmonte <ddelmo...@mac.com> wrote: > > Hi all, I have a table that has rec

Re: No prompt for Location Services

2017-02-14 Thread Saagar Jha
You may have already done this, but you’ll need to call CLLocationManager’s requestAlwaysAuthorization() method for the prompt. Saagar Jha > On Feb 14, 2017, at 10:01 AM, Laurent Daudelin <laur...@nemesys-soft.com> > wrote: > > Adding features to an app under iOS 10 th

Re: making a video from still frames that don't change that often plus audio

2017-01-15 Thread Saagar Jha
The 8 minute limitation is for the time the user’s choice is remembered for the authorization prompt, is it not? Is there a limit for the actual recording as well? Saagar Jha > On Jan 15, 2017, at 9:22 AM, davel...@mac.com wrote: > > I have an iOS presentation app > (https://itun

Re: On NSIncrementalStore UUID Uniqueness

2017-01-10 Thread Saagar Jha
Small quibble: UUIDs are not guaranteed to be unique. It's just extremely likely they will be, and they be sufficient for almost all applications, including this one. Saagar Jha > On Jan 10, 2017, at 2:00 PM, Jean-Daniel <mail...@xenonium.com> wrote: > > UUID means Uni

Re: Official sidebar?

2017-03-26 Thread Saagar Jha
Yes, there is an API for them; it’s part of NSWindow <https://developer.apple.com/reference/appkit/nswindow>. The basic tabbing is done by default, but there is the option to turn it on/off, get a list of tabbed windows, and manually add one to the list. Saagar Jha > On Mar 25, 2017,

Re: Can't use +initialize, now what?

2017-03-30 Thread Saagar Jha
+1 to this idea as well. This works for cases where stuff like awakeFromNib and didFinishLaunching aren’t available, like plugins. Saagar Jha > On Mar 30, 2017, at 03:39, Jonathan Hull <jh...@gbis.com> wrote: > > >> On Mar 29, 2017, at 4:24 PM, Charles Srstka <cocoa..

Re: programmatically tell when spotlight/mds is indexing

2017-03-23 Thread Saagar Jha
I couldn’t find a public API, but Metadata.framework defines _MDConfigCopyStoreInformation(NSString *path). It returns an dictionary containing the key “CurrentlyScanning”, which you might find useful. Saagar Jha > On Mar 18, 2017, at 09:37, sqwarqDev <sqwarq...@icloud.com&

Re: Official sidebar?

2017-03-25 Thread Saagar Jha
Nothing, if I remember correctly. Cocoa should handle window tabs for you. Saagar Jha > On Mar 25, 2017, at 07:49, Daryle Walker <dary...@mac.com> wrote: > > Testing out my app. Finally noticed the new "Show Tab Bar" View menu item. > The menu also handl

Re: UITextField width of UIAlertController -addTextFieldWithConfigurationHandler:

2017-03-20 Thread Saagar Jha
I haven’t tested this, but have you tried calling [self layoutIfNeeded] in the completion block of [self presentViewController:animated:completion]? Saagar Jha > On Mar 20, 2017, at 16:09, Carl Hoefs <newsli...@autonomy.caltech.edu> wrote: > > iOS 10.2.1 > > I'm us

Re: UITextField width of UIAlertController -addTextFieldWithConfigurationHandler:

2017-03-21 Thread Saagar Jha
That should be lot easier; just set yourself as the text field’s delegate and override textFieldShouldBeginEditing. Saagar Jha > On Mar 21, 2017, at 12:24, Carl Hoefs <newsli...@autonomy.caltech.edu> wrote: > > Alternately, is there a way to configure the alert to d

Re: ncurses type wrapper for NStextview

2017-03-06 Thread Saagar Jha
:) <https://developer.apple.com/reference/foundation/nsstring/1533109-draw>. Saagar Jha > On Mar 6, 2017, at 13:43, Julie Porter <jpor...@delectra.com> wrote: > > It has been a while since I asked anything here. Most of the scripting I do > is in PostScript using the

Re: Adding a watchOS complication to an existing project?

2017-03-04 Thread Saagar Jha
I remember doing this around a year ago, but IIRC there wasn’t an easy way to do this. I think I created a new extension with a complication and copy/pasted stuff from the new target. Saagar Jha > On Mar 3, 2017, at 07:08, Eric E. Dolecki <edole...@gmail.com> wrote: > > Every

Re: Who owns a child view controller?

2017-07-14 Thread Saagar Jha
; deeper understanding and it’s hard to find clear explanations. > > > > Jeremy > > > > > > > > > > ___ > > > > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Re: [webkit-dev] How to display new MIME types?

2017-07-20 Thread Saagar Jha
I remember asking one of the WebKit engineers a similar question. Her response was that NPAPI was basically deprecated, and she suggested writing a plugin in that intercepted links and displayed its own UI when necessary. Saagar Jha > On Jul 20, 2017, at 15:50, Daryle Walker <dary...@m

Re: [webkit-dev] How to display new MIME types?

2017-07-21 Thread Saagar Jha
Sorry, I meant extension–the JavaScript (and Swift?)-based ones that Safari currently supports. Saagar Jha > On Jul 20, 2017, at 17:41, Daryle Walker <dary...@mac.com> wrote: > > >> On Jul 20, 2017, at 7:38 PM, Saagar Jha <saa...@saagarjha.com> wrote: &

Re: iOS TableView moving down

2017-04-28 Thread Saagar Jha
Saagar Jha > On Apr 28, 2017, at 20:22, Gerriet M. Denkmann <gerri...@icloud.com> wrote: > >> >> On 23 Apr 2017, at 14:45, Quincey Morris >> <quinceymor...@rivergatesoftware.com> wrote: >> >> On Apr 22, 2017, at 23:55 , Gerriet M. Denkmann <

Re: scrolling woes

2017-05-20 Thread Saagar Jha
I haven’t seen your xib files, so this is just a guess, but here it goes: Saagar Jha > On May 20, 2017, at 06:00, J.E. Schotsman <jesc...@xs4all.nl> wrote: > > Hello, > > I had a text field within a tab view item whose text was getting too large. > So I embedded it in

Re: Auto Layout Question

2017-05-24 Thread Saagar Jha
Could you attach a screenshot? You got cut off in the middle, so it’s hard to fully understand how the sizes relate. Saagar Jha > On May 24, 2017, at 08:52, Dave <d...@looktowindward.com> wrote: > > iOS Project. > > Hi, > > I’m trying to do something with auto lay

Re: bare bones app crashing, is it a code signing issue?

2017-10-13 Thread Saagar Jha
Saagar Jha > On Oct 12, 2017, at 20:55, Navneet Kumar <navnee...@me.com> wrote: > > Hi, > I have MacOS High Sierra and Xcode 9. > When I start a new project without any development team, choosing Obj-c, and > adding nothing to the code, the app starts and shows the win

Re: UNIX error exception: 17

2018-06-09 Thread Saagar Jha
I can’t tell you anything else without more details, but I do know that errno 17 is EEXIST: File exists. Maybe that can help you figure out what’s going wrong, or at least give you something to start with? Saagar Jha > On Jun 8, 2018, at 19:00, Richard Charles wrote: > > I have a

Re: Deciphering an error message on an iOS UITextField subclass.

2018-01-18 Thread Saagar Jha
So, I don’t see you trying [cell.dataField property] in your log below. Does this work? Saagar Jha > On Jan 17, 2018, at 20:27, Alex Zavatone <z...@mac.com> wrote: > > >> On Jan 17, 2018, at 9:28 PM, Saagar Jha <saa...@saagarjha.com >> <mailto:saa...@saagarj

Re: Deciphering an error message on an iOS UITextField subclass.

2018-01-17 Thread Saagar Jha
If you’re being lazy, just use the selector for the getter: [cell.dataField property]. It might not perform checking, but it will work if the selector is defined. Saagar Jha > On Jan 17, 2018, at 17:24, Alex Zavatone <z...@mac.com> wrote: > > Xcode 9.2, iOS 11.2 > >

Re: Size of compiled NIBs in Xcode 9 (10.13 SDK)

2018-01-24 Thread Saagar Jha
Have you tried assetutil? Run it with assetutil —info [Assets.car] Saagar Jha > On Jan 24, 2018, at 13:24, Alex Zavatone <z...@mac.com> wrote: > > I think I may have asked this before, but is there a tool or command line > available to unpack these assets.car files so t

Re: Draw an arc given 2 angles.

2018-01-25 Thread Saagar Jha
Saagar Jha > On Jan 25, 2018, at 09:47, Eric E. Dolecki <edole...@gmail.com> wrote: > > I've been googling without great success so far. > > I would like to draw a 6px thick red arc (not wedge), 0º at the top of the > screen, and from say 60° - 110º. Assume I have

Re: Checking if a string is valid JSON

2018-01-29 Thread Saagar Jha
I believe jsonObject(with:options) will throw if the JSON is invalid, so you might be able to get away with just the try/catch. Besides, your JSON top level object might be an array, in which case I’d expect that casting to an NSDictionary would fail. Saagar Jha > On Jan 29, 2018, at 12

Re: Checking if a string is valid JSON

2018-01-29 Thread Saagar Jha
Saagar Jha > On Jan 29, 2018, at 13:25, Quincey Morris > <quinceymor...@rivergatesoftware.com> wrote: > > On Jan 29, 2018, at 12:42 , Eric E. Dolecki <edole...@gmail.com> wrote: >> >> So this would do it? > > I would strongly recommend usin

Re: Crash in Touchbar

2018-01-29 Thread Saagar Jha
Saagar Jha > On Jan 29, 2018, at 06:06, sumit bansal <sumitonline.ban...@gmail.com> wrote: > > Hi All, > > I am getting 2 non-reproducible crashes in my application related to Touch > Bar. It may be the bug in Appkit code. Does a

Re: Custom font in IB doesn't work reliably

2018-02-12 Thread Saagar Jha
Is this only happening in Interface Builder, or does it occur when running your app as well? Saagar Jha > On Feb 12, 2018, at 13:48, Viacheslav Karamov <ubuntul...@yandex.ru> wrote: > > I'm using custom iconic font in my project, added it to info.plist and "Copy >

Re: CBPeripheralManager state unsupported Mac OS 10.12.6

2018-02-06 Thread Saagar Jha
Wait, is it returning “unknown” or “unsupported”? Saagar Jha > On Feb 5, 2018, at 21:20, Devarshi Kulshreshtha <devarshi.bluec...@gmail.com> > wrote: > > My macbook is - MacBook Pro (13-inch, 2017) > System Information shows - > Bluetooth Low Energy Supported: Yes

Re: CBPeripheralManager state unsupported Mac OS 10.12.6

2018-02-05 Thread Saagar Jha
What Mac are you using? Are you sure your Mac supports Bluetooth LE (I’m sure you already know this, but I just wanted to make sure)? Saagar Jha > On Feb 5, 2018, at 05:25, Devarshi Kulshreshtha <devarshi.bluec...@gmail.com> > wrote: > > I am trying to turn my macbook into

Re: Archiving a project

2018-08-05 Thread Saagar Jha
, you could just put an abort somewhere in your app’s startup path to make sure your app is being updated. Or try poking around the disassembly of the method you’re changing? Regards, Saagar Jha > On Aug 5, 2018, at 16:23, Daniel Santos wrote: > > Hello, > > Since I couldn’t find

Re: Mac App Store paid upgrades and app settings

2018-08-13 Thread Saagar Jha
Saagar Jha > On Aug 13, 2018, at 13:40, Martin Wierschin wrote: > >> So does this mean that the new Mac App Store will allow for upgrade payments >> or recurring payments? > > You never know. It’s always possible there are MAS enhancements coming to > help facili

Re: Custom keyboard with search bar not behaving

2018-08-20 Thread Saagar Jha
What does [UIApplication.sharedApplication.keyWindow performSelector:@selector(firstResponder)] give you? Saagar Jha > On Aug 20, 2018, at 06:16, Steve Mills wrote: > > I guess I'll try this list as well. > > I’m implementing a custom keyboard for iOS. It contains a UISearch

Re: Carbon -> Cocoa

2018-08-22 Thread Saagar Jha
Sent from my iPhone > On Aug 22, 2018, at 10:40, Alastair Houghton > wrote: > >> On 22 Aug 2018, at 17:53, Jens Alfke wrote: >> >>> On Aug 21, 2018, at 8:33 AM, Alastair Houghton >>> mailto:alast...@alastairs-place.net>> wrote: >>> >>> So, for instance, it’s not so good on macOS or iOS

Re: Carbon -> Cocoa

2018-08-19 Thread Saagar Jha
Saagar Jha > On Aug 17, 2018, at 10:51, Jeremy Hughes wrote: > >> Of course, the C++ business logic doesn't need any changes. The concern is, >> how long will it last? Seems like the future is an entirely Swift-based API >> that replaces Objective-C Cocoa in 5 years,

Re: C++ pointer to Cocoa object

2018-09-07 Thread Saagar Jha
, or with NSZombieEnabled set? Saagar Jha > On Sep 7, 2018, at 10:46, Casey McDermott wrote: > > We need to link some of our C++ classes to a matching Cocoa class. > It's easy for Cocoa to reference C++ objects. Going the other way is harder. > > We have been using a linker class that

Re: Avoiding link conflicts with a static library

2018-04-05 Thread Saagar Jha
I think there used to be a bug (might still be?) where Xcode didn’t automatically strip out the x86 simulator slices when you were archiving. Saagar Jha > On Apr 5, 2018, at 07:29, Alex Zavatone <z...@mac.com> wrote: > > >> On Apr 5, 2018, at 4:19 AM, Redler Eyal &l

Re: Avoiding link conflicts with a static library

2018-04-05 Thread Saagar Jha
You could weak link against OpenCV then dlopen it at runtime depending on whether it’s already loaded or not. As for packaging, I’d stick them both in a zip with a README telling them where to drag each thing in Xcode. Saagar Jha > On Apr 5, 2018, at 01:42, Redler Eyal <e...@mellel.com&

Re: Avoiding link conflicts with a static library

2018-04-04 Thread Saagar Jha
Saagar Jha > On Apr 4, 2018, at 12:17, Redler Eyal <e...@mellel.com> wrote: > >>> On Apr 4, 2018, at 9:25 AM, Redler Eyal <e...@mellel.com> wrote: >>> >>> We are aware that the following are possible solutions to the problem: >>> a. Switch

Re: Avoiding link conflicts with a static library

2018-04-05 Thread Saagar Jha
I’m basing this on rdar://problem/19209161 , which appears to still be open. I haven’t tried this myself. Saagar Jha > On Apr 5, 2018, at 18:06, Alex Zavatone <z...@mac.com> wrote: > > >> On Apr 5, 2018, at 7:49 PM, Saagar Jha <saa...@saagarjha.com >> <ma

Re: Avoiding link conflicts with a static library

2018-04-04 Thread Saagar Jha
Saagar Jha > On Apr 4, 2018, at 12:55, Redler Eyal <e...@mellel.com> wrote: > >>>>> On Apr 4, 2018, at 9:25 AM, Redler Eyal <e...@mellel.com> wrote: >>>>> >>>>> We are aware that the following are possible solutions to the pr

Re: Dealing with an @available warning

2018-10-23 Thread Saagar Jha
, *)) { info.orientation = NSPaperOrientationPortrait; } else { info.orientation = NSPortraitOrientation; } } Regardless, if you really need a fix, you should be able to cast through NSInteger, instead of NSPrintingOperation, as a fallback. Saagar Jha > On Oct 23, 2

Re: Dealing with an @available warning

2018-10-25 Thread Saagar Jha
FWIW, I don’t see this in Objective-C++ either. Saagar Jha > On Oct 23, 2018, at 17:54, James Walker wrote: > > On 10/23/18 5:36 PM, Saagar Jha wrote: >> Saagar Jha >>> On Oct 23, 2018, at 17:15, James Walker >> <mailto:jam...@frameforge3d.com>> wrote: &

Re: Dealing with an @available warning

2018-10-23 Thread Saagar Jha
Saagar Jha > On Oct 23, 2018, at 17:15, James Walker wrote: > > On 10/23/18 3:12 PM, Saagar Jha wrote: >> What build command are you using? I’m not seeing any warnings with this >> code, compiled with clang -x objective-c -framework AppKit >> -Wunguarded-availa

Re: continuity scanner

2018-11-19 Thread Saagar Jha
Are you asking about Continuity Camera? NSTextView supports this out of the box, if you’re using it. If you want to add support to your own views, implement NSResponder.validRequestor(forSendType:returnType:) and return something that conforms to NSServicesMenuRequestor. Sent from my iPad >

Re: Trouble assigning datasource and delegate to an instance of NSTableView

2019-03-28 Thread Saagar Jha
which makes the exact declaration syntax a bit more clear. Regards, Saagar Jha > On Mar 28, 2019, at 18:49, Andy Lee wrote: > > The compiler may accept it, but it doesn't interpret it the way you think. > You can confirm by checking whether your class formally conforms to the

Re: Questions regarding the sandbox in iOS

2019-02-05 Thread Saagar Jha
FYI, iOS apps start with their working directory set to “/“ (but don’t depend on this!), so trying to write there is going to fail. NSHomeDirectory is an easy way to get your sandbox root, but you should probably be using the options the others have mentioned. Regards, Saagar Jha > On Fe

Re: ARC

2019-08-27 Thread Saagar Jha via Cocoa-dev
every location that releases mainWindowController statically and setting breakpoints there. Saagar Jha P.S. The code for the Objective-C runtime is available here <https://opensource.apple.com/source/objc4/objc4-756.2/>. Significant portions are still in assembly, but you might find a

Re: 10.15 command line tools headers missing

2019-09-13 Thread Saagar Jha via Cocoa-dev
of their formulas depended on /usr/include existing and would only build if you installed the headers package. Saagar Jha > On Sep 13, 2019, at 09:58, Jens Alfke via Cocoa-dev > wrote: > > > >> On Sep 13, 2019, at 1:32 AM, Mark Allan via Cocoa-dev >> wrote: >&

Re: Why is / a metachar in regular expressions ?

2019-09-18 Thread Saagar Jha via Cocoa-dev
error in the documentation. (NSRegularExpression in Foundation uses the same set, but it doesn’t go through this specific code path as far as I can tell.) Saagar Jha > On Sep 18, 2019, at 15:06, Rick Mann via Cocoa-dev > wrote: > > Ah! So it is. Definitely not an error in the docs, assuming >

Re: Thoughts on Objective-C++

2019-11-13 Thread Saagar Jha via Cocoa-dev
Saagar Jha > On Nov 13, 2019, at 12:43, Gabriel Zachmann via Cocoa-dev > wrote: > > >> be a good time for a SwiftUI pivot. If true, Cocoa is the new Carbon. >> > > I think, eventually, maybe in 5 years' time, that will be the case. > This is really

Re: Future of Cocoa

2019-12-16 Thread Saagar Jha via Cocoa-dev
Now that I think about it, you can probably do this without support from the runtime by interposing the handful of runtime functions that invalidate the method cache… Saagar Jha > On Dec 16, 2019, at 00:23, Jean-Daniel wrote: > > My bad, I just see that when rereading the de

Re: Future of Cocoa

2019-12-16 Thread Saagar Jha via Cocoa-dev
There’s also a check for method swizzling and other invalidation, assuming that there is cooperation from the runtime. Unless I’m misunderstanding what you mean by the selector changing? Saagar Jha > On Dec 16, 2019, at 00:16, Jean-Daniel wrote: > > >> Le 16 déc. 2019 à 06

Re: Thoughts on Objective-C++

2019-11-19 Thread Saagar Jha via Cocoa-dev
Based on the listing, I’d guess UWP. Saagar Jha > On Nov 19, 2019, at 21:18, Richard Charles via Cocoa-dev > wrote: > >> On Nov 13, 2019, at 11:58 AM, Richard Charles wrote: >> >> Apple released iTunes for Windows in October 2003. >> > > > Ap

Re: Future of Cocoa

2019-11-19 Thread Saagar Jha via Cocoa-dev
Saagar Jha > On Nov 19, 2019, at 20:01, Richard Charles via Cocoa-dev > wrote: > > >> On Nov 19, 2019, at 6:24 PM, Pier Bover via Cocoa-dev >> wrote: >> >>> When/if Apple decides to deprecate Cocoa they will announce it many years >>> ahea

Re: Future of Cocoa

2019-11-20 Thread Saagar Jha via Cocoa-dev
I am curious why this optimization went in instead of guarded speculative inlining, which would let you keep dynamism. Maybe that was too complicated to implement or didn’t have the right performance characteristics. But I guess this isn’t really the right list for discussing that… Saagar Jha

Re: Future of Cocoa

2019-11-20 Thread Saagar Jha via Cocoa-dev
” would work 99% of the time. Saagar Jha > On Nov 20, 2019, at 17:01, Jens Alfke wrote: > > > >> On Nov 20, 2019, at 2:46 PM, Saagar Jha > <mailto:saa...@saagarjha.com>> wrote: >> >> I am curious why this optimization went in instead of guarded speculat

Re: Thoughts on Cocoa source code

2019-10-09 Thread Saagar Jha via Cocoa-dev
Saagar Jha > On Oct 9, 2019, at 10:19, Turtle Creek Software via Cocoa-dev > wrote: > > Why is Cocoa source code hidden? > > Many of the frustrations we had with the 64-bit update attempt were caused > by Cocoa's lack of visible source. It was a "black box&qu

Re: Thoughts on Cocoa source code

2019-10-09 Thread Saagar Jha via Cocoa-dev
you in” if they feel like it doesn’t break too many applications (for example, macOS Sierra’s window tabbing). Saagar Jha [Snipped to stay under the list limit] ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: Thoughts on Cocoa source code

2019-10-11 Thread Saagar Jha via Cocoa-dev
n look at. Saagar Jha > On Oct 11, 2019, at 06:18, Turtle Creek Software via Cocoa-dev > wrote: > >>> If you combine otool, classdump and Hopper Disassembler, you can find > how some Cocoa methods are working in any Obj-C executable pretty easily. > > Here's the thing. We

Re: Confusion about screen resolution

2020-02-22 Thread Saagar Jha via Cocoa-dev
No, the default on recent Macs is scaled to slightly under 2x. Saagar Jha > On Feb 22, 2020, at 05:55, Gabriel Zachmann via Cocoa-dev > wrote: > >> >> What have you set in System Preferences > Displays > Resolution. On a Retina >> MacBook most > >

Re: Confusion about screen resolution

2020-02-22 Thread Saagar Jha via Cocoa-dev
I believe this became the default with the new MacBook Pros that came out in 2016. Saagar Jha > On Feb 22, 2020, at 09:13, Steve Mills via Cocoa-dev > wrote: > >> On Feb 22, 2020, at 10:04, Richard Charles via Cocoa-dev >> wrote: >> >> This is bizar

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

2020-04-23 Thread Saagar Jha via Cocoa-dev
Saagar Jha > On Apr 23, 2020, at 21:26, Allan Odgaard via Cocoa-dev > wrote: > > On 24 Apr 2020, at 9:57, Rob Petrovec wrote: > >>> Also weird, why would it phone home for a shell script which has neither >>> been stapled nor even code-signed? >>

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

2020-04-23 Thread Saagar Jha via Cocoa-dev
I believe that is why you are supposed to staple notarization tickets to your apps. Saagar Jha > On Apr 23, 2020, at 12:12, Gabriel Zachmann via Cocoa-dev > wrote: > >> >> It appears the problem is not with a local service, but that Apple >> actually ?phone

Re: Question about Info.plist's

2020-08-19 Thread Saagar Jha via Cocoa-dev
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 normal build stages). > On Aug 19, 2020, at 09:58, Owen Hartnett via

Re: Launching in fullscreen gives "Funk" sound sometimes

2020-06-25 Thread Saagar Jha via Cocoa-dev
It’s possible that the “funk” sound is coming from the other app if it still has keyboard focus. Try attaching to that instead and seeing if it hits NSBeep. Saagar Jha > On Jun 25, 2020, at 02:09, Gabriel Zachmann via Cocoa-dev > wrote: > > >> >> Set a symbolic brea

Re: Points vs pixels in a bash script

2020-06-10 Thread Saagar Jha via Cocoa-dev
Saagar Jha > On Jun 10, 2020, at 13:52, Ken Thomases via Cocoa-dev > wrote: > > On Jun 9, 2020, at 8:11 AM, Gabriel Zachmann wrote: >> >>> In particular, you're not taking into account the current screen resolution >>> (a.k.a. display mode). T

Re: Archive for "Any Mac" automatically ?

2021-08-28 Thread Saagar Jha via Cocoa-dev
This should “just work” if your ARCHS is set to “Standard Architectures” and ONLY_ACTIVE_ARCH is set to NO for the build configuration you use for Archiving (which is probably Release). > On Aug 28, 2021, at 04:44, Gabriel Zachmann via Cocoa-dev > wrote: > > Would it be possible to make

Re: Confusion with app settings / NSUserDefaults

2023-08-16 Thread Saagar Jha via Cocoa-dev
Yes, although in practice I’ve seen the preferences make it to disk fairly quickly after app termination. Saagar Jha > On Aug 15, 2023, at 13:36, Gabriel Zachmann wrote: > > Ah, thanks a lot for the insights! > > Could it happen that the new settings have not been writt

Re: dispatch_apply() on an NSArray and Thread Sanitizer

2022-04-19 Thread Saagar Jha via Cocoa-dev
on the array itself. Regards, Saagar Jha > On Apr 19, 2022, at 14:02, Sean McBride via Cocoa-dev > wrote: > > Hi all, > > If one wants to do something with every item in an NSArray in a concurrent > way, is the following safe/correct? > > > NSArray* array =

Re: Are runtimes of system objects dynamic/SDK dependent/whatever?

2022-06-14 Thread Saagar Jha via Cocoa-dev
Option 2 is pretty much what happens. In addition, the behavior of doCoolStuff might change in 11.0 versus 10.15; the system framework will pick between the two by checking which SDK you were linked against. > On Jun 14, 2022, at 12:30, Aandi Inston via Cocoa-dev > wrote: > > I'm trying to

Re: Xcode 14 minimum deployment target

2022-10-28 Thread Saagar Jha via Cocoa-dev
I believe Xcode 14 has the old macOS bits (with the new iOS SDK). Try 14.1? > On Oct 28, 2022, at 03:51, Eyal Redler via Cocoa-dev > wrote: > > I read somewhere (can't recall where) that xcode 14 will not support > deployment target < macOS 10.13. > I was bracing myself for having to somehow

Re: Screensaver Options under macOS 13 (Ventura) doesn't work

2022-11-07 Thread Saagar Jha via Cocoa-dev
I have a couple of custom screensavers where the button works, so it sounds like this must be something with your setup. Perhaps looking at Console might be helpful? Saagar Jha > On Nov 6, 2022, at 13:21, Gabriel Zachmann via Cocoa-dev > wrote: > > I've got a screensaver (sitti

Re: OS/X Java native bug

2023-03-17 Thread Saagar Jha via Cocoa-dev
/libosxapp/ThreadUtilities.m#L103. It’s likely that your hang is caused by something else. Saagar Jha > On Mar 17, 2023, at 01:58, Michael Hall via Cocoa-dev > wrote: > > This was just brought to my attention on a java mailing list. > > An option was added to java start

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

2023-05-01 Thread Saagar Jha via Cocoa-dev
or vmmap or leaks is a good way to further refine your search. Saagar Jha > On May 1, 2023, at 04:04, Gabriel Zachmann via Cocoa-dev > wrote: > > Thanks so much again! > > I tried, and it didn't give me a good clue, though. > What I got as output is: > All zones: 146

Re: How do decipher an exception in the log file

2023-07-20 Thread Saagar Jha via Cocoa-dev
Console should have it. That crash log will have the base address in it that you can use to symbolicate things. Saagar Jha > On Jul 18, 2023, at 16:01, Gabriel Zachmann via Cocoa-dev > wrote: > > >> That number is 0x7FFF, which is particularly recognizab

Re: Confusion with app settings / NSUserDefaults

2023-08-06 Thread Saagar Jha via Cocoa-dev
The plist file on disk is written to sporadically. cfprefsd is generally the arbiter what the real values are, and it may or may not write things to disk immediately. Conversely, it’s not necessarily sitting around watching the plist file for changes. The correct way to update user defaults in

Re: Sending SIGUSR1 to a process

2024-01-29 Thread Saagar Jha via Cocoa-dev
Yes, this should work. The only changes I know of is that you can’t signal some Apple processes these days if System Integrity Protection is engaged. Saagar Jha > On Jan 28, 2024, at 23:06, Gabriel Zachmann via Cocoa-dev > wrote: > > IIRC, one process cannot send a Unix signal to