• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
[NSButtonCell] How to ask for refresh when a window resigns from being the key window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[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


  • Prev by Date: Re: How to display simple dialog at application startup?
  • Next by Date: Re: Big picture relationships between NSConnection, NSInputStream, NSOutputStream etc
  • Previous by thread: Re: String Constant containing 2 ASCII Control Chars
  • Next by thread: Weird warning
  • Index(es):
    • Date
    • Thread