Re: Place NSView into NSView
Re: Place NSView into NSView
- Subject: Re: Place NSView into NSView
- From: "I. Savant" <email@hidden>
- Date: Sat, 5 Apr 2008 20:07:10 -0400
Is there a way to place one NSView into another NSView? This is what
I have.
Read the documentation:
http://developer.apple.com/documentation/Cocoa/Conceptual/CocoaViewsGuide/Introduction/chapter_1_section_1.html
Pay particular attention to the "Working with the View Hierarchy"
section.
// Set viewB's frame to the desired rect, then ...
[viewA addSubview:viewB];
--
I.S.
_______________________________________________
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