Re: Kludges when binding to 'value' of Menu Items
Re: Kludges when binding to 'value' of Menu Items
- Subject: Re: Kludges when binding to 'value' of Menu Items
- From: "I. Savant" <email@hidden>
- Date: Tue, 16 Oct 2007 13:52:59 -0400
> Wow. That would be really slick if it would work. To test this,
> first I purposely misspelled myBooleanKey and immediately got a "not
> key-value compliant" error, as expected. But after I spelled it
> correctly, I get weird errors when I try and switch or open a window,
> such as...
Maybe it's best if you back up and explain exactly what you're
trying to accomplish and how things are set up in your project (code
as well). I use the mainWindow.windowController.document.whatever
approach quite frequently for inspector palettes and such. As long as
everything is 100% KVC/KVO compliant and every document type "handles"
the bound key (even if it's a dummy), it works perfectly for me.
Granted, I've never used it in conjunction with menu items. It's
always just been easier to use the validation methods and
-menuNeedsUpdate: ...
--
I.S.
_______________________________________________
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