• 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: Newbie NSWindow question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Newbie NSWindow question


  • Subject: Re: Newbie NSWindow question
  • From: Yann Bizeul <email@hidden>
  • Date: Thu, 19 Dec 2002 20:31:39 +0100

> I have also found the styleMask method and used this
> to create a borderless window that cannot be moved, is
> there some way of moving all of the objects from the
> window created in Interface Builder to my new blank
> window in a way that keeps all of there Outlets and
> Actions etc?
I don't think so, but you can subclass your window. Create a new
NSWindow subclass, and in the code, override initWithContentRect: to be
:
- (id)initWithContentRect:(NSRect)contentRect styleMask:(unsigned
int)styleMask backing:(NSBackingStoreType)backingType defer:(BOOL)flag
{
self = [ super initWithContentRect:contentRect
styleMask:NSBorderlessWindowMask backing:backingType defer:flag ];
}

Now as your window is initialized, it will be without border, that's a
property you can not change after the window is initialized.
--
Yann Bizeul
TYNSOE.ORG - http://www.tynsoe.org/
Site technique consacri ` MacOS X
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Newbie NSWindow question (From: Brian Ling <email@hidden>)

  • Prev by Date: Why is this code leaking memory?
  • Next by Date: Async. Notifications in a multi-threaded application
  • Previous by thread: Newbie NSWindow question
  • Next by thread: Re: Newbie NSWindow question
  • Index(es):
    • Date
    • Thread