Hello everybody,

I have a problem with NSToolbar in leopard. May be I am using it in a wrong way.

In order to mutually enable/disable two toolbar items, I created a boolean variable in the delegate class and bound the toolbar items to it using Enabled entry in the Interface Builder Inspector.

The two toolbar items are then bound to selectors where the state of the boolean variable is modified. In this way when one item is enabled the other one is disabled. Something similar to Play and Pause in a media player.

The toolbar items are enabled/disabled according with the variable value and their behavior is correct. But after a toolbar customization (just display the customization panel is enough) any operation on toolbar that involves a modification of the boolean variable produces a EXC_BAD_ACCESS.

Any idea about this?

I created a simple test that can be downloaded from: 
http://www.savefile.com/files/2029001
(this file will be deleted in 30 days).

regards
        john
--
John Boydon

_______________________________________________

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to