main window notification
main window notification
- Subject: main window notification
- From: Tobias Hermann <email@hidden>
- Date: Mon, 26 May 2003 13:42:00 +0200
hi!
I wonder how all the controls redraw themselves when the window resigns
the main status. Do they listen to notifications ? Or is there a
simpler way.
The point is: I want to draw a selected part of my custom control in
gray instead of blue, when the window is not the main window, like
every other cocoa control does.
But my custom view does not get a display method when the window
resigns the main status.
Does every view that wants to act like that have to add itself to the
notification center? Or is there a better way like simply setting a
NSView flag or overriding a method of NSView that I did not notice ?
Thanx in advance!
Tobi
_______________________________________________
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.