Sorry about the mysterious blank posts. Let's see if I can do it with
plain text rather than HTML.
On 4/5/2018 11:05 AM, David Duncan wrote:
>> On Apr 5, 2018, at 10:53 AM, James Walker
wrote:
>>
>> I have a generic NSView that contains some subviews, and I'd like to
add a background image
___
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.co
___
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.co
___
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.co
> On Apr 5, 2018, at 10:53 AM, James Walker wrote:
>
> I have a generic NSView that contains some subviews, and I'd like to add a
> background image. I tried code like this:
>
> NSImage* backgroundImage = [NSImage imageNamed: @"blueprint controls.png"];
> CALayer* holderLayer = [CALayer layer
If you take out the setNeedsDisplay it draws ok.
—Rob
> On Apr 5, 2018, at 11:53 AM, James Walker wrote:
>
> I have a generic NSView that contains some subviews, and I'd like to add a
> background image. I tried code like this:
>
> NSImage* backgroundImage = [NSImage imageNamed: @"blueprint
I have a generic NSView that contains some subviews, and I'd like to add
a background image. I tried code like this:
NSImage* backgroundImage = [NSImage imageNamed: @"blueprint controls.png"];
CALayer* holderLayer = [CALayer layer];
_throttleHolder.layer = holderLayer;
_throttleHolder.wantsLaye