firstResponder comparison failing
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