Um, nevermind, wrong OS for the fix.  Heh heh!

This will be fixed in 10.6.  In 10.5 and earlier, that's just too late, sorry!

-Ken

On Tue, Nov 25, 2008 at 7:54 AM, Ken Ferry <[EMAIL PROTECTED]> wrote:
> I cannot reproduce this in a test app.  The behavior was changed for
> 10.5 - before that comboBoxWillPopUp was too late to modify anything
> impacting the drop down position of the combo box.
>
> What OS are you on?
>
> If you could file a bug with a test app, that would be very helpful.
>
> -Ken
> Cocoa Frameworks
>
> On Tue, Nov 25, 2008 at 7:31 AM, Russ <[EMAIL PROTECTED]> wrote:
>>
>> I have an NSComboBox whose contents (internal list) gets loaded dynamically 
>> during the comboBoxWillPopUp notification. It is created with 
>> setNumberOfVisibleItems:9 and setHasVerticalScroller:YES. The first time the 
>> button is clicked, there is a removeAllItems and then the items are loaded 
>> in (over 100 of them) but the drop-down list that appears is only a single 
>> item tall and the scrollbar area is present, but plain gray with no 
>> scrollbar. All the items are present --- you can click inside the dropdown 
>> and then drag up or down to scroll through the list --- but you wouldn't 
>> know this from the single-item-high dropdown and disabled scrollbar. If one 
>> of the items is selected, that is the one shown in the single-line-high 
>> dropdown area. I can read back numberOfVisibleItems and hasVerticalScroller 
>> and they are correct, but what appears does not reflect these values.
>>
>> The SECOND time you click the button, the dropdown comes up the proper 
>> height and the scrollbar is present and active.
>>
>> I've tried a bunch of things inside the notification routine to try to 
>> convince it to do the right thing during the first dropdown -- calling 
>> noteNumberOfItemsChanged, re-calling setNumberOfVisibleItems and 
>> setHasVerticalScroller but with no effect.
>>
>> How can I convince NSComboBox to do the right thing? Thanks
>>
>>
>>
>>
>> _______________________________________________
>>
>> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
>>
>> Please do not post admin requests or moderator comments to the list.
>> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>>
>> Help/Unsubscribe/Update your Subscription:
>> http://lists.apple.com/mailman/options/cocoa-dev/kenferry%40gmail.com
>>
>> This email sent to [EMAIL PROTECTED]
>>
>
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to