• 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: How do I do this / are there examples?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do I do this / are there examples?


  • Subject: Re: How do I do this / are there examples?
  • From: Olivier Lanctôt <email@hidden>
  • Date: Tue, 9 Nov 2004 08:31:04 -0500

1. that's easy... in the nib just uncheck "visible at launch time" for
every window instantiated
2. KeyCombos... there is a Cocoa wrapper around them. just search on
google or on the list. it's pretty well done, I'm using it in my new
app. It comes with an example project IIRC.
3. that's just how you code the thing.. just make the hotkey selector
toggle the window's visibiliy
 if the window if visible
    order out
else
   order front (and activate the NSApp regardardless)

4. just get a nswindow delegate.. if it loses key window, make it order out.

If you don't have any cocoa experience, it might be a good idea to
start with the basic stuff tho ;-)

On Tue, 9 Nov 2004 12:02:21 +0100, Christoffer Lerno <email@hidden> wrote:
> Hi,
>
> I am planning on writing an app with the following behaviour:
>
> 1. The application initially has no window present.
> 2. Pressing some key-combination makes its window pop up regardless of
> active application, much like one can configure launch-bar to work.
> 3. Pressing the same key-combination hides the window from view again
> 4. Activating some other application also hides the application-window.
> 5. The window can receive drags-and-drop of files
>
> The question is how to get this window to pop up in front of everything
> and disappear when it is ordered back. I was also envisioning the
> window without the standard ornaments of a window (i.e. no title, no
> buttons).
>
> However, I am a little at loss where to start. It seems the problem can
> be narrowed down to:
>
> * Making a custom window (done by subclassing NSWindow?)
> * Registering global hot-key(s)
>
> Where do I start?
>
> /Christoffer
>
> _______________________________________________
> 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
>


--
Olivier
 _______________________________________________
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

References: 
 >How do I do this / are there examples? (From: Christoffer Lerno <email@hidden>)

  • Prev by Date: Cannot encode custom NSView
  • Next by Date: Re: Getting the desktop background
  • Previous by thread: How do I do this / are there examples?
  • Next by thread: Re: How do I do this / are there examples?
  • Index(es):
    • Date
    • Thread