On Aug 16, 2013, at 6:26 PM, Rick Mann <rm...@latencyzero.com> wrote:

> 
> -layoutSubviews is not called when the view finally gets a window. Should I 
> override setWindow: and call setNeedsLayout? What's the best way to handle 
> this?

Since -setWindow: doesn't exist, I'd suggest overriding -viewWillMoveToWindow: 
to render and apply your mask. That way when your view comes on screen it will 
have the correct mask already. Call the same code from -layoutSubviews if 
necessary.

--Kyle Sluder
_______________________________________________

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to