• 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: adding subViews, not showing up
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: adding subViews, not showing up


  • Subject: Re: adding subViews, not showing up
  • From: crucial felix <email@hidden>
  • Date: Sat, 25 Jan 2003 20:49:55 -0500

On Saturday, January 25, 2003, at 02:58 PM, crucial felix wrote:

solved this finally.

hello.

in response to a user action (clicking a button), I'm adding some views inside
of a SlotView which is a subclass of NSBox.

The SlotView appears, but the num (NSTextField) and slider (NSSlider) are not
visible. Using F-Script Anywhere, i can inspect the slot view, and it has a contentView
which is a simple NSView, which has two subviews: the num and slider.
and they have the correct frame sizes !
but i can't see them.

what i failed to mention was that this SlotView was inside an NSSplitView.

the bounds at the time the Slots are created are large (height: 600), but once it gets
resized, they are small (height: 77). the SlotViews were positioned on the upper (min) Y edge,
so they were there, and they had the right size, but they were up above the box's bounds.


-felix
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >adding subViews, not showing up (From: crucial felix <email@hidden>)

  • Prev by Date: Beginner question - Cocoa outlet using a method
  • Next by Date: Re: Beginner question - Cocoa outlet using a method
  • Previous by thread: adding subViews, not showing up
  • Next by thread: Re: Struggling with NSTextView in a custom view
  • Index(es):
    • Date
    • Thread