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
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 written
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 a
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 recognizable and
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
/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
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 (
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
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
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 =
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 Xcode
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 C
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
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). Th
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?
>> I th
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 ?phones ho
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 bizarre.
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
>
>
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 descri
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
” 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
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
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
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
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
ook 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.
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
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&q
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
>
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:
>&
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
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
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
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
> On
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:
&
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
, *)) {
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, 2018,
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 ha
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 if
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 UIS
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 ye
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
, 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
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
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 wrote:
>
>
>> On Apr 5, 2018, at 7:49 PM, Saagar Jha > <mailto:saa...@saagarjha.com>> wrote:
>>
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 wrote:
>
>
>> On Apr 5, 2018, at 4:19 AM, Redler Eyal wrote:
>>
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 wrote:
>
>>
Saagar Jha
> On Apr 4, 2018, at 12:55, Redler Eyal wrote:
>
>>>>> On Apr 4, 2018, at 9:25 AM, Redler Eyal wrote:
>>>>>
>>>>> We are aware that the following are possible solutions to the problem:
>>>>> a. Switch to use the sam
Saagar Jha
> On Apr 4, 2018, at 12:17, Redler Eyal wrote:
>
>>> On Apr 4, 2018, at 9:25 AM, Redler Eyal wrote:
>>>
>>> We are aware that the following are possible solutions to the problem:
>>> a. Switch to use the same version of OpenCV as our clien
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 wrote:
>
> I'm using custom iconic font in my project, added it to info.plist and "Copy
> Bundle Resources" ph
Wait, is it returning “unknown” or “unsupported”?
Saagar Jha
> On Feb 5, 2018, at 21:20, Devarshi Kulshreshtha
> wrote:
>
> My macbook is - MacBook Pro (13-inch, 2017)
> System Information shows -
> Bluetooth Low Energy Supported: Yes
> LMP Version: 4.2 (0x8)
&
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
> wrote:
>
> I am trying to turn my macbook into BLE by using below co
Saagar Jha
> On Jan 29, 2018, at 13:25, Quincey Morris
> wrote:
>
> On Jan 29, 2018, at 12:42 , Eric E. Dolecki wrote:
>>
>> So this would do it?
>
> I would strongly recommend using JSONDecoder instead of JSONSerialization.
> The errors JSONDecoder th
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
Saagar Jha
> On Jan 29, 2018, at 06:06, sumit bansal 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 anyone has
Saagar Jha
> On Jan 25, 2018, at 09:47, Eric E. Dolecki 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 to create a UIBezierPa
Have you tried assetutil? Run it with assetutil —info [Assets.car]
Saagar Jha
> On Jan 24, 2018, at 13:24, Alex Zavatone 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 that we can inspect what
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 wrote:
>
>
>> On Jan 17, 2018, at 9:28 PM, Saagar Jha > <mailto:saa...@saagarjha.com>> wrote:
>>
>>
>>
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 wrote:
>
> Xcode 9.2, iOS 11.2
>
> In a UITableViewCell sub
Saagar Jha
> On Oct 12, 2017, at 20:55, Navneet Kumar 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 window.
>
> Now I ad
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 wrote:
>
>
>> On Jul 20, 2017, at 7:38 PM, Saagar Jha wrote:
>>
>> I remember asking one of the WebKit engine
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 wrote:
>
;
> >
> >
> >
> > ___
> >
> > 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-admin
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 wrote:
>
> iOS Project.
>
> Hi,
>
> I’m trying to do something with auto layout and I can’t seem to get it
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 wrote:
>
> Hello,
>
> I had a text field within a tab view item whose text was getting too large.
> So I embedded it in a scroll view. No matter w
Saagar Jha
> On Apr 28, 2017, at 20:22, Gerriet M. Denkmann wrote:
>
>>
>> On 23 Apr 2017, at 14:45, Quincey Morris
>> wrote:
>>
>> On Apr 22, 2017, at 23:55 , Gerriet M. Denkmann wrote:
>>>
>>> But now I want to move the table view d
+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 wrote:
>
>
>> On Mar 29, 2017, at 4:24 PM, Charles Srstka wrote:
>>
>>> On
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,
Nothing, if I remember correctly. Cocoa should handle window tabs for you.
Saagar Jha
> On Mar 25, 2017, at 07:49, Daryle Walker wrote:
>
> Testing out my app. Finally noticed the new "Show Tab Bar" View menu item.
> The menu also handles the tool bar, full screen
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 wrote:
>
>
>> On 18 Mar
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 wrote:
>
> Alternately, is there a way to configure the alert to defer the launch of the
> keyboard until/unl
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 wrote:
>
> iOS 10.2.1
>
> I'm using UIAlertController -addTextFieldWith
:)
<https://developer.apple.com/reference/foundation/nsstring/1533109-draw>.
Saagar Jha
> On Mar 6, 2017, at 13:43, Julie Porter wrote:
>
> It has been a while since I asked anything here. Most of the scripting I do
> is in PostScript using the ghostscript interpreter.
&
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 wrote:
>
> Everything I've seen sh
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 wrote:
>
> Hi all, I have a table that has records by date. I want
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
> wrote:
>
> Adding features to an app under iOS 10 that needs to access the location
>
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
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
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 wrote:
>
> UUID means Universally unique identifier
79 matches
Mail list logo