• 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
Re: Kludges when binding to 'value' of Menu Items
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Kludges when binding to 'value' of Menu Items
      • From: Jerry Krinock <email@hidden>
References: 
 >Kludges when binding to 'value' of Menu Items (From: Jerry Krinock <email@hidden>)
 >Re: Kludges when binding to 'value' of Menu Items (From: "I. Savant" <email@hidden>)
 >Re: Kludges when binding to 'value' of Menu Items (From: Jerry Krinock <email@hidden>)

  • Prev by Date: inappropriate tool palette activation problem
  • Next by Date: Apple Event in Cocoa
  • Previous by thread: Re: Kludges when binding to 'value' of Menu Items
  • Next by thread: Re: Kludges when binding to 'value' of Menu Items
  • Index(es):
    • Date
    • Thread