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 protected])
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [email protected]