• 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
NSPopUpButton
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSPopUpButton


  • Subject: NSPopUpButton
  • From: Clark Mueller <email@hidden>
  • Date: Sat, 13 Apr 2002 09:11:10 -0600

Hello folks. I'm having a problem with two of my five NSPopUpButtons that I use in my application. What I'm trying to do is to use selectItemWithTitle. This method works on three of five, where I pass the title in the form of [myPopupButton selectItemWithTitle:@"title to select"]. The other two, I am getting the title from a method in one of my classes that returns a string: [myPopupButton selectItemWithTitle:[myClass methodThatReturnsAString]].

The items for these two menus that are selected this way are different for every user, and I place them into the menu before I try to select the item. I know that the item I am trying to select exists (it gets loaded into the menu, and I can select it manually. I also know that it isn't a problem with passing a string to the method that does not exist (because I use the [myClass methodThatReturnsAString] part in another part of the app, and it works just fine). I'm baffled. Any help would be much appreciated.

TIA,

Clark Mueller - email@hidden
---
http://www.finikin.com/
http://www.finikin.com/clark/
---
You see, wire telegraph is kind of a very, very long cat. You pull his tail in New York and his head is meowing in Los Angeles. Do you understand this? And radio operates exactly the same way: you send signals here, they receive them there. The only difference is that there is no cat.
-Albert Einstein
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
  • Follow-Ups:
    • Re: NSPopUpButton
      • From: "Donald A. Yacktman" <email@hidden>
  • Prev by Date: Re: AppleEvents from Cocoa?
  • Next by Date: Printer Info
  • Previous by thread: Re: AppleEvents from Cocoa?
  • Next by thread: Re: NSPopUpButton
  • Index(es):
    • Date
    • Thread