Re: NSWindow displaying asynchronously starting in 10.11

2015-11-30 Thread Quincey Morris
On Nov 30, 2015, at 21:53 , Jerry Krinock wrote: >> The correct approach has always been to retrieve the result URL(s) you want, >> then orderOut: the panel before doing something else in the completion >> handler > > I just tried adding an -orderOut before the 5-second sleep in my demo. Stil

Re: NSWindow displaying asynchronously starting in 10.11

2015-11-30 Thread Jerry Krinock
> On 2015 Nov 30, at 14:35, Quincey Morris > wrote: > > I’m not aware that the APIs you mention in 1 and 2 have any known contract > about when they have their effect. It could be synchronous or asynchronous, > and it could be now or later. You are correct. But after 20 years, seems like a

Re: NSWindow

2015-11-30 Thread Martin Wierschin
> On 1 Dec 2015, at 5:23 AM, Jerry Krinock wrote: > > 1. Create a NSWindow, send it a -display message, and then in that same run > loop cycle execute some task of noticeable duration. In 10.10, the window > will appear on the screen before the task starts. In 10.11, the window does > not a

Re: Self and associated type requirements (yes again!)

2015-11-30 Thread Roland King
I hadn’t actually read that blog post, I’ve read lots, but not that one - so thanks for the link. Any blog post who’s first paragraph ends with ‘I want to tie you up in a sack, throw the sack in a river, and hurl the river into space’ is probably worth reading, so I’m reading it. I think I am

Re: Self and associated type requirements (yes again!)

2015-11-30 Thread Roland King
> On 1 Dec 2015, at 06:17, Quincey Morris > wrote: > > On Nov 30, 2015, at 04:12 , Roland King > wrote: >> >> I want to say that timeSeries is any TimeSeries with an underlying type of >> Float, but you can’t. > > The problem is that this says that you want a generic p

Re: Bunch of CoreData based NSDocument questions.

2015-11-30 Thread Quincey Morris
On Nov 30, 2015, at 15:18 , Quincey Morris wrote: > > (moved to a new thread, because we hijacked Motti’s thread) Except that I forgot to change the subject after all. Oops. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

Re: Bunch of CoreData based NSDocument questions.

2015-11-30 Thread Quincey Morris
(moved to a new thread, because we hijacked Motti’s thread) On Nov 29, 2015, at 16:30 , dangerwillrobinsondan...@gmail.com wrote: > But do bear in mind a doc from Apple with a last updated date that old may > have been superseded by a header comment, release notes, a WWDC presentation > or no d

Re: NSWindow

2015-11-30 Thread Shane Stanley
On 1 Dec 2015, at 5:23 AM, Jerry Krinock wrote: > > 1. Create a NSWindow, send it a -display message, and then in that same run > loop cycle execute some task of noticeable duration. In 10.10, the window > will appear on the screen before the task starts. In 10.11, the window does > not app

Re: NSWindow

2015-11-30 Thread Quincey Morris
On Nov 30, 2015, at 10:23 , Jerry Krinock wrote: > > Did I miss the announcement of this rather major change? I don’t think so, I think you are Doing It Wrong™. ;) I’m not aware that the APIs you mention in 1 and 2 have any known contract about when they have their effect. It could be synchron

Re: Self and associated type requirements (yes again!)

2015-11-30 Thread Quincey Morris
On Nov 30, 2015, at 04:12 , Roland King wrote: > > I want to say that timeSeries is any TimeSeries with an underlying type of > Float, but you can’t. The problem is that this says that you want a generic protocol, and there’s no such thing. Unfortunately, TimeSeries is not (in a sense) non-gen

Re: TableviewSelectionDidChange(_:) not called

2015-11-30 Thread Quincey Morris
On Nov 30, 2015, at 12:18 , Luc Van Bogaert wrote: > > I can see this is being called when I make any selection change; except when > I delete the (last) selected row. Deleting the second last row does trigger a > call, but only when I set the arraycontroller to 'avoid empty selection'. It so

Re: NSWindow

2015-11-30 Thread Richard Charles
> On Nov 30, 2015, at 11:23 AM, Jerry Krinock wrote: > > Apple has made a huge change in the way windows are drawn in El Capitan, > which I cannot find mentioned in the Release Notes. Here are some examples: > > 1. Create a NSWindow, send it a -display message, and then in that same run > l

