Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > ComboBox

ComboBox
Thread Tools
Fresh-Faced Recruit
Join Date: Oct 2002
Location: Vancouver, Canada
Status: Offline
Reply With Quote
Jan 16, 2005, 06:37 AM
 
Hi everyone, I am in the midst of writing an application and have come accross a peculiar problem that should be quite simple to solve. I need to set the current selection of a ComboBox from my application. For example, i may have 20 items the user may choose from, but i want to set the default location in the list to display when clicked not always at the start of the list. Any ideas how to do this? I cant find any tags to set this index value.

Thanx
     
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status: Offline
Reply With Quote
Jan 16, 2005, 10:09 AM
 
     
oexel  (op)
Fresh-Faced Recruit
Join Date: Oct 2002
Location: Vancouver, Canada
Status: Offline
Reply With Quote
Jan 16, 2005, 06:07 PM
 
thank you for that. I am a Carbon developer however. Is there a similar function call for in the Carbon APIs?
     
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status: Offline
Reply With Quote
Jan 17, 2005, 04:41 AM
 
No idea. Look yourself.
     
oexel  (op)
Fresh-Faced Recruit
Join Date: Oct 2002
Location: Vancouver, Canada
Status: Offline
Reply With Quote
Jan 17, 2005, 06:28 AM
 
sadly, i did. I have read every control manager doc I could find and I even went through all the relevant header files. Looks like i'm gonna have to write some ObjC wrappers *thumbs down*. Thanx anyway Angus
     
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status: Offline
Reply With Quote
Jan 17, 2005, 07:24 AM
 
You didn't originally state that you were using HIComboBox... Be clearer in your questioning!

Basically I think the consensus is that HIComboBox is a bit pants. Your only real option is to file enhancement requests using Apple's Bug Reporter.

BTW note that you can't mix and match NSViews and HIViews.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 09:05 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2