• 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: how do I put a subview in a superview with color
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how do I put a subview in a superview with color


  • Subject: Re: how do I put a subview in a superview with color
  • From: colo <email@hidden>
  • Date: Fri, 31 Dec 2010 18:43:42 -0500

Hi all. I think I got this down to a science once it works.
Recap: I want to learn the ability to directly put Cocoa desktop
NSView subClass View into another subClass view repeat until not
needed.
No reason application design wise. I just need to know how to do it.


I changed the implementation of this around.
Have a customView class object in the IB nib but I did not put it in
the window on purpose.
Trying to call this NSView class into the addSubView, I know I am
getting the addSubView: argument incorrect
Once I get that understood I think it will become clear if this is how
I am suppose to use this method.

Thank you.

In the AppDelegate .m file I have
it imports the
#import "self.isThisASubView.h"
And has

-(void)awakeFromNib{

	[ [ window contentView ] addSubview: self.isThisASubView ];

}

The isThisASubView.m class has an initWithFrame and a drawRect
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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

References: 
 >Re: how do I put a subview in a superview with color (From: colo <email@hidden>)
 >Re: how do I put a subview in a superview with color (From: aglee <email@hidden>)
 >Re: how do I put a subview in a superview with color (From: colo <email@hidden>)
 >Re: how do I put a subview in a superview with color (From: John Joyce <email@hidden>)

  • Prev by Date: Re: How to make 2D lines look 3D
  • Next by Date: Re: Getting a keystroke event to an NSTextView in another window.
  • Previous by thread: Re: how do I put a subview in a superview with color
  • Next by thread: Calculate next occurrence of a NSDate
  • Index(es):
    • Date
    • Thread