NSPopUpButton not updating
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.