Re: Combo box on 800x600
Re: Combo box on 800x600
- Subject: Re: Combo box on 800x600
- From: j o a r <email@hidden>
- Date: Tue, 25 May 2004 19:53:35 +0200
In contrast with regular pop up menus, the "menu" (it's not really a
menu, more like a floating window with a table view) that you open from
a combo box doesn't automatically resize to fit the screen.
You shouldn't setNumberOfVisibleItems to the number of items in your
data source, at least not if you don't cap it to some reasonable value
- probably something that matches your minimum supported screen size.
Don't forget to file a bug report / enhancement request with Apple if
you think that the combo box can be improved.
j o a r
On 2004-05-25, at 19.15, Eric Long wrote:
>
I am using an NSComboBox with a number of items on the menu. It has
>
scrolling enabled, but when the user clicks to bring up the menu and
>
the app
>
is running on a small screen resolution, like 800x600, there are items
>
that
>
don't fit and can't be scrolled into view. (I never actually see a
>
scroll
>
bar become active, though it appears it should and if you check the
>
combo
>
box method hasVerticalScroller it returns YES).
>
>
I'm not sure what to do about this problem. I don't see anything in
>
the
>
archives describing similar glitches, so I figure it's just my lack of
>
experience working with this control.
>
>
I am using a custom data source. In my awakeFromNib method I call
>
setDataSource to set it then call setNumberOfVisibleItems to the
>
count of
>
my array of items. Is there anything else I might need to do so the
>
user is
>
able to access all the items properly?
>
>
On more commonly used screen resolutions things fit and I don't see
>
the bug,
>
but it will annoy the occasional user working in a lower resolution. I
>
also
>
noticed if I position the window "just so," even with more screen
>
space I
>
can get an item or two to disappear of the bottom edge irretrievably.
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
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.