Re: Cocoa programming-Add control at the run-time
Re: Cocoa programming-Add control at the run-time
- Subject: Re: Cocoa programming-Add control at the run-time
- From: Steven Kramer <email@hidden>
- Date: Sat, 8 Jan 2005 09:58:19 +0100
Op 7-jan-05 om 4:09 heeft Tan Dung Ho het volgende geschreven:
Hi all!
I am new MAC user and Cocoa programming. I have studied Cocoa
with object-C by myself and I have writen a sample. It had a list box
to display english sentences in which some optional words (e.g Do you
have [breakfast, lunch, dinner]?) For this sentence, it was displayed
"Do you have [breakfast]?". when user click [breakfast], a combo box
which contain option words will be appeared and disapeared after user
select a word.
Can you tell me how to solve this problem? I used project
Buider and Interface Buider to write the sample in object-C.
Thanks a lot!
Tan Dung.
I think your problem is going to be to get the coordinates of the
optional text, where you'd like the combo box. If you can find them, it
will be relatively easy. Search the documentation for addSubview,
setFrame and NSComboBox. Look here for text coordinates calculation:
http://lists.apple.com/archives/cocoa-dev/2004/Dec/msg01030.html
Regards,
Steven Kramer
--
email@hidden
http://sprintteam.com/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden