• 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: Window moved when dock appears.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Window moved when dock appears.


  • Subject: Re: Window moved when dock appears.
  • From: Uli Kusterer <email@hidden>
  • Date: Mon, 14 Apr 2008 10:52:38 +0200

Am 13.04.2008 um 19:56 schrieb Mohsan Khan:
I have a window (NSBorderlessWindowMask), this window gets pushed away when my Dock appears from being hidden.

How can I bypass this behaviour for my window?


I think you should override:

- (NSRect)constrainFrameRect:(NSRect)frameRect toScreen:(NSScreen *)screen;

to just return the frameRect it is given, unchanged.

I thought there was a flag to get this behaviour automagically, but I can't find it right now. Maybe I just wrote a custom subclass that has this feature and forgot about it.

Others have already warned you about not covering up the dock because users get annoyed when that happens. But I guess if you're trying to do some graphical overlay or full-screen app it may be OK. Though in the case of a full-screen app, you may want to check out hiding the menu bar, that usually also hides the dock, IIRC, and fixes the issue in a much more elegant way. There's also a special "kiosk mode" for full screen apps that may be used to implement behaviour many full screen apps need.

Cheers,
-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de





_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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: 
 >Window moved when dock appears. (From: Mohsan Khan <email@hidden>)

  • Prev by Date: Re: Window moved when dock appears.
  • Next by Date: Re: Accessing Directory.app shared contacts
  • Previous by thread: Re: Window moved when dock appears.
  • Next by thread: Some GC questions
  • Index(es):
    • Date
    • Thread