site_archiver@lists.apple.com Delivered-To: cocoa-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=9o67NovAFV8g5VW2Z9ik+UgExAKoZ9eXQFlcaMEnwxM=; b=Ew4ueL+O3hBWiM6/n+Cx+3hzpx7Y2GPg5zVdjYdkA31K941WcPHP5fRtZ8diifqdpr xi1b6eUL/owISRYpBhBWNLN1hwRn/t42HY6DH4UhAUduasQvFyztOXZxL7AisKubBtlp FNZWm2JNoRPEwp/A3WWgzSCxruvPVON9DGzaA= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=GXAtIuf4OnJdcbDfPG4Vk8HK73RLTKjvVcm1LpKVwxhDSvrav84bG1zXScMn34BWIu xJi6jedURo4bXjCkeTIgoRAEWvwkrkutPnplMnKPDTaP3cx/vYMz/VNJR+gjEhEINMc9 KSamB4MuFrQEbeO3JaDCJ+Vm4v3fm3Slkx3x8= 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 (Cocoa-dev@lists.apple.com) 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/site_archiver%40lists.apple... This email sent to site_archiver@lists.apple.com