• 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
Binding to one specific object of an NSArrayController
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Binding to one specific object of an NSArrayController


  • Subject: Binding to one specific object of an NSArrayController
  • From: "Michael Varlik" <email@hidden>
  • Date: Mon, 31 Dec 2007 17:56:50 +0100

Hi,

In my application I have a submenu which represents the content of
an NSArrayController. When I add an object via the controllers add:
method a new menu item is created. But when I change the value of a
property from inside the table, this change is not reflected to the
menu items. Therefore I bound the NSArrayController's selection.name
keypath to the menu item's title when the menu item is added to the
menu. Unfortunetly selection.name is the wrong keypath, because the
title of all the menu items is the name of the selected item in the
table. So my question is: Is there a way to bind each NSMenuItem's
title to exactly one object managed by the NSArrayController?

Best regards,
Michael

--
Psssst! Schon vom neuen GMX MultiMessenger gehört?
Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger?did=10
_______________________________________________

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: Binding to one specific object of an NSArrayController
      • From: Keary Suska <email@hidden>
  • Prev by Date: Replacements for Depracated NSIsSymbolNameDefined(), NSLookupAndBindSymbol()
  • Next by Date: Re: Replacements for Depracated NSIsSymbolNameDefined(), NSLookupAndBindSymbol()
  • Previous by thread: Re: Replacements for Depracated NSIsSymbolNameDefined(), NSLookupAndBindSymbol()
  • Next by thread: Re: Binding to one specific object of an NSArrayController
  • Index(es):
    • Date
    • Thread