• 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
NSToolbar EXC_BAD_ACCESS after configuration (leopard)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSToolbar EXC_BAD_ACCESS after configuration (leopard)


  • Subject: NSToolbar EXC_BAD_ACCESS after configuration (leopard)
  • From: John Boydon <email@hidden>
  • Date: Fri, 6 Mar 2009 11:43:31 +0100

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 (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


  • Prev by Date: Re: [Q] NSObject's poseAsClass - Replacement?
  • Next by Date: Re: [Q] NSObject's poseAsClass - Replacement?
  • Previous by thread: Extract components from PDF page
  • Next by thread: Re: A question about NSPredicateEditor and NSPredicateEditorRowTemplate
  • Index(es):
    • Date
    • Thread