• 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: Making an NSWindow Resizable
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Making an NSWindow Resizable


  • Subject: Re: Making an NSWindow Resizable
  • From: Shaun Wexler <email@hidden>
  • Date: Wed, 17 Mar 2004 01:42:22 -0800

On Mar 17, 2004, at 12:25 AM, Daniel Todd Currie wrote:

Is there any way to programmatically make an NSWindow resizable, without re-initializing it? It would seem what is missing from the NSWindow API, is a -setStyleMask: method.

NSWindows are complex beasts, eh? There are two easy ways you can accomplish what it is I think you're asking: (1) create resizable windows, and use the NSWindow delegate method -windowWillResize:toSize: to constrain the frame so the user is unable to resize it when appropriate, or (2) simply create a new resizable window with the same frame, [newWindow setContentView:[oldWindow contentView]], then close the old window. YMMV. ;)
--
Shaun Wexler
MacFOH
http://www.macfoh.com
_______________________________________________
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: Making an NSWindow Resizable
      • From: Kevin Ballard <email@hidden>
References: 
 >Making an NSWindow Resizable (From: Daniel Todd Currie <email@hidden>)

  • Prev by Date: Re: Why can I make a new document this way?!
  • Next by Date: Re: multiple views with segmented control
  • Previous by thread: Making an NSWindow Resizable
  • Next by thread: Re: Making an NSWindow Resizable
  • Index(es):
    • Date
    • Thread