Re: NSComboBox initialFirstResponder and nextKeyView Outlets
Re: NSComboBox initialFirstResponder and nextKeyView Outlets
- Subject: Re: NSComboBox initialFirstResponder and nextKeyView Outlets
- From: email@hidden
- Date: Tue, 12 Mar 2002 19:14:40 -0800
Hello, I'm pretty new to OS X Cocoa programming and am having some
problems. I am building a simple interface using Interface Builder.
It consists of an uneditable NSComboBox drop down containing three
items, and an NSTextField.
I've made an initialFirstResponder connection from the window object to
the NSComboBox object and a nextKeyView connection from the NSComboBox
object to the NSTextField object and from the NSTextField object to the
NSComboBox object to allow users the ability to tab between input
items. When I test the interface (I have not done any coding yet), The
NSTextField object is selected, and I cannot tab out and to any other
objects. How can I make the NSComboBox object tab selectable?
In IB, combo boxes appear to have three relevant attributes: editable,
selectable, and enabled. My guess is that you want to change one or two
of those attributes; perhaps you want it to be enabled and selectable,
but not editable? From your description I'm not sure exactly what
you're trying to do, though, so that's about as much advice as I can
give.
The doc should tell you the methods to set these attributes, if you
can't use IB for some reason. Note the attributes might only be
accessible via a superclass method, or via a method on a cell kept by
the control. Finding the method that does what you want for an
NSControl subclass that uses a cell to draw is always a bit of an
adventure. :->
Ben Haller
Stick Software
_______________________________________________
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.