Re: Subviews of a borderless window - autoresizing mask does not work for me

2008-04-02 Thread Rob Keniger
On 03/04/2008, at 2:47 AM, Cathy Shive wrote: The names of the margin-related masks are confusing for sure, I always have to look it up because when I think about the names of the masks and then think about the "springs and struts" UI in Interface Builder, I always reverse them, too. I h

Re: Subviews of a borderless window - autoresizing mask does not work for me

2008-04-02 Thread Cathy Shive
The names of the margin-related masks are confusing for sure, I always have to look it up because when I think about the names of the masks and then think about the "springs and struts" UI in Interface Builder, I always reverse them, too. On Apr 2, 2008, at 6:38 PM, Nate Weaver wrote: Whoo

Re: Subviews of a borderless window - autoresizing mask does not work for me

2008-04-02 Thread Nate Weaver
Whoops, this jogged my memory. For some reason in my last response I thought -setAutoresizingMask specified the pinned margin and not the expanding margin. I'm not sure why... On Apr 2, 2008, at 11:13 AM, Cathy Shive wrote: Hi Hendrik, It seems that you're using the correct mask. The docum

Re: Subviews of a borderless window - autoresizing mask does not work for me

2008-04-02 Thread Cathy Shive
Hi Hendrik, It seems that you're using the correct mask. The documentation states that NSViewMinYMargin would make the bottom margin flexible, which is what you want. I notice that you originally set the frame for the subview at (0, 0). Is this because the subview is originally the same

Re: Subviews of a borderless window - autoresizing mask does not work for me

2008-04-02 Thread Nate Weaver
You probably want to use NSViewMaxYMargin instead of NSViewMinYMargin (NSViewMinYMargin is the bottom margin of the content view and not the top). On Apr 2, 2008, at 9:35 AM, Hendrik Holtmann wrote: Hi, I am creating a borderless window in source like this: containerWindow = [[[ContainerWi

Subviews of a borderless window - autoresizing mask does not work for me

2008-04-02 Thread Hendrik Holtmann
Hi, I am creating a borderless window in source like this: containerWindow = [[[ContainerWindow alloc] initWithContentRect:NSMakeRect (rect.origin.x,rect.origin.y-22-34,387,34) styleMask:NSBorderlessWindowMask backing:NSBackingStoreBuffered defer:NO] retain]; Then I add a custom view (c