• 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
Opening multiple times the same window ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Opening multiple times the same window ?


  • Subject: Opening multiple times the same window ?
  • From: Yann Bizeul <email@hidden>
  • Date: Sun, 17 Nov 2002 00:27:17 +0100

Hi,

I created a generic window in IB that I would like to instanciate to
open multiple time.

The generic window is configured to open at launch time, and in
implemened like that :

@implementation logWindow
- (id)initWithContentRect:(NSRect)contentRect styleMask:(unsigned
int)styleMask backing:(NSBackingStoreType)backingType defer:(BOOL)flag
{
self = [ super initWithContentRect:contentRect
styleMask:NSBackingStoreBuffered backing:backingType defer:flag ];
[ self setHasShadow: NO ];
[ self setOpaque: NO ];
[ self setBackgroundColor: [NSColor clearColor]];
return self;
}

I just want a borderless transparent window.
Now to create a new one :
NSRect logWindowRect = NSMakeRect(0 , 0 , 100, 100);
testLog = [[ logWindow alloc ] initWithContentRect: logWindowRect
styleMask: NSBorderlessWindowMask
backing: NSBackingStoreBuffered
defer: NO
];
[ testLog makeKeyAndOrderFront: self ];

But nothing happen. Where am I wrong ?

--
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.

  • Prev by Date: Re: Button cell palette
  • Next by Date: Some realities
  • Previous by thread: progress bar question
  • Next by thread: Some realities
  • Index(es):
    • Date
    • Thread