> On Sep 8, 2015, at 10:57 AM, Ben Kennedy wrote:
>
>
>> On 07 Sep 2015, at 5:02 pm, Graham Cox wrote:
>>
>> Also, NSColor is immutable so there’s little purpose to having that property
>> ‘copy’, it can be ‘retain’ (or ‘strong’) and it will save you a small amount
>> of space per instance.
> On 07 Sep 2015, at 5:02 pm, Graham Cox wrote:
>
> Also, NSColor is immutable so there’s little purpose to having that property
> ‘copy’, it can be ‘retain’ (or ‘strong’) and it will save you a small amount
> of space per instance.
As Dave said in his reply, isn't this actually poor advice?
> On 8 Sep 2015, at 01:02, Graham Cox wrote:
>
> Just a brief comment on the design of your class.
Actually it was based on something I found in a book I think and written many
moons ago back in the dark ages of CodeWarrior.
> Why do you declare properties for frame and pane colour, and then
Just a brief comment on the design of your class.
Why do you declare properties for frame and pane colour, and then have
additional setter methods that set these properties (and mark the view as
needing display)?. You can write the property setter methods directly to cause
a refresh and none of
Hi Mike,
Thanks a lot, that did the trick!
Cheers
Dave
___
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/Un
> On 7 Sep 2015, at 18:34, Dave wrote:
>
> Hi,
>
> I have a View subclass called LTWDrawFrameView that has been working since
> the dawn of time and would like to make it work with auto layout.
>
> All it does it optionally Draw a Frame Around an NSView and/or fill the view
> with a solid c
On Sep 7, 2015, at 10:34 , Dave wrote:
>
> I’ve pasted the class below, can anyone see anything wrong with it in terms
> of not working in a Scroll/Stack View and auto layout?
Well, your drawRect method looks pretty fundamentally broken. The parameter
(‘theRect’ in your case) is the portion of
Sorry, I hit send to soon!
I meant to say:
This is in a View called:
LTWDetailXView Frame: 0,0, 600,96
DetailMainView Frame: 0,0, 600,96
(matches the SuperView). This is the LTWDrawFrameRect subclass.
Hi,
I have a View subclass called LTWDrawFrameView that has been working since the
dawn of time and would like to make it work with auto layout.
All it does it optionally Draw a Frame Around an NSView and/or fill the view
with a solid color.
On the face of it, I can’t see the need to do anyt