Re: regarding transparent NSWindow.
Re: regarding transparent NSWindow.
- Subject: Re: regarding transparent NSWindow.
- From: Nir Soffer <email@hidden>
- Date: Thu, 4 Jan 2007 22:54:43 +0200
On Jan 4, 2007, at 16:40, Amit Jain wrote:
[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.
I did not try dragging, but transparent window will not accept mouse
clicks. Try need a translucent window, which you can get by using a
background color with some non zero alpha value.
I'm also not sure about the usability of a transparent window - how
the user know where to drag?
Best Regards,
Nir Soffer
_______________________________________________
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