• 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
Dimming controls when window inactive?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: Missing library -> Project Builder can't open!
  • Next by Date: Re: Undo - Redo?
  • Previous by thread: Help with NSTextView & RTFD files
  • Next by thread: suggestions for IB
  • Index(es):
    • Date
    • Thread