Re: Background fetch with localNotification

2015-09-01 Thread Quincey Morris
On Sep 1, 2015, at 07:54 , Diederik Meijer wrote: > > What I’m not sure off is whether I need to place this call inside a > dispatch_async(dispatch_get_main_queue(), ^ { }) block, or not? I don’t know the answer, but since no one else has jumped in with facts, I’ll venture an opinion. It seem

Re: Mantaining legacy APIs in a framework

2015-09-01 Thread Graham Cox
> On 2 Sep 2015, at 4:41 am, Maxthon Chan wrote: > > This seems like a bit of code smell - next time when you plan to ask the user > of your libraries override a method, put it into a delegate protocol. By > doing this the end user does not need to actually subclass you and hence > internal c

Re: Mantaining legacy APIs in a framework

2015-09-01 Thread Maxthon Chan
This seems like a bit of code smell - next time when you plan to ask the user of your libraries override a method, put it into a delegate protocol. By doing this the end user does not need to actually subclass you and hence internal call structure no longer is part of the contract you have to ke

Re: How to terminate an NSTask whenever my app terminates?

2015-09-01 Thread Jens Alfke
> On Aug 31, 2015, at 11:44 PM, Bavarious wrote: > > There was a 2010 cocoa-dev thread about this: > http://www.lists.apple.com/archives/cocoa-dev/2010/Aug/msg00512.html > Yes, this seems to be what I’m looking for — settin

Background fetch with localNotification

2015-09-01 Thread Diederik Meijer
Hi list, I have added backgroundFetch to my app. If new data is available, I have the app store it to disk and then inform the user with a localNotification by calling: [[UIApplication sharedApplication] presentLocalNotificationNow:notification] What I’m not sure off is whether I need

Re: How to terminate an NSTask whenever my app terminates?

2015-09-01 Thread Scott Ribe
On Aug 31, 2015, at 10:55 PM, Ken Thomases wrote: > > Try the following program. The parent will print the child's PID and exit > (by falling out of main()). Then do a "ps xww -p ". You'll > see the child is still running. You can kill it when satisfied. Yep, I got it backwards. Nothing sp

Re: NSTableView: Rows from bottom up

2015-09-01 Thread Gary L. Wade
One way to do this is to not use a table view but just a simple scroll/clip view setup and embed your content within it, pinning it only to the left, right, and bottom edges of the clip view and do your drawing in that view. You might be able to do it with a table view (and the typically associa

Re: NSTableView: Rows from bottom up

2015-09-01 Thread Roland King
Again that is not the question he was asking. He wants to know how to have a tableview which, if it has say one single row, shows that one single row at the bottom of the enclosing scrollview instead of at the top. Inserting the rows in order is not his problem, its’ getting the table view to

Re: NSTableView: Rows from bottom up

2015-09-01 Thread dangerwillrobinsondanger
Data order is the simplest way to do what you want. Just insert everything at the end. Then also ensure no sorting. Sent from my iPhone > On Sep 1, 2015, at 7:27 PM, Eric Gorr wrote: > > >> On Aug 31, 2015, at 10:00 PM, Keary Suska wrote: >> >> On Aug 31, 2015, at 7:51 PM, Eric Gorr wrot

Re: NSTableView: Rows from bottom up

2015-09-01 Thread Willeke
You can move the table view to the bottom of the scroll view in an override of -[NSScrollView tile]. Déjà vu http://cocoa-dev.apple.narkive.com/cwH1sLmk/nstableview-with-reversed-rows - Willeke ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Re: NSTableView: Rows from bottom up

2015-09-01 Thread Roland King
> On 1 Sep 2015, at 18:27, Eric Gorr wrote: > >> >> On Aug 31, 2015, at 10:00 PM, Keary Suska wrote: >> >> On Aug 31, 2015, at 7:51 PM, Eric Gorr wrote: >>> >>> Normally when one adds the first row to a NSTableView, it will appear at >>> the top of the view and additional rows will appear

Re: NSTableView: Rows from bottom up

2015-09-01 Thread Eric Gorr
> On Aug 31, 2015, at 10:00 PM, Keary Suska wrote: > > On Aug 31, 2015, at 7:51 PM, Eric Gorr wrote: >> >> Normally when one adds the first row to a NSTableView, it will appear at the >> top of the view and additional rows will appear below it. Is it possible to >> have the first row appear