Re: How to deal with a MenuItem with both a binded state property and an action method

2008-06-29 Thread Joan Lluch (casa)
El 28/06/2008, a las 18:44, Keary Suska escribió: 6/28/08 8:54 AM, also sprach [EMAIL PROTECTED]: To sumarize, the problem is that I am not able to change the menuItem state programatically (ie. in myAction) without avoiding the second call to setMenuState. However if the call to myAction com

Re: How to deal with a MenuItem with both a binded state property and an action method

2008-06-28 Thread Keary Suska
6/28/08 8:54 AM, also sprach [EMAIL PROTECTED]: > To sumarize, the problem is that I am not able to change the menuItem > state programatically (ie. in myAction) without avoiding the second > call to setMenuState. However if the call to myAction comes from a > button set up in IB (instead the menu

Re: How to deal with a MenuItem with both a binded state property and an action method

2008-06-28 Thread Joan Lluch (casa)
El 28/06/2008, a las 9:59, Ken Thomases escribió: On Jun 28, 2008, at 2:41 AM, Joan Lluch (casa) wrote: The problem remains because when the user selects the menuItem the following happens: FIRST- myAction is executed (possibly setting menuState to an appropiate value) SECOND - setMenuS

Re: How to deal with a MenuItem with both a binded state property and an action method

2008-06-28 Thread Ken Thomases
On Jun 28, 2008, at 2:41 AM, Joan Lluch (casa) wrote: The problem remains because when the user selects the menuItem the following happens: FIRST- myAction is executed (possibly setting menuState to an appropiate value) SECOND - setMenuState is executed with a value contrary to the last

Re: How to deal with a MenuItem with both a binded state property and an action method

2008-06-28 Thread Joan Lluch (casa)
El 28/06/2008, a las 0:23, Keary Suska escribió: 6/27/08 4:06 PM, also sprach [EMAIL PROTECTED]: I am struck in what should be a simple task so I would appreciate any help. I have a menu item which I want to show a default on or off state, so I set up a binding in IB to a BOOL "monitor" prop

Re: How to deal with a MenuItem with both a binded state property and an action method

2008-06-27 Thread Keary Suska
6/27/08 4:06 PM, also sprach [EMAIL PROTECTED]: > I am struck in what should be a simple task so I would appreciate any > help. > > I have a menu item which I want to show a default on or off state, so > I set up a binding in IB to a BOOL "monitor" property in my > controller. This works ok and b

How to deal with a MenuItem with both a binded state property and an action method

2008-06-27 Thread Joan Lluch (casa)
I am struck in what should be a simple task so I would appreciate any help. I have a menu item which I want to show a default on or off state, so I set up a binding in IB to a BOOL "monitor" property in my controller. This works ok and both the check mark in the menu item and the property