• 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: Floating Panel Problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Floating Panel Problems


  • Subject: Re: Floating Panel Problems
  • From: Schwill Daniel <email@hidden>
  • Date: Wed, 24 Jan 2007 14:09:19 +0100

Hi Daniel,

use:

	[(NSPanel *)[self window] setBecomesKeyOnlyIfNeeded:YES];

in the awakeFromNib Method of you WindowController that handles the insprector panel.

This setting doesn't steals the focus away from the document window when you click a control in the inspector window that doesn't really need the focus.

Greetings,

   Daniel


Am 24.01.2007 um 13:01 schrieb Daniel Kennett:

Hi list,

I'm trying to make an inspector window for my application, and I'm have problems getting it behaving correctly.

I'd like the inspector window to float a la iWork and the like, but the panel (set to Utility Window in IB) steals focus away from the main window when it's clicked and makes it inactive. Also, since I've put in the floating window, the Application menu in my program won't work - the Quit, Hide, etc items are all disabled.

Anyone know what could be happening?

Thanks,

-- Daniel_______________________________________________

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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


References: 
 >Floating Panel Problems (From: Daniel Kennett <email@hidden>)

  • Prev by Date: Re: Regarding launching an application at startup of mac.
  • Next by Date: Any way to find out that the dragged item from iTunes is a playlist or tracks.
  • Previous by thread: Floating Panel Problems
  • Next by thread: Any way to find out that the dragged item from iTunes is a playlist or tracks.
  • Index(es):
    • Date
    • Thread