Re: Floating Panel Problems
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