• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSButton (radio button) not calling action when overlapped by invisible NSButton?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSButton (radio button) not calling action when overlapped by invisible NSButton?


  • Subject: NSButton (radio button) not calling action when overlapped by invisible NSButton?
  • From: Aandi Inston <email@hidden>
  • Date: Tue, 10 Mar 2015 22:01:11 +0000

I am implementing the Cocoa back end of a portable control library, and
have hit one particular strange problem.

The dialogs are frequently very complex, with areas showing different
groups of controls according to context. Individual controls are
shown/hidden by the higher level code to make this work. Radio buttons are
naturally implemented as an NSButton with suitable style.

I have just one dialog where some of the radio buttons are "dead". It seems
that the action callback, set with setAction: is not called some of the
time.

Initial studies suggest that this happens when a later radio button
(another NSButton, or rather the same descendent of NSButton) occupies the
same space. This later button is hidden (setHidden:true), but seems to be
somehow stopping the click getting to the rear control.

Tested:
- The front, invisible, control is not receiving an action callback either
- Disabling (setEnabled:false) the hidden control does not change anything

Can anyone make any suggestions about whether this diagnosis has any ring
of truth, and how to fix or further investigate it?

Thanks in advance.
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden


  • Follow-Ups:
    • Re: NSButton (radio button) not calling action when overlapped by invisible NSButton?
      • From: Fritz Anderson <email@hidden>
  • Prev by Date: Re: removeObserver:forKeyPath:context: fails; but removeObserver:forKeyPath: works?!
  • Next by Date: Re: NSRunningApplication executableURL issue in Swift
  • Previous by thread: Re: removeObserver:forKeyPath:context: fails; but removeObserver:forKeyPath: works?!
  • Next by thread: Re: NSButton (radio button) not calling action when overlapped by invisible NSButton?
  • Index(es):
    • Date
    • Thread