> On 5 Apr 2017, at 10:45, J.E. Schotsman <jesc...@xs4all.nl> wrote: > > >> On 03 Apr 2017, at 21:00, J.E. Schotsman wrote: >> >> What is the Cocoa way of enabling/disabling a group of controls? >> In Carbon I used to use a user pane for that. >> I thought I would try an NSBox but then I realized it is not a control. > > Nobody? > I thought this would be a simple and solved problem. > I tried subclassing MyEmbedder:NSControl and embedding in a custom view of > class MyEmbedder. > Alas, setting the isEnabled property of the custom view has no effect on the > embedded controls. > What am I missing?
I don’t think you are missing anything. There is no built in support for this AFAIK. For disabling groups of controls I generally just bind the relevant controls enabled property to a bool flag. J _______________________________________________ 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.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com