• 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
Re: Finding out when something is selected
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Finding out when something is selected (From: Francisco Tolmasky <email@hidden>)

  • Prev by Date: unknown class in nib file
  • Next by Date: Re: unknown class in nib file
  • Previous by thread: Finding out when something is selected
  • Next by thread: unknown class in nib file
  • Index(es):
    • Date
    • Thread