• 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
Newbie question: floating windows/panels
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Newbie question: floating windows/panels


  • Subject: Newbie question: floating windows/panels
  • From: Afonso Salcedo <email@hidden>
  • Date: Sat, 13 Apr 2002 00:30:46 +0000

First of all, I am terribly sorry for asking this in this list, but I spent hours searching the archives, google and just about anything else and couldn't find a solution.

Basically, I'm developing a small Cocoa Application, with one NSPanel. I want this NSPanel to be floating, so I made this an Utility panel.
Everything is implemented and working as expected.
The panel only has buttons, nothing else. Each button performs a different function.

Now what I really want to do is, when the user is running some app and clicks one of the buttons, I want it NOT to change the focus to my application, instead remaining on whatever the user was.

I've tried subclassing NSWindowController to call -setBecomesKeyOnlyIfNeeded:YES, I've tried playing around with the FirstResponder methods, but nothing. Everytime I click one of the buttons, the focus changes to the application.

I know this is probably easy to do and solve, so sorry for troubling you. I just got fed up of being stuck in such a simple thing :(

Thanks in advance,
Afonso
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Printing NSOpenGLView
  • Next by Date: Re: Icon for prefPane bundle?
  • Previous by thread: Printing NSOpenGLView
  • Next by thread: Re: Newbie question: floating windows/panels
  • Index(es):
    • Date
    • Thread