• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Cocoa programming-Add control at the run-time
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Cocoa programming-Add control at the run-time (From: Tan Dung Ho <email@hidden>)

  • Prev by Date: Re: Customising the behaviour of an NSTextFieldCell in an NSTableView
  • Next by Date: Re: Reading hex values from a file
  • Previous by thread: Cocoa programming-Add control at the run-time
  • Next by thread: A Question about NSFileHandle readDataOfLength:
  • Index(es):
    • Date
    • Thread