• 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: NSView directly drawn on screen?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSView directly drawn on screen?


  • Subject: Re: NSView directly drawn on screen?
  • From: Chunk 1978 <email@hidden>
  • Date: Sat, 13 Jun 2009 05:01:53 -0400

there should be a way, no?  i mean, even built-in spotlight accepts
keyboard events without the front app loosing focus.  you could try
this: activating the focus on your app in order to accept keyboard
events, and then resign focus back to the window that had focus.
although i think that quick shift might be noticeable and therefore
look ghetto, but it's worth a shot.  another though that just came to
mind is perhaps having some sort of invisible helper app running that
could be used simply to direct keyboard events to your app when it is
activated without the current front app loosing focus?  maybe?  just a
thought.

On Sat, Jun 13, 2009 at 4:51 AM, Michael Ash<email@hidden> wrote:
> On Fri, Jun 12, 2009 at 6:15 PM, John Ku<email@hidden> wrote:
>> I got to play around
>> with your suggestions but still cannot get it to not loose focus.
>> Thought it did give me a better perspective on how levels, frames,
>> keys work.
>> Thank you for that.
>> I have the NSWindow and removed NSView for testing, but when I clicked on
>> the NSWindow, it'll still switch focus to it. I got the level working,
>> always floating ontop of windows, but just need a way for my app to not
>> become key or attract focus, but still able to receive keyboard/mouse
>> events.
>
> You can't. If you want to receive keyboard events then you must have
> focus. If you don't want to have focus, then you can't receive
> keyboard events. Pick one or the other, because you can't have both.
>
> Mike
> _______________________________________________
>
> 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
>
_______________________________________________

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: NSView directly drawn on screen?
      • From: Uli Kusterer <email@hidden>
References: 
 >NSView directly drawn on screen? (From: John Ku <email@hidden>)
 >Re: NSView directly drawn on screen? (From: Chunk 1978 <email@hidden>)
 >Re: NSView directly drawn on screen? (From: John Ku <email@hidden>)
 >Re: NSView directly drawn on screen? (From: Chunk 1978 <email@hidden>)
 >Re: NSView directly drawn on screen? (From: John Ku <email@hidden>)
 >Re: NSView directly drawn on screen? (From: Michael Ash <email@hidden>)

  • Prev by Date: Re: NSView directly drawn on screen?
  • Next by Date: Re: Coming up with ideas
  • Previous by thread: Re: NSView directly drawn on screen?
  • Next by thread: Re: NSView directly drawn on screen?
  • Index(es):
    • Date
    • Thread