Re: Saving unseen NSView with subviews to NSImage
Re: Saving unseen NSView with subviews to NSImage
- Subject: Re: Saving unseen NSView with subviews to NSImage
- From: "I. Savant" <email@hidden>
- Date: Mon, 29 Dec 2008 16:28:46 -0500
On Mon, Dec 29, 2008 at 4:02 PM, John Kestner <email@hidden> wrote:
> I guess I just don't understand why an NSView will draw all its subviews to
> screen, but when I try doing it offscreen into a file, the subviews won't
> draw without a lot of work. Any advice is appreciated.
Just by way of a quick reply, are you sure your subviews are
actually nested subviews in IB? In other words, you're sure you
haven't merely dropped views "atop" your main parent view?
This is a pretty common mistake for those new to Interface Builder /
Cocoa. Positioning a view so that it is "over" another view does not
make it a subview. This would have the affect you described (if I've
read what you described correctly).
--
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