Re: Detecting changes in Windows and Controls
Re: Detecting changes in Windows and Controls
- Subject: Re: Detecting changes in Windows and Controls
- From: Charles Srstka <email@hidden>
- Date: Wed, 16 Jan 2002 11:33:15 -0600
Try looking into the delegate methods for the NSWindow and NSComboBox
classes. For NSWindow, I think it's windowDidResize:. Not sure what it
is for NSComboBox, but you can look it up in the docs. If you can't find
what you want, try looking at superclasses of NSComboBox. I'm sure
there's a delegate method in there somewhere that allows you to do
something when the combo box's contents change.
On Wednesday, January 16, 2002, at 08:31 AM, John Lombardo wrote:
Could someone please explain who to make a program automatically
respond to
users' actions, such as window resizing and text input?
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.
Oh, speaking of switching focus, how can I make the NSBrowser obtain
focus
programmatically?
Answers to any or all of these issues would be greatly appreciated.
Cheers,
Bard
Note: this message might arrive twice, 'cause I've just sent it off
with the
wrong reply-to address. If it does, we'll just have to deal with it
and get
on with our lives.
--
==============================================
Link me, Embed me, Treat me like an Object.
----------------------------------------------
_______________________________________________
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.