• 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: Constrained Window Resizing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Constrained Window Resizing


  • Subject: Re: Constrained Window Resizing
  • From: Chris Gehlker <email@hidden>
  • Date: Thu, 13 Sep 2001 20:20:59 -0700

On 9/13/01 2:29 PM, "Lloyd Sargent" <email@hidden> wrote:

>> I want to make a window or a view in a window resizable. The wrinkle is
>> that
>> it doesn't make sense in my app it makes sense to constrain it to
>> maintain
>> the aspect ratio. This isn't hard to code but I can't find any UI
>> conventions to let the user know that it's resizable only along a path.
>>
>> Anybody have any ideas?
>
> Hmmm... not GOOD ideas...
>
> It is interesting that I have dealt with UI's that basically have said
> "you can resize it but only on my terms" and they have not had anything
> to indicate that it was only resizeable along a given aspect ratio
> (other than resizing along the given aspect ratio). I believe that
> Photoshop's selection tool can be set to a specific aspect ratio and
> unless you remember setting it that way it looks no different than a
> regular selection (except, again, everything moves in that aspect ratio).
>
> This seems to be something that will become obvious to the user when
> they do the resizing, right? I'm not sure you need to inform them of
> this fact if they don't resize at all.
>

Hmm...
I've been paging through the Cocoa docs and it does look like they intend
you to pin the view to the window and then just send setAspectRatio: to the
window. Of course setAspectRatio: doesn't actually work. ;-). It does show
that you and Apple are thinking along the same lines.

Does anyone know if setAspectRatio: works in 10.1? Is using the delegate the
best work around for now?
--
Cogito Ergo Spud. - I think therefore I yam.


References: 
 >Re: Constrained Window Resizing (From: Lloyd Sargent <email@hidden>)

  • Prev by Date: Please reply about this Open GL thing
  • Next by Date: Re: Mac OS X 10.1 File Name Extension Guidelines
  • Previous by thread: Re: Constrained Window Resizing
  • Next by thread: Re: Constrained Window Resizing
  • Index(es):
    • Date
    • Thread