views:

33

answers:

0

I have an NSMenuItem which I have bound to an NSUserDefaults boolean value in IB like so:

alt text

When bMenuHidden is true, I would like my NSMenuItem to be hidden, and vice versa. This works as expected under Snow Leopard. However, Leopard struggles in some cases. In particular: my NSMenuItem is visible upon first launching the application, regardless of the value of bMenuHidden. I've verified via Property List Editor that the value is present, has a Boolean type, and is set to true.

Admittedly, I don't have much experience with 'placeholder' values (the Apple documentation is a little confusing on the matter), but I've set everything to default to Yes (hide the menu in these cases, as it's better to be safe than sorry):

What am I doing wrong?