Re: disable manual resizing of NSWindow
On 6/18/08 3:40 PM, Uli Kusterer said: >> In a NSWindow, I'd like to disable manual resizing(don't allow user >> to drag the lower right corner to resize the window), only by >> clicking 'max' and 'restore' icons, possible? the reason is, I put a >> QuickTIme's movieview in the window and the preserving aspect ratio >> is on, manual resizing will not do good. > > > Huh? You're not making sense here... an NSWindow can be told to >maintain an aspect ratio when resizing (or a grid step size). Wouldn't >it be much better to just set that up correctly instead of removing >the grow box? Well, the window can be told to keep an aspect ratio, but unless the QT view fills the entire window's content, it's not too useful. NSWindow's resize delegate methods would probably be more useful. -- Sean McBride, B. Eng [EMAIL PROTECTED] Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Canada ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: disable manual resizing of NSWindow
Am 18.06.2008 um 15:15 schrieb Angelo Chen: In a NSWindow, I'd like to disable manual resizing(don't allow user to drag the lower right corner to resize the window), only by clicking 'max' and 'restore' icons, possible? the reason is, I put a QuickTIme's movieview in the window and the preserving aspect ratio is on, manual resizing will not do good. Huh? You're not making sense here... an NSWindow can be told to maintain an aspect ratio when resizing (or a grid step size). Wouldn't it be much better to just set that up correctly instead of removing the grow box? Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.zathras.de ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: disable manual resizing of NSWindow
Le 18 juin 08 à 15:15, Angelo Chen a écrit : Hi, Is there a way to do following: In a NSWindow, I'd like to disable manual resizing(don't allow user to drag the lower right corner to resize the window), only by clicking 'max' and 'restore' icons, possible? the reason is, I put a QuickTIme's movieview in the window and the preserving aspect ratio is on, manual resizing will not do good. Thanks, Angelo You can implements the windowWillResize:toSize: delegate method. Alternatively, you can force the window aspect ratio using -[NSWindow setAspectRatio:]; smime.p7s Description: S/MIME cryptographic signature ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: disable manual resizing of NSWindow
If you are creating Window in IB, then in window inspector Uncheck the reResize checkbox. In programmatic approach, you have to set the Window's style mask. - Apparao. 2008/6/18 Angelo Chen <[EMAIL PROTECTED]>: > Hi, > > Is there a way to do following: > > In a NSWindow, I'd like to disable manual resizing(don't allow user to drag > the lower right corner to resize the window), only by clicking 'max' and > 'restore' icons, possible? the reason is, I put a QuickTIme's movieview in > the window and the preserving aspect ratio is on, manual resizing will not do > good. > > Thanks, > > Angelo > > > > > Yahoo! Mail具備一流的網上安全保護功能,請前往 http://hk.antispam.yahoo.com/ 了解更多相關資訊! > ___ > > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) > > 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: > http://lists.apple.com/mailman/options/cocoa-dev/apparao.forums%40gmail.com > > This email sent to [EMAIL PROTECTED] > ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
disable manual resizing of NSWindow
Hi, Is there a way to do following: In a NSWindow, I'd like to disable manual resizing(don't allow user to drag the lower right corner to resize the window), only by clicking 'max' and 'restore' icons, possible? the reason is, I put a QuickTIme's movieview in the window and the preserving aspect ratio is on, manual resizing will not do good. Thanks, Angelo Yahoo! Mail具備一流的網上安全保護功能,請前往 http://hk.antispam.yahoo.com/ 了解更多相關資訊! ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]