Managing Form Entries
NSForm has several methods for manipulating its entries. These methods dynamically add and remove entries:
To add an entry, use
addEntry:andinsertEntry:atIndex:.To remove an entry, use
removeEntryAtIndex:.
These methods find and select a particular entry:
To get the index of the entry with a specified tag, use
indexOfCellWithTag:.To get the index of the entry that contains the insertion point, use
indexOfSelectedItem.To get the entry at a specified index, use
cellAtIndex:To select all the text in a specified entry,
selectTextAtIndex:.
Copyright © 2002 Apple Computer, Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2002-11-12