Splash screens (last message never went through)
Splash screens (last message never went through)
- Subject: Splash screens (last message never went through)
- From: April Gendill <email@hidden>
- Date: Sat, 20 Dec 2003 15:38:07 -0700
Ok... I have managed to create a splash screen that has no title bar.
In IB i have a custom view instance seperate from the window instance.
in the custom view I have placed an imageview, and on top of that a
transparent button. The transparent button connects to a method in the
controller which will close the current window. I have done it this way
because if I put the custom view in the window itself it does not show
I just get a black square where the window should be.
Anyway Nothing I can do will make the button in this view close the
window, actually nothing I can do will make anything happen with a
mouse down. Now I know it is possible to make the window disappear with
a mouse click, I've seen apps do it. How do they do it?
this is the code I'm using to display the window, everything is
connected up in IB
NSRect contentRect = [loadWindow frame];
[loadWindow initWithContentRect:contentRect
styleMask:NSBorderlessWindowMask backing:NSBackingStoreBuffered
defer:NO];
[loadWindow setBackgroundColor: [NSColor clearColor]];
[theImage setImage:[NSImage imageNamed:@"popup.tif"]];
[[NSImage imageNamed:@"popup.tif"] compositeToPoint:NSZeroPoint
operation:NSCompositeSourceOver];
[loadWindow setContentView:theView];
[theView setNeedsDisplay:YES];
[loadWindow setLevel: NSStatusWindowLevel];
[loadWindow setHasShadow: YES];
[loadWindow makeKeyAndOrderFront:self];
_______________________________________________
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.