Re: Detecting changes in Windows and Controls
Re: Detecting changes in Windows and Controls
- Subject: Re: Detecting changes in Windows and Controls
- From: Stefan Jung <email@hidden>
- Date: Wed, 16 Jan 2002 19:07:57 +0100
Am Mittwoch den, 16. Januar 2002, um 15:31, schrieb John Lombardo:
Could someone please explain who to make a program automatically
respond to
users' actions, such as window resizing and text input?
In case of window resizing you can register for NSWindowDidResize
notification.
The first of my problems involves setting the number of visible columns
in a
NSBrowser depending on the size of the window containing it. What I'm
after
is a means by which a method or selector can be called by the window
resizing. Similarly, I'd like to be able to make the program respond
interactively with the input of text into a NSComboBox, rather than
waiting
for the user to press return or switch focus.
Maybe the compleString: method of the NSComboBoxCell is a viable way for
you.
Oh, speaking of switching focus, how can I make the NSBrowser obtain
focus
programmatically?
makeFirstResponder:?!?
Stefan Jung