• 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
firstResponder comparison failing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

firstResponder comparison failing


  • Subject: firstResponder comparison failing
  • From: Mark Dawson <email@hidden>
  • Date: Fri, 09 Jun 2006 12:33:36 -0700

I'm having a problem with the first responder stuff; I figure it's something that I haven't learned about Cocoa/Obj-C:

[[x window] makeFirrstResponder:x];   // this works--the field becomes selected
id y = [[x window] firstResponder];
if (x ==y )                                           // this fails-- "x" & "y" have different pointer values

I figure this is part of Obj-C that I'm missing.  Looking at "y", I see that it is an "NSTextView" type ("x" is an "NSTextField" type).  How do I tell if "x" is a first responder/selected?

Thanks!

Mark

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: firstResponder comparison failing
      • From: Ryan Britton <email@hidden>
    • Re: firstResponder comparison failing
      • From: Julio Cesar Silva dos Santos <email@hidden>
  • Prev by Date: CoreData NSTreeController and NSOutline View
  • Next by Date: Re: firstResponder comparison failing
  • Previous by thread: CoreData NSTreeController and NSOutline View
  • Next by thread: Re: firstResponder comparison failing
  • Index(es):
    • Date
    • Thread