• 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: borderless & resizable window: how?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: borderless & resizable window: how?


  • Subject: Re: borderless & resizable window: how?
  • From: Eyal Redler <email@hidden>
  • Date: Fri, 11 Jul 2003 15:52:35 +0300

I'm afraid this is an "all or nothing" thing. You can either use one of the standard windows and get all the features (including a title bar) or use NSBorderlessWindowMask and do it all yourself (including dragging and resizing).
A good starting point is Apple's "round transparent window" example which shows you how to implement dragging in such a window. Implementing resizing shouldn't be too hard to add to that...


HTH


On Friday, July 11, 2003, at 09:37 AM, Daryn wrote:

I need help creating a window that has no title bar, yet is resizable.

I can achieve the "no title bar" part by creating a window with styleMask:NSBorderlessWindowMask. I can find no other way to make the window resizable other than adding NSResizableWindowMask which unfortunately forces a title bar. The documentation would lead one to believe that this should only happen in conjunction with NSTitledWindowMask.

Implementing NSWindowScripting's isResizable doesn't make the window resizable either. What am I doing wrong, or does anyone know a workaround?

Daryn
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


Eyal Redler
------------------------------------------------------------------------ ------------------------
"If Uri Geller bends spoons with divine powers, then he's doing it the hard way."
--James Randi
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
  • Follow-Ups:
    • Re: borderless & resizable window: how?
      • From: Daryn <email@hidden>
References: 
 >borderless & resizable window: how? (From: Daryn <email@hidden>)

  • Prev by Date: Re: multiple definitions of compare: -- design flaw?
  • Next by Date: Re: multiple definitions of compare: -- design flaw?
  • Previous by thread: borderless & resizable window: how?
  • Next by thread: Re: borderless & resizable window: how?
  • Index(es):
    • Date
    • Thread