• 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
Custom NSView/NSWindow & First Responders
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Custom NSView/NSWindow & First Responders
      • From: Michael Ash <email@hidden>
  • Prev by Date: Re: App does not start on a different machine
  • Next by Date: Re: App does not start on a different machine
  • Previous by thread: Re: App does not start on a different machine
  • Next by thread: Re: Custom NSView/NSWindow & First Responders
  • Index(es):
    • Date
    • Thread