Re: TableviewSelectionDidChange(_:) not called

2015-11-30 Thread Luc Van Bogaert
> On 30 Nov 2015, at 20:28, Quincey Morris > wrote: > > On Nov 30, 2015, at 11:07 , Luc Van Bogaert > wrote: >> >> I have noticed that TableviewSelectionDidChange(_:) is not called in my >> tableview delegate when after I select a row and then delete it, even w

Re: Self and associated type requirements (yes again!)

2015-11-30 Thread Peter Tomaselli
I have no answer here, but there is a blog post I continually refer to whenever I get confused about this. In case you haven't already read it (although I suspect you have) it is called "Swift: Associated Types" by Russ Bishop [0]. Rob Napier has also had a few nice posts about type erasure that ma

Re: Design pattern for Painting applications, where to start

2015-11-30 Thread Jens Alfke
Have you looked at the (Mac OS) Sketch sample app? It’s object/vector based, not pixel based, but maybe the concepts will be useful to you. —Jens ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator com

Design pattern for Painting applications, where to start

2015-11-30 Thread colo0logo
I apologize in advance if this is too vague or does not belong here. I have been building a painting application in Javascript and webgl using a custom Path based grid system and while its working all great I did this without any real guide on how OSX/iOS devs make painting applications. I used a

Re: TableviewSelectionDidChange(_:) not called

2015-11-30 Thread Quincey Morris
On Nov 30, 2015, at 11:07 , Luc Van Bogaert wrote: > > I have noticed that TableviewSelectionDidChange(_:) is not called in my > tableview delegate when after I select a row and then delete it, even when it > is the only row in the table. I would have assumed that this method would be > called

TableviewSelectionDidChange(_:) not called

2015-11-30 Thread Luc Van Bogaert
Hello, I have noticed that TableviewSelectionDidChange(_:) is not called in my tableview delegate when after I select a row and then delete it, even when it is the only row in the table. I would have assumed that this method would be called because deleting the row does in fact change the slect

NSWindow

2015-11-30 Thread Jerry Krinock
Apple has made a huge change in the way windows are drawn in El Capitan, which I cannot find mentioned in the Release Notes. Here are some examples: 1. Create a NSWindow, send it a -display message, and then in that same run loop cycle execute some task of noticeable duration. In 10.10, the w

Re: Objective-C Question about Categories and Subclasses

2015-11-30 Thread Dave
Thanks for the confirmation, I wanted to double check because if it didn’t I’d waste a lot of time…... ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators

Re: Objective-C Question about Categories and Subclasses

2015-11-30 Thread Jens Alfke
> On Nov 30, 2015, at 5:18 AM, Dave wrote: > > I’m guessing it overrides it? Right? Right. A category method is a normal method. It just isn’t declared in the same @interface. —Jens ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: Inverse of SMJobBless

2015-11-30 Thread Gerriet M. Denkmann
> On 30 Nov 2015, at 19:59, Pierre Molinaro wrote: > > Hi, > > Just increment the Bundle Version setting in the Info.plist of your > privileged helper tool, the new version will be automatically installed on > launch. > > Pierre Thanks a lot. This is a very helpful hint. But: After doing S

Objective-C Question about Categories and Subclasses

2015-11-30 Thread Dave
Hi, If I have a category on a class (call it LTWClassX) with a method called -(void) foo; If I then subclass from LTWClassX - call it LTWClassY. What happens if I now define foo in the Subclass? I’m guessing it overrides it? Right? Thanks a lot Dave _

Self and associated type requirements (yes again!)

2015-11-30 Thread Roland King
I keep running myself into this issue when I try using some of my generic classes built on top of Protocols. I have a TimeSeries protocol which has an Underlying (Float, Double, .. whatever) and also a Self requirement because you can return a sub series. There’s more to the protocol but this

Inverse of SMJobBless

2015-11-30 Thread Gerriet M. Denkmann
I have a program which talks via NSXPCConnection to a privileged helper tool. It also can install the helper tool, using SMJobBless(). The problem: When I change the helper tool, the only way to get the new version running is to remove: /Library/LaunchDaemons/myHelperTool.plist /