• 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: Mohsan Khan <email@hidden>
  • Date: Tue, 15 Apr 2008 00:36:34 +0200

Thanks, this does the trick!


- (void)setFrame: (NSRect)frameRect display: (BOOL)flag { #pragma unused( frameRect, flag )

	[super setFrame: myRect
		display: YES];
}



On må 14 apr 2008, at 05.00, Seth Willits wrote:

On Apr 13, 2008, at 10:56 AM, Mohsan Khan wrote:

I have a window (NSBorderlessWindowMask), this window gets pushed away when my Dock appears from being hidden.

Huh. I wouldn't expect it to do that given that it's borderless.



How can I bypass this behaviour for my window?

Should I use applicationDidChangeScreenParameters and reposition the window, or is there an option to make my window not care about the Dock appearing?

It'd probably be easier to just override setFrame in a window subclass and make sure it's always what it should be. Just a thought.




--
Seth Willits

_______________________________________________

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>)
 >Re: Window moved when dock appears. (From: Seth Willits <email@hidden>)

  • Prev by Date: NSMenuItem view bug with status bar menu
  • Next by Date: Memory leak when re-alloc Methods
  • Previous by thread: Re: Window moved when dock appears.
  • Next by thread: Re: Window moved when dock appears.
  • Index(es):
    • Date
    • Thread