Dimming controls when window inactive?
Dimming controls when window inactive?
- Subject: Dimming controls when window inactive?
- From: Brant Vasilieff <email@hidden>
- Date: Sun, 28 Apr 2002 03:48:49 -0700
I've got a NSButton, that I tried using to create my own control. It's
a non-bordered button with in image and alternate image.
When the window is inactivated, the button doesn't use the alternative.
So now I'm thinking about creating my own subclass, but was wondering
what I should test in my drawing to tell if the control is in an active
window.
Should I follow the cell's->controlView>window->isMainWindow? or
isKeyWindow?
..
.
.
Ok So I've experimented around, got my subclass of the Cell doing the
drawing, yet, when I put the window in the background, it doesn't
refresh. Do I need to mark the control in some special way, or listen
for a particular notification?
TIA,
Brant
_______________________________________________
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.