Re: discontiguous bounds ?

2016-05-09 Thread Graham Cox
> On 9 May 2016, at 3:50 PM, Quincey Morris > wrote: > > AFAIK there’s nothing in Cocoa that will implement this for you. I’m not sure > that using two table views is really very complex — they could potentially > use the same data source and delegate — but the trick is to get the vertical >

Re: discontiguous bounds ?

2016-05-09 Thread Greg Weston
> I wish to provide a facility with a NSTableView wherein the leftmost > (specifiable) columns remain statically on the left of the display > (subject to vertical scrolling) while the remaining columns scroll > normally constrained to the right of the static columns. I've done > this succes

Re: How to keep things alive in Arc?

2016-05-09 Thread Dave
Hi, Well if “thing” is used only within the method you don’t have to do anything - ARC will keep it alive until the local you have assigned it to goes out of scope. If you want to use use it beyond the scope of the local method/object but not return it from the method, then assign it to a “str

Re: How to keep things alive in Arc?

2016-05-09 Thread Roland King
> On 9 May 2016, at 19:17, Dave wrote: > > Hi, > > Well if “thing” is used only within the method you don’t have to do anything > - ARC will keep it alive until the local you have assigned it to goes out of > scope. No that’s not true, which is the whole point of the original question. ARC

Re: NSTableView is messaging zombie delegate

2016-05-09 Thread Sean McBride
On Fri, 6 May 2016 13:28:10 -0700, Jens Alfke said: >> On May 6, 2016, at 1:03 PM, Matthew LeRoy wrote: >> >> My understanding is that NSTableView's delegate is a zeroing weak reference > >Are you sure? Historically it’s been unsafe_unretained — in the old days >before weak references or ARC, th

Re: How to keep things alive in Arc?

2016-05-09 Thread gerti-cocoadev
This was recommended to me by folks "in the know": Thing *aThing = [ Thing new ]; ... (void)aThing; Gerd > On May 8, 2016, at 21:11, Gerriet M. Denkmann wrote: > > Thing *aThing = [ Thing new ]; > > void *thingData = [ aThing data ];// poin

Re: discontiguous bounds ?

2016-05-09 Thread Jonathan Mitchell
> On 9 May 2016, at 08:59, Graham Cox wrote: > > I’ve done this, based on that code. Yes, it was a bit buggy, but I got it to > work. The app it’s a part of still works when compiled with the latest tools > and SDK. But yes, you need two separate table views to do this. > I have done somethin

Re: discontiguous bounds ?

2016-05-09 Thread Jens Alfke
> On May 8, 2016, at 10:32 PM, Miller Dale wrote: > > I wish to provide a facility with a NSTableView wherein the leftmost > (specifiable) columns remain statically on the left of the display (subject > to vertical scrolling) while the remaining columns scroll normally > constrained to the ri

Re: Receiver type for instance message is a forward declaration

2016-05-09 Thread Carl Hoefs
> On May 6, 2016, at 3:45 PM, Carl Hoefs wrote: > >> These days, if I had any doubts about NSOperationQueue, I’d switch to using >> GCD directly. There’s very little that NSOperationQueue does that GCD doesn’t Alas, there appear to be no GCD dispatch queue introspection functions, specificall

RE: NSTableView is messaging zombie delegate

2016-05-09 Thread Matthew LeRoy
On May 8, 2016, at 13:19, Quincey Morris wrote: If you look at your backtrace again, you’ll see that it crashed doing something with rows. It’s as likely trying to message your data source as your delegate. You should nil that as well. Note that it’s not necessarily that any p

Re: Receiver type for instance message is a forward declaration

2016-05-09 Thread Quincey Morris
On May 9, 2016, at 11:26 , Carl Hoefs wrote: > > Alas, there appear to be no GCD dispatch queue introspection functions, > specifically to find out what is executing (if anything) and what's waiting > in the queue. Or did I overlook something? Also, no, I don’t think so. There is dispatch_get/

XCode snapshot function?

2016-05-09 Thread Graham Cox
Hi, Where is the snapshot function in XCode these days (XCode 7.3)? I see in the “Projects” window there is a way to export snapshots, but I can’t see anywhere to make a snapshot in the first place. —Graham ___ Cocoa-dev mailing list (Cocoa-dev@li

Re: XCode snapshot function?

2016-05-09 Thread Shane Stanley
On 10 May 2016, at 11:21 AM, Graham Cox wrote: > > Where is the snapshot function in XCode these days (XCode 7.3)? Disappeared a few versions back, I believe. -- Shane Stanley ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not

Re: XCode snapshot function?

2016-05-09 Thread Roland King
> On 10 May 2016, at 09:21, Graham Cox wrote: > > Hi, > > Where is the snapshot function in XCode these days (XCode 7.3)? > > I see in the “Projects” window there is a way to export snapshots, but I > can’t see anywhere to make a snapshot in the first place. > > —Graham > It isn’t - it was

Re: XCode snapshot function?

2016-05-09 Thread Graham Cox
> On 10 May 2016, at 11:28 AM, Roland King wrote: > > >> On 10 May 2016, at 09:21, Graham Cox wrote: >> >> Hi, >> >> Where is the snapshot function in XCode these days (XCode 7.3)? >> >> I see in the “Projects” window there is a way to export snapshots, but I >> can’t see anywhere to make

Re: XCode snapshot function?

2016-05-09 Thread Roland King
> On 10 May 2016, at 09:48, Graham Cox wrote: > > > > oookaaayyy… > > So what’s the best way to mothball and archive my project in its current > state so I can then fork it for the next version, and so on? > > —Graham > > archive the project in xcode (Product .. Archive), add the archive

Re: XCode snapshot function?

2016-05-09 Thread Jerry Krinock
> On 2016 May 09, at 18:48, Graham Cox wrote: > > So what’s the best way to mothball and archive my project in its current > state so I can then fork it for the next version, and so on? Either make a git branch, or if you don’t trust git, copy project folder(s). Projects that involve multiple

Re: XCode snapshot function?

2016-05-09 Thread Jerry Krinock
D > On 2016 May 09, at 18:48, Graham Cox wrote: > > So what’s the best way to mothball and archive my project in its current > state so I can then fork it for the next version, and so on? Either make a git branch, or if you don’t trust git, copy project folder(s). Projects that involve multipl

Re: XCode snapshot function?

2016-05-09 Thread Jens Alfke
> On May 9, 2016, at 6:48 PM, Graham Cox wrote: > > So what’s the best way to mothball and archive my project in its current > state so I can then fork it for the next version, and so on? Git. The Snapshot feature was basically made redundant once Xcode added support for Git, so it makes sen