Re: Finding out when something is selected
Re: Finding out when something is selected
- Subject: Re: Finding out when something is selected
- From: "John C. Randolph" <email@hidden>
- Date: Tue, 18 Mar 2003 17:56:04 -0800
On Tuesday, March 18, 2003, at 05:35 PM, Francisco Tolmasky wrote:
Ok, this is a stupid question I know, but I can't figure it out. How
do you find out when something is selected/unselected. For example I
want to know when a text field loses key view status or whatever so I
can put some grey text in it. Also when it is clicked so I can take
that grey text out. Also I'd like to know when a window is selected.
Thank you very much, sorry for the stupid question
Look at the docs for the NSNotification and NSNotificationCenter
classes. Also, see the NSWindow delegate methods -windowDidBecomeKey:
and -windowDidBecomeMain:
-jcr
John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
_______________________________________________
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.