In article <mail-EB9C11.09143916082003localhost>,
Michael Ash <mailmikeash.com> wrote:
[snip]Thanks, I'll try to get it working. With the knowledge provided,> This will only work if the button actually becomes the window's first
> responder. This is unlikely to happen, and doesn't really make sense for
> this. The first responder is supposed to be the current active control,
> whereas the OP wants to be able to have this button work at any time, as
> far as I can see.
> You may be able to implement flagsChanged: in your window's delegate, I
> think the delegate becomes part of the responder chain. If it doesn't,
> then you'll probably need a custom subclass of NSWindow. In either case,
> you can modify the button from there.
shouldn't be _too_ hard.
Apropos, hasn't anyone doen something like this before? I can't remember
the apps/Finder-features I've seen this, but I know it is part of
Apple's apps... AFAIK, a similar thing is done with the menubars in the
Finder, i.e. the Minimize menu item.
Problem is, I have a combobox, with dates in them. A user can add a date
by typing it in, and then push the button "Save" underneath it. In order
to remove the date, I wanted to let the user press down the option key,
thus changing the button into "Delete". I have very little room in this
window, so any other angles of approach are welcome.
Please replace "nospam" with "jegelie" in my e-mail address when
answering by mail.