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

NSPopUpButton frustration


  • Subject: NSPopUpButton frustration
  • From: Frank Fenn <email@hidden>
  • Date: Mon, 14 Apr 2003 18:27:21 -0600

Hi all,

I've created a PrefsPane project and added an NSPopUpButton in IB. I've assigend an IBAction (setPrefsItem)
and the button itself as an outlet (prefsPopup). The button has 3 items defined via IB and I've set unique tags.

The action method does the following:

[prefs setState:[sender indexOfSelectedItem]];

the value is saved within a directory and always has the correct value.

When I open the preferences, in -(void)mainViewDidLoad I extract the
value from the saved preferences (still correct) and call

[prefsPopup selectItemAtIndex:index];

The internal value gets set but the visual representation is not updated. Always the item last set in IB is visible.
I've tried to synchronize the title with the selected item but had no luck. In a little non prefs app this works fine.

Any suggestions?

--

regards
Frank Fenn - Bright Light Software
_______________________________________________
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.

References: 
 >OSType (From: Georges Engelmann <email@hidden>)

  • Prev by Date: Is NSPrintSaveJob best way to create a PDF?
  • Next by Date: Re: mutableCopy of array
  • Previous by thread: OSType
  • Next by thread: Re: OSType
  • Index(es):
    • Date
    • Thread