• 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: regarding transparent NSWindow.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: regarding transparent NSWindow.


  • Subject: Re: regarding transparent NSWindow.
  • From: "Amit Jain" <email@hidden>
  • Date: Fri, 5 Jan 2007 11:30:19 +0530

Thanks for the reply.
Your worry regarding DnD on transparent window is correct.But what I am
trying to implement is to put a transperent window over my applications dock
icon so that when a user DnD a playlist from iTunes to my applications icon
then he should feel that he is dragging and dropping on the dock not on
window.But today  i faced one more problem that when i kept the window on
dock by getting the icon position then the window lied behind the dock and
even our window was opaque still it doesnt accepted the mouse drag.
So now one more query is that how to keep window in front of dock?
thankx..
@mit...

On 1/5/07, Nir Soffer <email@hidden> wrote:


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


  • Follow-Ups:
    • Re: regarding transparent NSWindow.
      • From: Uli Kusterer <email@hidden>
    • Re: regarding transparent NSWindow.
      • From: Rob Keniger <email@hidden>
References: 
 >regarding transparent NSWindow. (From: "Amit Jain" <email@hidden>)
 >Re: regarding transparent NSWindow. (From: Nir Soffer <email@hidden>)

  • Prev by Date: Re: NSOpenPanel won't enable "Ok" button second time around
  • Next by Date: Using DirectoryService to Find Users
  • Previous by thread: Re: regarding transparent NSWindow.
  • Next by thread: Re: regarding transparent NSWindow.
  • Index(es):
    • Date
    • Thread