Custom NSView/NSWindow & First Responders
Custom NSView/NSWindow & First Responders
- Subject: Custom NSView/NSWindow & First Responders
- From: John Ku <email@hidden>
- Date: Wed, 10 Jun 2009 18:34:53 -0700
Good afternoon all,
Im having trouble setting the correct first responder / key window in my
app.
I have a subclass NSWindow with NSBorderlessWindowMask and a custom drawing
NSView inside the window. So the window is transparent showing the NSView's
drawing. The NSView image is drawn with NSDrawThreePartImage to create a
resizable window.
The problem is this: if i have an instance of NSTextField created within the
NSView or NSWindow, the text field is selectable with mouse but does not
accept keyboard events.
I have my NSView set acceptsFirstResponder & becomeFirstResponder to return
YES but still no dice.
Anyone got any suggestions or leads?
Thanks,
John
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden