• 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: Trouble centering window after mode switch (solved)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: Trouble centering window after mode switch (solved) (From: "Matt R" <email@hidden>)
 >Re: Trouble centering window after mode switch (solved) (From: John Stiles <email@hidden>)
 >Re: Trouble centering window after mode switch (solved) (From: Ricky Sharp <email@hidden>)
 >Re: Trouble centering window after mode switch (solved) (From: "Matt R" <email@hidden>)
 >Re: Trouble centering window after mode switch (solved) (From: Andreas Mayer <email@hidden>)

  • Prev by Date: Re: Trouble centering window after mode switch (solved)
  • Next by Date: Re: Please can any one sugest or send me Email validation code.
  • Previous by thread: Re: Trouble centering window after mode switch (solved)
  • Next by thread: Re: Trouble centering window after mode switch (solved)
  • Index(es):
    • Date
    • Thread