Re: Trouble centering window after mode switch (solved)
Re: Trouble centering window after mode switch (solved)
- Subject: Re: Trouble centering window after mode switch (solved)
- From: Ricky Sharp <email@hidden>
- Date: Wed, 31 Jan 2007 09:15:07 -0800
On Wednesday, January 31, 2007, at 02:47AM, "Andreas Mayer" <email@hidden> wrote:
>
>Am 31.01.2007 um 08:50 Uhr schrieb Matt R:
>
>> I've experimented with putting a backdrop window at
>> shielding level to block out the screen, and then having the
>> smaller main
>> windows float ontop of that at shielding level also. Now my problem is
>> trying to prevent users from bringing the backdrop window to the
>> front.
>
>Hm. Why not just put the other windows one level higher? i.e.
>CGShieldingWindowLevel()+1
That's an implementation detail that may go away (i.e. having multiple values available in-between levels). i.e. shielding + 1 may end up being some other special level that's interpreted in some special way.
>> I overrode the custom window's MouseDown event and did [NSApp
>> preventWindowOrdering], but it doesn't seem to work.
>
>I think your content view also needs to return YES for - (BOOL)
>shouldDelayWindowOrderingForEvent:(NSEvent *)theEvent
It's much easier to just to use the child window APIs (posted that in my earlier response).
--
Rick Sharp
Instant Interactive(tm)
_______________________________________________
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