Re: how do I put a subview in a superview with color
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