• 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
Dropping controls on subclassed NSView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Dropping controls on subclassed NSView


  • Subject: Dropping controls on subclassed NSView
  • From: Ryan Hisey <email@hidden>
  • Date: Thu, 9 Mar 2006 13:21:36 -0500

Hi

I am having some issues with placing controls such as NSPopUpButton on my sublassed NSView in Interface Builder. It's causing graphical bugs in the drawing of the view. This can easily be reproduced with a new project.

First I create a CustomView in a new window, and change it's class to my subclassed NSView. My code for this subclassed NSView includes drawing a border around the view, some text near the top, and a small graphic. Next I place 3 or so NSPopUpButtons directly below one another, or other controls in this view, within IB. When I build the project I am seeing graphical bugs appearing around the controls. It's basically redrawing the content described above, in what looks like the control's content rect.

Can anyone explain to me why this happens, is this a known bug, or is it just a misunderstanding on my part on how to add controls to my custom view? I wanted to go through IB for easy connections to my File's Owner.

Thanks for any insight you can pass along.
_______________________________________________
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


  • Follow-Ups:
    • Re: Dropping controls on subclassed NSView
      • From: "John C. Randolph" <email@hidden>
  • Prev by Date: Re: Custom Cell with Image & Text + OutlineView + Bindings Problem
  • Next by Date: Re: Headers and referencing pre defined objects.
  • Previous by thread: Re: Collections
  • Next by thread: Re: Dropping controls on subclassed NSView
  • Index(es):
    • Date
    • Thread