• 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: How to get the selected popupmenu item with core data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to get the selected popupmenu item with core data


  • Subject: Re: How to get the selected popupmenu item with core data
  • From: Michael Süssner <email@hidden>
  • Date: Thu, 28 May 2009 21:36:19 +0200

I have found a solution.
By adding a property to the File's Owner I have been able to bind the attribute to the PopupMenu and now it works fine.


I think that this implementation is according to the MCV-pattern, isn't it.

Thanks, for the help

Am 28.05.2009 um 20:49 schrieb Kyle Sluder:

On Thu, May 28, 2009 at 11:16 AM, Michael Süssner
<email@hidden> wrote:
Now I have the problem how I can read the index of the currently selected
object of the popupmenu.

This is typically indicative of a flawed design. You shouldn't be asking the UI for this; bind one of the selection bindings to a property of your controller and use that value.

--Kyle Sluder


_______________________________________________

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: How to get the selected popupmenu item with core data
      • From: Kyle Sluder <email@hidden>
References: 
 >How to get the selected popupmenu item with core data (From: Michael Süssner <email@hidden>)
 >Re: How to get the selected popupmenu item with core data (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: Triggering change notifications when modifying custom object ivars in core data app
  • Next by Date: Re: Bindings and core data
  • Previous by thread: Re: How to get the selected popupmenu item with core data
  • Next by thread: Re: How to get the selected popupmenu item with core data
  • Index(es):
    • Date
    • Thread