regarding transparent NSWindow.
regarding transparent NSWindow.
- Subject: regarding transparent NSWindow.
- From: "Amit Jain" <email@hidden>
- Date: Thu, 4 Jan 2007 20:10:24 +0530
Hi All,
This is the sample code which I am using for making NSWindow:
-(id)initWithContentRect:(NSRect)contentRect styleMask:(unsigned int)aStyle
backing:(NSBackingStoreType)bufferingType defer:(BOOL)flag
{
if(self = [super initWithContentRect:contentRect
styleMask:NSBorderlessWindowMask backing:NSBackingStoreBuffered defer:NO])
{
[self setBackgroundColor: [NSColor clearColor]];
[self setAlphaValue:1.0];
[self setOpaque:YES];
[self setHasShadow: NO];
[self makeKeyAndOrderFront:self];
[self registerForDraggedTypes:[NSArray
arrayWithObjects:@"CorePasteboardFlavorType 0x6974756E",nil]];
return self;
}
}
In the above code when i use setOpaque:YES, then i am able to drag playlist
over it but when its value is set to NO then i am not able to drag the
playlist.
What i am trying to do is to make a transparent window and then drag
playlist over it from iTunes.
Please help as i have achieved 75% what i need. Its urgent.
Thanks in advance.
Regards...
@mit
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden