• 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: Binding NSPopupButton [SOLVED]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Binding NSPopupButton [SOLVED]


  • Subject: Re: Binding NSPopupButton [SOLVED]
  • From: Larry Gerndt <email@hidden>
  • Date: Sun, 31 Oct 2004 22:31:39 -0800

> I'm having a little problem binding an NSPopupButton to an NSArrayController.
> The problem is that when I first click the popup, I see an extra item at the
> bottom called "No Value". If I choose one of the other items, then the next
> time I click the popup, the "No Value" is gone and everything is good. Does
> anyone understand why the "No Value" item ever gets put into the menu?

I solved this after doing some more thinking. The problem was that I had
bound the NSArrayController's "selectedObject" to an attribute
("selectedConversation") in my model, but I was not setting that attribute.
The solution was to call SetSelectedConversation: after adding the very
first conversation object to the array.

--
Larry Gerndt
AIM Handle: SonOfTheSonOfMan
Let the truth be told though the heavens fall -- James Garrison

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Binding NSPopupButton (From: Larry Gerndt <email@hidden>)

  • Prev by Date: Re: Arranging Windows [Newbie]
  • Next by Date: Re: app won't run from non admin account
  • Previous by thread: Binding NSPopupButton
  • Next by thread: Re: Cocoa-dev Digest, Vol 1, Issue 214
  • Index(es):
    • Date
    • Thread