Localization under Catalina

2020-05-27 Thread Eyal Redler via Cocoa-dev
Hi, It looks like Apple has dropped support for AppleGlot under Catalina. The latest version (from 2017) will not install on Catalina and links and mentions to AppleGlot have been removed from their localisation page (https://developer.apple.com/localization/). It looks like Apple wants us to

Re: Localization under Catalina

2020-05-27 Thread Eyal Redler via Cocoa-dev
> >> On May 27, 2020, at 10:04 AM, Eyal Redler via Cocoa-dev >> wrote: >> >> Hi, >> >> It looks like Apple has dropped support for AppleGlot under Catalina. The >> latest version (from 2017) will not install on Catalina and links and >

Re: Localization under Catalina

2020-05-27 Thread Eyal Redler via Cocoa-dev
l wish you had done it earlier. It is SO much better. Plus it > handles positioning views automagically between Left-To-Right localizations > like English and Right-To-Left localizations like Hebrew. > > —Rob > > >> On May 27, 2020, at 1:26 PM, Eyal Redler via Cocoa-dev

Re: Localization under Catalina

2020-05-27 Thread Eyal Redler via Cocoa-dev
AppleGlot used to work fine for me but I agree, I should move to Base.lproj etc. But now I need to ship a new version of the app and I can't really afford to spend the time converting everything to auto-resizing. I foolishly upgraded to Catalina only this week, and this put me in a very

Programmatically created NSButton is drawn in the wrong position.

2020-12-14 Thread Eyal Redler via Cocoa-dev
I'm configuring a view with some push buttons and other views programmatically and the buttons are drawn offset to the right. For example, the first button should be at 0,20 but it is drawn at 6,20. I checked that the buttons are not moved, the button frames remain the same, the buttons are

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

2020-12-15 Thread Eyal Redler via Cocoa-dev
setting translatesAutoresizingMaskIntoConstraints to yes makes the situation worse. The buttons are drawn further away than their frames indicate. Eyal > On 15 Dec 2020, at 4:05, Ben Kennedy wrote: > > >> On 14 Dec 2020, at 5:39 pm, Eyal Redler via Cocoa-dev >>

Re: NSControl subclass and accessibility

2022-03-13 Thread Eyal Redler via Cocoa-dev
Thank you. Eyal > On 13 Mar 2022, at 18:31, Rob Petrovec wrote: > > Accessibility for NSControls is handled by the NSCell inside it, not the > NSControl. Good luck. > > —Rob > > >> On Mar 13, 2022, at 7:55 AM, Eyal Redler via Cocoa-dev >> wrote:

NSControl subclass and accessibility

2022-03-13 Thread Eyal Redler via Cocoa-dev
Hi, I'm having trouble getting a custom NSControl subclass properly visible with regards to accessibility. If I implement my custom control as an NSView subclass and adopt the NSAccessibilityButton protocol, I can "see" my custom control with accessibility inspector when I hover above it. If

Xcode 14 minimum deployment target

2022-10-28 Thread Eyal Redler via Cocoa-dev
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 develop my app on two machines for a while or ditching my pre 10.13 users but after installing xcode 14 on my new M1 machine I found out that I can

Re: Xcode 14 minimum deployment target

2022-10-28 Thread Eyal Redler via Cocoa-dev
to do just that without an issue... Eyal > On 28 Oct 2022, at 13:54, Saagar Jha wrote: > > 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 somew

Read Extended Attributes with Finder Sync Extension

2022-12-18 Thread Eyal Redler via Cocoa-dev
I'm working on adding a finder sync extension to an app. The app is not sandboxed. In essence, the app is operating on files located in folders that the user chooses, the app stores the status information in an extended attribute for each file. The extension needs to monitor these folders and

Auto-layout, Forcing a top-level view to hug its contents

2022-11-03 Thread Eyal Redler via Cocoa-dev
I have a view in a nib, the constraints are setup so that the view should expand/contract to fit the contents and the nib is localized for several languages. When I check the frame size of the view in awakeFromNib the size I get is the same as the size set in the nib. I tried forcing the view

Context Menu and first responder targets

2023-03-05 Thread Eyal Redler via Cocoa-dev
Hi, I'm using popUpContextMenu:withEvent:forView: to show a context menu. The menu contains several items whose target is the first responder (that is, nil). But the items are not enabled and if I turn off autoEnable then the action is never called on the first responder. Same target/action

Re: Context Menu and first responder targets

2023-03-05 Thread Eyal Redler via Cocoa-dev
ehaviour. > > —Graham > > (Forgive any misinformation, I’m getting a little rusty). > >> On 6 Mar 2023, at 3:27 am, Eyal Redler via Cocoa-dev >> wrote: >> >> Hi, >> >> >> I'm using popUpContextMenu:withEvent:forView: to show a co