Re: How do decipher an exception in the log file

2023-07-18 Thread Ben Kennedy via Cocoa-dev
> On Jul 18, 2023, at 9:28 AM, Gabriel Zachmann via Cocoa-dev > wrote: > > 2023-07-17 13:13:23.657278+0200 0xff744Error 0x1144e1 > 2670 0legacyScreenSaver: [com.apple.ScreenSaver:Modules] > -[LegacyExtensionManager processExtensionRequest:replyInfo:]_block_invoke

Re: How to convert path through container into standard form?

2022-12-11 Thread Ben Kennedy via Cocoa-dev
> On 11 Dec 2022, at 12:51 pm, Mike Abdullah via Cocoa-dev > wrote: > > Have you tried -URLByResolvingSymlinksInPath? As far as I’m aware, the > Pictures entry inside your container is a symlink to the real thing, so > assuming you have appropriate entitlements, should be possible to resolve

Re: Indexing broken for one project

2022-02-13 Thread Ben Kennedy via Cocoa-dev
On 13 Feb 2022, at 1:07 pm, Gabriel Zachmann via Cocoa-dev wrote: > Just now, I have tried a few other things. > I deleted some folders in ~/Library/Deverlopers (caches, log files, devices). > Interestingly, there is no ~/Library/Deverloper/Xcode/DerivedData! (which > should contain the indexin

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

2021-09-06 Thread Ben Kennedy via Cocoa-dev
> On Sep 6, 2021, at 2:14 PM, Gabriel Zachmann via Cocoa-dev > wrote: > > I had assigned the window to an ivar window_ in viewWillMoveToWindow: > > - (void) viewWillMoveToWindow: (NSWindow *) newWindow > { >window_ = newWindow; I asked earlier, but I’ll ask again: why are you doing this?

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

2021-09-04 Thread Ben Kennedy via Cocoa-dev
> On Sep 4, 2021, at 10:27 AM, Gabriel Zachmann via Cocoa-dev > wrote: > > I access the window of a view by two different ways, in the controller and > in the view, resp., and in the controller, I always get a nil pointer. > > In my app, I have a subclass of NSView, MyView, declared like thi

Re: How to distinguish between different MS Teams statuses

2021-07-22 Thread Ben Kennedy via Cocoa-dev
> On 22 Jul 2021, at 10:45 am, Gabriel Zachmann via Cocoa-dev > wrote: > > is it possible to determine - in my own app - whether or not there is an MS > Teams video call taking place at the moment? The only correct answer to that depends on whether Microsoft Teams provides API that vends su

Re: Distributing Mac App to Registered Devices

2021-06-23 Thread Ben Kennedy via Cocoa-dev
> On 23 Jun 2021, at 12:22 pm, Richard Charles via Cocoa-dev > wrote: > > Yes, that is what I do now. However when upgrading to Xcode 12 it wants to > change the debug and release configuration to use development signing. > Notarized builds are reserved for archiving. Just saying that Apple

Re: MacOS: nonmodal NSAlert panel

2021-05-12 Thread Ben Kennedy via Cocoa-dev
> On 12 May 2021, at 11:17 am, Carl Hoefs via Cocoa-dev > wrote: > > I'd like to present an informational alert for n seconds then dismiss it > without user interaction. But I don't see any way to dismiss, terminate, > cancel, invalidate, etc. an NSAlert object. I recently did that exact th

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

2021-05-09 Thread Ben Kennedy via Cocoa-dev
> On 9 May 2021, at 2:29 pm, Alex Zavatone wrote: > >> It sounds like you might need to rethink your data model a bit. > > That’s what I’m trying to do! : D I meant the internal data model, as in how your program represents the data in memory and in respect of what API it provides to its cli

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

2021-05-08 Thread Ben Kennedy via Cocoa-dev
> 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 which one ended > up getting the proper result? Call -[propertyListWithData:options:format:error:],

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

2021-05-08 Thread Ben Kennedy via Cocoa-dev
Sounds like NSPropertyListSerialization is what you’re after. https://developer.apple.com/documentation/foundation/nspropertylistserialization b Sent from my iPhone > On May 8, 2021, at 5:12 PM, Alex Zavatone via Cocoa-dev > wrote: > > I’m reading a configuration plist like so. > > NSFileM

Re: /Library/Application Support off limits?

2021-04-14 Thread Ben Kennedy via Cocoa-dev
> On 14 Apr 2021, at 1:14 am, Davidap via Cocoa-dev > wrote: > > Apple say: > > [...] For example, if your app is named MyApp and has the bundle identifier > com.example.MyApp, you would put your app’s user-specific data files and > resources in the ~/Library/Application Support/com.example

Re: Command line builds and tee(1) not writing file

2021-03-09 Thread Ben Kennedy via Cocoa-dev
> On 8 Mar 2021, at 3:36 pm, Jeffrey Walton via Cocoa-dev > wrote: > > Tee(1) is not writing the file for him, and I can confirm the > behavior. Here's how it is being used: > >./cryptest-ios.sh 2>&1 | tee cryptest-ios.txt Hey Jeff, I recall encountering a similar problem a few months ago

Re: Programmatically created NSButton is drawn in the wrong position.

2020-12-14 Thread Ben Kennedy via Cocoa-dev
> On 14 Dec 2020, at 5:39 pm, Eyal Redler via Cocoa-dev > wrote: > > button = [[NSButton alloc] initWithFrame:NSMakeRect(0, 0, 0, 0)]; > [button setTranslatesAutoresizingMaskIntoConstraints:NO]; > [button setBezelStyle:NSRoundedBezelStyle]; > [button setTitle:buttonTitle]; > [button sizeToFit]

Re: Bug reporting again.

2020-11-22 Thread Ben Kennedy via Cocoa-dev
By the way, some of what you said doesn't seem to quite make sense: > The behaviour below is what is simply not happening. > > If you > invoke this method with a nil nib name, then this class' -loadView > method will attempt to load a NIB whose > name is the same as your view controlle

Re: Bug reporting again.

2020-11-22 Thread Ben Kennedy via Cocoa-dev
> 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 to use https://bugreport.apple.com which > returns “bugreport.apple.com’s server IP address could not be fou

Re: Question about Info.plist's

2020-08-19 Thread Ben Kennedy via Cocoa-dev
> On 19 Aug 2020, at 7:45 pm, Michael Hall via Cocoa-dev > wrote: > > Something else I’m curious about is doesn’t this somehow invalidate any > application signing that’s been done? Code signing happens last, even if you put your shell script phase at the very bottom. (Observe the build outp

Re: Question about Info.plist's

2020-08-19 Thread Ben Kennedy via Cocoa-dev
> On 19 Aug 2020, at 11:47 am, Gabriel Zachmann via Cocoa-dev > wrote: > > I tried this: > > plutil -replace CFBundleVersion -string '$(CURRENT_PROJECT_VERSION) 111' > qq.plist > > which works -- but what I need to do is something like this: > > plutil -replace CFBundleVersion -string "\$

Re: Question about Info.plist's

2020-08-19 Thread Ben Kennedy via Cocoa-dev
> On 19 Aug 2020, at 9:07 am, Gabriel Zachmann via Cocoa-dev > wrote: > > The plist file has, additionally to all the default stuff, the key > CFBuildNumber (with a value that I increment automatically). > > In Xcode, I tried to change "Bundle version" to a value like > > $(CURRENT_PROJEC

Re: Funny issue: one line in GUI is grey-ish

2020-08-09 Thread Ben Kennedy via Cocoa-dev
> On 9 Aug 2020, at 5:58 am, Gabriel Zachmann via Cocoa-dev > wrote: > > I have a simple app (status bar item) with a simple GUI. > The funny thing is that one text line in the GUI is grey-ish, > but NOT in the XIB in XCode ... and I can't determine why that is or how to > correct it. Interes

Re: Thoughts on Cocoa source code

2019-10-09 Thread Ben Kennedy via Cocoa-dev
> On 09 Oct 2019, at 1:19 pm, Turtle Creek Software via Cocoa-dev > wrote: > > In fact, why isn't Cocoa open source? Apple open-sources Swift and the > Darwin kernel. Surely the GUI can't be any riskier to expose to developers? This is a business strategy question, not a Cocoa development ques

Re: ARC

2019-08-23 Thread Ben Kennedy via Cocoa-dev
> On 23 Aug 2019, at 2:17 pm, Casey McDermott via Cocoa-dev > wrote: > > We allocate the controller in our app delegate class. It's a member but > apparently that is not a > strong enough reference, so the controller is released at the end of the > scope. What is best practice to hold a stron