[NSButtonCell] How to ask for refresh when a window resigns from being the key window
[NSButtonCell] How to ask for refresh when a window resigns from being the key window
- Subject: [NSButtonCell] How to ask for refresh when a window resigns from being the key window
- From: Stéphane Sudre <email@hidden>
- Date: Thu, 4 Dec 2008 17:31:59 +0100
I have a subclass of NSButtonCell that uses a customized version of:
- (void) drawImage:(NSImage*) inImage withFrame:(NSRect) inFrame
inView:(NSView*) inControlView;
for radio buttons.
The issue I have is when the window that contains the cell resigns
from being the key window:
- If the state of the cell is NSOnState, the cell is refreshed.
- If the state of the cell is NSOffState, the cell is not refreshed
(this is probably an optimization since in the standard case, the look
is the same when the window is either key or not).
Problem:
--------
I want the cell to be refreshed even if the state is NSOnState.
Question:
---------
Which method should be overwritten to request a refresh whatever the
state of the cell is?
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden