Re: How to create a window with a border
Re: How to create a window with a border
- Subject: Re: How to create a window with a border
- From: Christian Schneider <email@hidden>
- Date: Tue, 15 Mar 2005 10:11:35 +0100
On Fri, 11 Mar 2005 09:24:42 -0600, Scott Thompson <email@hidden> wrote:
>
> On Mar 11, 2005, at 9:16 AM, Christian Schneider wrote:
>
> >> Basically, what you do is create a borderless, transparent window.
> >> From
> >> there you can create the view of your choice as the background for
> >> your
> >> window and draw it any way you like.
> >
Sorry for the delay but I just realised that that brings me back full
circle to my original problem which was how to set the content view of
a window programmatically. The problem I had (the mail should be in
the archive) was that I tried to grab all views I added in the nib
file from the standard content view, add them to a newly created
custom view and then set that custom view as new content view. The
result was that several subviews where missing and the app frequently
crashed.
If I'd implement a borderless window and were to draw the title bar
myself I'd have to do that in the content view. I realise I can create
a custom view in IB and add my interface to that custom view and then
set that view as content view, but that means I have to re-layout each
of my windows. Being lazy I'd like to avoid that and would very much
prefer to just change the custom class of the windows.
Or is there a better approach?
chris
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden