FROM : Glen Simmons
DATE : Thu Aug 03 22:52:39 2006
On Aug 3, 2006, at 1:09 PM, Matt Neuburg wrote:
> On Wed, 2 Aug 2006 22:12:59 -0500, Glen Simmons
> <glen.<email_removed>>
> said:
>> Odd problem: I have several NSPopUpButtons in my app that are all set
>> up the same - type Pulldown, style Square. For some reason, two of
>> them show one of their menu items checked when the app runs. I didn't
>> think NSPopUpButtons showed an item as checked if they were set to
>> pulldown. I don't want any of the items checked. Interface Builder
>> won't let me set the state of these menu items. How do I fix this
>> (other than writing code just to turn this off)?
>
> Glen - I'm pretty sure the behavior you describe is not normal, so
> I would
> look for code that might be doing this (e.g. something you do in
> validateMenuItem or similar target-related methods). Look for
> setState:
> calls in particular. m.
I would agree that the behavior is abnormal, but I don't believe my
code is responsible. To be sure, I just put code in awakeFromNib to
test the initial state, and one of the items does have a state of
NSOnState. Maybe something goofed up in the nib?
Glen
DATE : Thu Aug 03 22:52:39 2006
On Aug 3, 2006, at 1:09 PM, Matt Neuburg wrote:
> On Wed, 2 Aug 2006 22:12:59 -0500, Glen Simmons
> <glen.<email_removed>>
> said:
>> Odd problem: I have several NSPopUpButtons in my app that are all set
>> up the same - type Pulldown, style Square. For some reason, two of
>> them show one of their menu items checked when the app runs. I didn't
>> think NSPopUpButtons showed an item as checked if they were set to
>> pulldown. I don't want any of the items checked. Interface Builder
>> won't let me set the state of these menu items. How do I fix this
>> (other than writing code just to turn this off)?
>
> Glen - I'm pretty sure the behavior you describe is not normal, so
> I would
> look for code that might be doing this (e.g. something you do in
> validateMenuItem or similar target-related methods). Look for
> setState:
> calls in particular. m.
I would agree that the behavior is abnormal, but I don't believe my
code is responsible. To be sure, I just put code in awakeFromNib to
test the initial state, and one of the items does have a state of
NSOnState. Maybe something goofed up in the nib?
Glen
| Related mails | Author | Date |
|---|---|---|
| Glen Simmons | Aug 3, 05:12 | |
| Matt Neuburg | Aug 3, 20:09 | |
| Glen Simmons | Aug 3, 22:52 |






Cocoa mail archive

