Re: UIView underlying rects for drawRect

2015-12-07 Thread Roland King
> On 8 Dec 2015, at 06:30, David Duncan wrote: > >> >> On Dec 6, 2015, at 4:51 AM, Roland King > > wrote: >> >>> >>> On 6 Dec 2015, at 20:18, Roland King mailto:r...@rols.org>> >>> wrote: >>> >>> CALayer has a mechanism built in for the sort of thing you wa

Re: UIView underlying rects for drawRect

2015-12-07 Thread David Duncan
> On Dec 6, 2015, at 4:51 AM, Roland King wrote: > >> >> On 6 Dec 2015, at 20:18, Roland King wrote: >> >> >>> >>> CALayer has a mechanism built in for the sort of thing you want to do. Read >>> up on -[CALayer display]. You should be able to override that, or implement >>> the correspond

Re: Best Control for Catching a Mouse Click?

2015-12-07 Thread Jens Alfke
> On Dec 7, 2015, at 8:32 AM, Dave wrote: > > If the User Clicks anywhere inside the base NSView, I’d like a Perform Click > IBAction to be sent to the connected class (The View Controller in this case). Make the base view a custom subclass of NSView, and override -hitTest: to return self. Th

Re: How to create an empty stack view in code

2015-12-07 Thread Kyle Sluder
On Sun, Dec 6, 2015, at 10:10 AM, Dave wrote: > Hi, > > I’m not sure what to use for the Frame though? It doesn't matter. Auto Layout will change the frame on the first layout pass anyway. --Kyle Sluder > The way this is setup is > that I have a Stack View an empty Stack View in a NIB, as so: >

Re: Best Control for Catching a Mouse Click?

2015-12-07 Thread Kyle Sluder
On Mon, Dec 7, 2015, at 10:32 AM, Dave wrote: > Hi All, > > I have a view that is made up for a Text View and a Small Icon like so: > > NSView > NSImageView > NSTextField > > If the User Clicks anywhere inside the base NSView, I’d like a Perform > Click IBAction to be sent to the con

Best Control for Catching a Mouse Click?

2015-12-07 Thread Dave
Hi All, I have a view that is made up for a Text View and a Small Icon like so: NSView NSImageView NSTextField If the User Clicks anywhere inside the base NSView, I’d like a Perform Click IBAction to be sent to the connected class (The View Controller in this case). In the past