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

NSPopUpButton not updating


  • Subject: NSPopUpButton not updating
  • From: spike <email@hidden>
  • Date: Tue, 18 Mar 2003 15:16:24 -0500

I have, in my program, an timer that fires to check for changes in mountedRemovableMedia and updates a popupButton to reflect the currently mounted volumes, but it doesn't update as I expect unless I eject (with code) a device.

this is what I do:

[dvdMediaPopUp removeAllItems];
[dvdMediaPopUp addItemsWithTitles: dvdMediaListName];

NSLog(@"dvdMediaPopUp addItemsWithTitles: \n%@", dvdMediaListName); //this outputs 2 the data for an array with 2 items, as expected

but when I click on the popupButton, it only has 1 item in it (the default item that IB won't let me delete)

When I NSWorkSpace unmountAndEjectDeviceAtPath:, then the popup shows what it's supposed to and updates properly.

any ideas? calling setNeedsDisplay: YES does nothing. =/

TIA.


...spike
_______________________________________________
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.

  • Prev by Date: Re: Unicode Characters
  • Next by Date: Re: OT: custom .dmg files
  • Previous by thread: Re: Unicode characters
  • Next by thread: Optimized drawing
  • Index(es):
    • Date
    • Thread