• 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: How to create a window with a border
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: How to create a window with a border (From: Christian Schneider <email@hidden>)
 >Re: How to create a window with a border (From: "Sean McBride" <email@hidden>)
 >Re: How to create a window with a border (From: Scott Thompson <email@hidden>)
 >Re: How to create a window with a border (From: Scott Thompson <email@hidden>)
 >Re: How to create a window with a border (From: Christian Schneider <email@hidden>)
 >Re: How to create a window with a border (From: Scott Thompson <email@hidden>)

  • Prev by Date: Re: Duplicate Nib Windows
  • Next by Date: Re: dataUsingEncoding: vs. archivedDataWithRootObject:
  • Previous by thread: Re: How to create a window with a border
  • Next by thread: [ANN] PostgreSQL for Mac Project
  • Index(es):
    • Date
    • Thread