NSTableView lost focus detection
site_archiver@lists.apple.com Delivered-To: cocoa-dev@lists.apple.com I need to know when my NSTableView has lost and regained focus. _______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/site_archiver%40lists.apple... When the user selects a cell I change my text color to white so its more readable against the blue background. However, if they leave the window or select another NSControl somewhere on the window the selection color for the tableview cell turns gray and the white text needs to change to black to be readable, and then to white again if they click back into the tableview. I have tried playing with NSWindowDidBecomeKeyNotification and NSWindowDidResignKeyNotification which worked when they left the window, but didn't address what would happen if they focused on another element in the same window. I also can't get NSViewFocusDidChangeNotification to work how I would like it to. So basically, how do I know or detect a change of the focused status of an NSTableView / NSTableViews selected cell? This email sent to site_archiver@lists.apple.com
participants (1)
-
Adam