• 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
Trasparent window and TextView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Trasparent window and TextView


  • Subject: Trasparent window and TextView
  • From: Lorenzo <email@hidden>
  • Date: Tue, 17 Jan 2006 17:02:57 +0100

Hi,
I programmatically allocate a window with trasparent background then I put a
trasparent NSScrollView with a trasparent NSTextView within this window.
So the RTF text I write into the NSTextView looks like over the other
windows and objects I can see under my trasparent window. Good result.
The problem is that if I set the NSTextView background totally transparent
with

    backColor = [NSColor colorWithCalibratedWhite:0.0 alpha:0.0];
    [textView setBackgroundColor:backColor];

when I click on a trasparent point of the NSTextView, automatically I get
selected the application under my window. It's like the NSTextView doesn't
feel the clicks anymore. Instead if I click just on a string within the
NSTextView I can quite select the string. To avoid this problem I have to
set a backColor with alpha = 0.05 or higher. Not so good because the user
can change this color.

How can I make my trasparent NSTextView detect the clicks even when clicking
on a trasparent point?


Best Regards
--
Lorenzo
email: email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: "Open dialogue"-like file system browser
  • Next by Date: Re: Recommendation for keeping track of money in Core Data
  • Previous by thread: Re: Bug? Not receiving mouseEntered and mouseExited events
  • Next by thread: Stuck in basic bindings
  • Index(es):
    • Date
    • Thread