Re: growing an NSView?
Re: growing an NSView?
- Subject: Re: growing an NSView?
- From: Charles Jolley <email@hidden>
- Date: Thu, 8 Nov 2001 02:43:35 -0600
Re: changing the window size
Easy. Check the docs on NSWindow's -setFrame:display:animate:
Re: showing the view
One simple way to do this if the window will expand downward. Set
your content view to be a view that uses flipped coordinates (hint,
check NSView's -isFlipped method). This is important because it will
cause the view to lay out from the top rather than from the bottom.
This will allow your window to expand downward without shifting the
contents of your view. Now, fill in the view as if it were expanded
and set the initial size of the window so it hides the bottom part.
The benefit of this approach is that you can change the size of
your view and change its contents in anyway you want regardless of
whether or not the bottom part is supposed to be visible.
Re: the arrow control
I don't believe AppKit comes with one of these prebuilt. It would
be very easy to create one of these, though. It took me fifteen minutes
to add it to some custom view on my project.
Hope that helps.
Cheers,
-Charles
On Wednesday, November 7, 2001, at 05:12 PM, email@hidden wrote:
Hello everyone,
I would like to have an arrow at the bottom of my window such that when
pressed will point down and the window will extend, and I can put a
text view within the extend part. I've seen this in many
applications. How do they do this? Do they extend the view? Do they
create another view below the current view?
Thanks,
mac
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev