• 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
UI controls in NSView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

UI controls in NSView


  • Subject: UI controls in NSView
  • From: Geir Sivertsen <email@hidden>
  • Date: Fri, 21 Jul 2006 10:40:18 +0200

Hi,

I am facing an extremely annoying problem that I hope some brainy individual could help me sort out.

I have an app with an NSView subclass, call it oldView.

This NSView has a method addView that adds a view in the first view. In exact addView adds an NSView of a subclass, say newView. In oldView I have implemented mouse functionality that makes it possible for me to drag my added newViews around.

Now, everything works dandy as long as I do not add any UI elements to my newView´s. Adding any UI elements, like buttons, scrollviews or even nib elements make my views behave peculiar. Dragging the views around leaves a shadow of the UI element in oldView (only UI elements, not the rest of the view). This of course is sorted out by a setNeedsDisplay in my oldView or by setting a solid background, but it is somewhat annoying. What is worse is that the UI elements may show through my newViews if they overlap!

I have tried various methods to solve this problem, but I am lost. I have a few workarounds that may work, but I am curious about whether others have faced the same problem and hopefully solved it?

With regards,
Geir Sivertsen _______________________________________________
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: KVO and the observeValueForKeyPath bottleneck
  • Next by Date: RE: How to get the image mask path
  • Previous by thread: Re: converting com.apple.mail.plist to xml format
  • Next by thread: Re: application preferences
  • Index(es):
    • Date
    • Thread