Re: Getting started with Cocoa Bindings in My Project?

2015-09-07 Thread Alex Hall
> On Sep 7, 2015, at 02:07, Ken Thomases wrote: > > On Sep 7, 2015, at 12:01 AM, Alex Hall wrote: > >> My first step is to make a KVO-compliant backing store, because Swift arrays >> won't do the job. As you said, my goal of updating an array and having my >> table automagically update itsel

Re: Getting started with Cocoa Bindings in My Project?

2015-09-07 Thread Alex Hall
Quick question on all this. I'm making my model a KVO-compliant class, just to see what'll happen. The Apple guide says to implement methods, all of which include . I've replaced with TweetsTab, such as countOfTweetsTab, and I added tweetsTab (note the lowercase t) to my array controller in the

Re: 3rd party framework crashes with invalid code sign

2015-09-07 Thread Mike Abdullah
> On 19 Aug 2015, at 06:09, Nava ‏Carmon wrote: > > > We have a weird problem after upgrading to Yosamite: > > We use a 3rd party framework and codesign it on copying in Build Phases. > When we run the application (which is LSUIElement - agent application) > sometimes after it crashes with th

Re: NSAtomicStore and multi processes

2015-09-07 Thread Mike Abdullah
> On 26 Jun 2015, at 10:47, Samir wrote: > > Hi all, > > I’m working on sharing a core data database between multiple processes. > > In the "Core Data Programming Guide”, it’s mentioned that core data databases > does handle multiple processes. > > However, I’m using NSAtomicStore as a pers

Re: Auto Layout Problems

2015-09-07 Thread Dave
Hi, After much grief I finally managed to get a Scroll View, a Stack View and Auto Layout to live together in some sort of harmony and I managed to 99% of it in XCode 6.4 and Mac OS 10.10. The secret to making it work is to ensure that: 1. You use Embed in Scroll View to add the Stack View

Re: Auto Layout Problems

2015-09-07 Thread Daniel Phillips
Hi Dave, Would love to see that sample project of yours. Thanks Daniel Sent from my iPhone > On 7 Sep 2015, at 18:13, Dave wrote: > > Hi, > > After much grief I finally managed to get a Scroll View, a Stack View and > Auto Layout to live together in some sort of harmony and I managed to 99

Problem with Auto Layout and drawRect

2015-09-07 Thread Dave
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

Re: Problem with Auto Layout and drawRect

2015-09-07 Thread Dave
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.

Re: Problem with Auto Layout and drawRect

2015-09-07 Thread Quincey Morris
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

Re: Problem with Auto Layout and drawRect

2015-09-07 Thread Mike Abdullah
> 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

Re: Problem with Auto Layout and drawRect

2015-09-07 Thread Dave
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

Re: "Computed segue" in iOS?

2015-09-07 Thread Carl Hoefs
> On Sep 6, 2015, at 10:27 AM, Mike Abdullah wrote: > > Ideally, you use different cells for the different data elements, and wire > them up to the appropriate segue, letting the system take care of most of it > for you. This is for situations when one is not using a prototype cell in the UI

Auto Layout, NSScrollView and NSStackView - Adding View to StackView

2015-09-07 Thread Dave
Hi, I almost have the desired effect for the Auto Layout, NSScrollView and NSStackView combination with everything setup in a NIB. There is one thing left I need to do - please see following code: -(void) awakeFromNib { LTWDetailXView* myDetailView; NSInteger

Re: Auto Layout, NSScrollView and NSStackView - Adding View to StackView

2015-09-07 Thread Ken Thomases
On Sep 7, 2015, at 2:40 PM, Dave wrote: > The ScrollView/StackView combo that myDetailView added to on the > addView:inGravity call, is wider than the DetailView. What I’d like to happen > is that the Detail is Stretched/Shrunk to match the width of the Scroll > View/StackView. I think I need

Re: Auto Layout, NSScrollView and NSStackView - Adding View to StackView

2015-09-07 Thread Dave
Hi Ken, Thanks a lot for this. > You should set leading and trailing constraints between the stack view and > the clip view so that the stack view is as wide as the clip view. I’ve got the following constraints on the StackView: Horizontal Space StackView.Trailing Equal FlippedClipView.Trai

Re: Auto Layout, NSScrollView and NSStackView - Adding View to StackView

2015-09-07 Thread Dave
Made a mistake, should be; Horizontal Space StackView.Trailing Equal FlippedClipView.Trailing-1, 1000, 1*Constant = -1 Vertical Space StackView.TopEqual FlippedClipView.top 0, 1000, 1 Horizontal Space StackView.Leading Equal FlippedClipVi

Re: Auto Layout, NSScrollView and NSStackView - Adding View to StackView

2015-09-07 Thread Ken Thomases
On Sep 7, 2015, at 3:14 PM, Dave wrote: > Thanks a lot for this. You're welcome. >> You should set leading and trailing constraints between the stack view and >> the clip view so that the stack view is as wide as the clip view. > > I’ve got the following constraints on the StackView: > > Ho

Re: "Computed segue" in iOS?

2015-09-07 Thread Mike Abdullah
> On 7 Sep 2015, at 20:33, Carl Hoefs wrote: > > >> On Sep 6, 2015, at 10:27 AM, Mike Abdullah wrote: >> >> Ideally, you use different cells for the different data elements, and wire >> them up to the appropriate segue, letting the system take care of most of it >> for you. > > This is for

Re: Problem with Auto Layout and drawRect

2015-09-07 Thread Graham Cox
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

Re: Getting started with Cocoa Bindings in My Project?

2015-09-07 Thread Ken Thomases
On Sep 7, 2015, at 7:25 AM, Alex Hall wrote: > Sure. This is a Twitter app, which shows one type of tweet at a time. That > is, the table can show one of home, mentions, DMs, favorites, RTs of the > user, Twitter searches, tweets from a different user, etc. When an array is > "active", right n

Re: Getting started with Cocoa Bindings in My Project?

2015-09-07 Thread Ken Thomases
On Sep 7, 2015, at 12:01 AM, Alex Hall wrote: > Next is the problem of accessing the current MyKVOCClass object from the view > controller, where my model is instantiated. I'll need a computed property for > this, which I'll call currentModelArray. This should return a reference to > the curre