Re: Puzzling memory creep

2015-09-03 Thread Cosmo
Is there any chance you have Zombie checking turned on in your scheme settings? In my experience that might account for what you’ve described. > On Aug 14, 2015, at 1:29 PM, Richard Kennaway wrote: > > I've written an iOS app that, according to Instruments, seems to very slowly > allocate more

Re: Puzzling memory creep

2015-09-03 Thread Quincey Morris
Two thoughts about this. 1. Are you sure that ‘updateTime’ is running on the main thread? It needs to be, since you’re updating the UI directly from this code. 2. The code inside ‘updateTime’ is very self-contained, so it seems easy to try a divide-and-conquer strategy. What happens if you remo

Re: Puzzling memory creep

2015-09-03 Thread Scott Ribe
On Aug 14, 2015, at 2:29 PM, Richard Kennaway wrote: > > the Responsible Caller is _dispatch_continuation_alloc_from_heap Sure sounds like something that *might* underly the implementation of NSTimer. Quick experiment: change the delay in your NSTimer creation from 1.0 to 0.1 and see what happ

Forcing an NSScroller to think its scroll document has a different width. Possible?

2015-09-03 Thread Charles Constant
Hi ladies and gentlemen, I'm trying to make an infinite scrollview, but I've gotten stuck in the mud. What I want to do is split, when the knob(thumb) reaches a point beyond the right edge, is have it split into two, so that you see its right side, peeking in from the left edge. That's the part I

Re: Problem having a framework working in one of my targets (a screensaver)

2015-09-03 Thread Juanjo Conti
I think ScreensaverNinja target does not affect Saver target. The Saver target builds a screen saver (a plugin in terms of XCode) I'm trying to use the Paddle framework in both, a desktop app (ScreensaverNinja target) and in the screensaver (Saver target). In the desktop app works and in the scre

Re: Problem having a framework working in one of my targets (a screensaver)

2015-09-03 Thread Juanjo Conti
If I use install_name_tool to change the path where the image is looked for for a absolute path, I make the screensaver run. On Thu, Jul 2, 2015 at 8:22 PM, Juanjo Conti wrote: > Like this? http://i.imgur.com/4L974ZH.png > > The problem continues. I'll read the article. Thanks. > > On Thu, Jul 2

Re: Problem having a framework working in one of my targets (a screensaver)

2015-09-03 Thread Juanjo Conti
Like this? http://i.imgur.com/4L974ZH.png The problem continues. I'll read the article. Thanks. On Thu, Jul 2, 2015 at 6:22 PM, Contact Zukini wrote: > Hi Juanjo, > > I had similar issues when wanting to load a framework. My specific problem > was loading the framework in an application that wa

Problem having a framework working in one of my targets (a screensaver)

2015-09-03 Thread Juanjo Conti
Hi! I've an XCode Swift project with 2 targets, an traditional app and a screensaver. I want to use a framework in both (I've tried with at least 2 frameworks with no luck). In the app they work ok but in the screensaver, despite that I'm able to compile (I have a bridging file with the appropria

Re: Subclassing a Subclass of SBApplication

2015-09-03 Thread Conrad Shultz
Note that this is a category, not a class extension. -Conrad > On Jun 30, 2015, at 6:19 AM, Jean-Daniel Dupas wrote: > > Using class extension is probably a safe way to extends such classes. > > @interface SXPhotoshopApplication (MyExtension) > > - (void)myWrapper; > > @end > > >> Le 29 j

Re: Cocoa-dev Digest, Vol 12, Issue 355

2015-09-03 Thread Андрей Мишанин
You are accessing UI Kit objects from a background thread which is forbidden. Sent from my iPad 5 > On 22 Jun 2015, at 13:16, cocoa-dev-requ...@lists.apple.com wrote: > > Here is the stack-tace of crashed thread: > > Thread : Crashed: com.apple.root.utility-qos _

How to intercept the space key in an NSTextField

2015-09-03 Thread Frank Bitterlich
I’m having trouble finding a solution for a seemingly simple problem. I need an NSTextField that will „catch“ the space key, and instead of adding a blank to its content, will trigger something different. The reason: I have a window where I need to trigger starting/stopping of a clock by pressi

How to intercept the space key in an NSTextField

2015-09-03 Thread Frank Bitterlich
I’m having trouble finding a solution for a seemingly simple problem. I need an NSTextField that will „catch“ the space key, and instead of adding a blank to its content, will trigger something different. The reason: I have a window where I need to trigger starting/stopping of a clock by pressi

Re: Impossible leak warning in OS X init method

2015-09-03 Thread Bill Cheeseman
On Aug 29, 2015, at 2:54 PM, Jens Alfke wrote: Is it possible that, in removing details from your code, you left out some detail that’s what’s causing the warning? Do you mind posting the actual method, copied/pasted verbatim from Xcode? You asked for it! -- sorry about the formatting. - (id)

Leakage from UILabel?

2015-09-03 Thread Richard Kennaway
I've run into a strange problem with a memory leak, apparently associated with setting the text of UILabels. Googling for /UILabel memory leak/ shows several other people having come up against similar problems, both with and without ARC, but no solution. My app (built with ARC) uses a timer t

Puzzling memory creep

2015-09-03 Thread Richard Kennaway
I've written an iOS app that, according to Instruments, seems to very slowly allocate more and more memory over time, although I can see no reason for it. After starting it, and letting it settle down, I see in the Allocations tool several entries in the "#Persistent" column creeping upwards.

Re: Problem having a framework working in one of my targets (a screensaver)

2015-09-03 Thread Roland King
Perhaps it was only one - thought it was two - either way I learned most of what I knew about how dynamic loading works from that article + a bit of reading afterwards. So I have finally 15 minutes before Friday’s guests turn up, if I understand this rather long thread .. You have a 3rd party

Re: Cocoa-dev Digest, Vol 12, Issue 299

2015-09-03 Thread Jonathan Prescott
How’s this? #define SUPER_INIT \ do {\ self = [super init];\ if (self == nil) return self; \ } while(1); The do … while() construct is an old C/C++ trick used in macro p

Re: objc_msgSend() selector name: tableView:objectValueForTableColumn:row:

2015-09-03 Thread Raglan T. Tiger
Correction set the delegate and datasource to nil. -rags > On May 26, 2015, at 6:23 PM, Raglan T. Tiger wrote: > > My solution to this problem was to set the tableview delegate to nil in the > windowwillclose for the window containing the table. > > My code now runs 10.5 and upward, built wi

Re: objc_msgSend() selector name: tableView:objectValueForTableColumn:row:

2015-09-03 Thread Raglan T. Tiger
My solution to this problem was to set the tableview delegate to nil in the windowwillclose for the window containing the table. My code now runs 10.5 and upward, built with 10.9 sdk on Xcode 6.2 -rags > On May 26, 2015, at 6:17 PM, Scott Ribe wrote: > > On Apr 9, 2015, at 12:17 PM, Charles S

NSAtomicStore and multi processes

2015-09-03 Thread Samir
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 persistent store and I’d like to know if multiple processes can

Re: Swift generics, circular type declarations, and segfaults, oh my!

2015-09-03 Thread Quincey Morris
On Sep 3, 2015, at 11:16 , has wrote: > >> * Using an instance as a factory for its own class is contrary to general >> usage, so is a smell at best. It’s a job for a class func. > > No, it's fine. It's for an Apple event query builder. Any odd smells are > probably the Apple event architectur

Re: Auto Layout Problems

2015-09-03 Thread Gary L. Wade
Some of it does, but it still helps if you need to support earlier. -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com/ > On Sep 3, 2015, at 11:19 AM, Dave wrote: > > Hi, > >> Check out this year's WWDC videos on auto-layout, the part 1/2 ones. I >> believe (just now seeing this pos

Re: Auto Layout Problems

2015-09-03 Thread Dave
Hi, > Check out this year's WWDC videos on auto-layout, the part 1/2 ones. I > believe (just now seeing this post) they will answer what you want and help > you know that you are not alone in your pain. Thanks for this, I’m watching them now. In case anyone wants to watch them, they are at:

Re: Swift generics, circular type declarations, and segfaults, oh my!

2015-09-03 Thread has
On 03/09/2015 17:05, Fritz Anderson wrote: On 3 Sep 2015, at 8:55 AM, has wrote: Stuck and looking for ideas here. I need to define a base class whose methods vends instances of its subclasses (thus enabling chained method calls; your basic query builder). I’m assuming Swift 1.2. The follo

Re: Auto Layout Problems

2015-09-03 Thread Gary L. Wade
Check out this year's WWDC videos on autolayout, the part 1/2 ones. I believe (just now seeing this post) they will answer what you want and help you know that you are not alone in your pain. -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com/ > On Sep 3, 2015, at 10:23 AM, Dave wro

Re: Auto Layout Problems

2015-09-03 Thread Dave
> On 27 Aug 2015, at 20:09, Glenn L. Austin wrote: > > I've had great success with auto-layout, even inside scrollviews. > > All it takes is a bit of time to realise that (1) auto-layout isn't like your > current layout code; and (2) auto-layout has its own set of rules, that > sometimes take

Re: Swift generics, circular type declarations, and segfaults, oh my!

2015-09-03 Thread Fritz Anderson
On 3 Sep 2015, at 8:55 AM, has wrote: > Stuck and looking for ideas here. I need to define a base class whose methods > vends instances of its subclasses (thus enabling chained method calls; your > basic query builder). I’m assuming Swift 1.2. The following works in an OS X 10.10 playground:

Re: Unrecognized Selector Exception from IBAction's?

2015-09-03 Thread Dave
Hi, > On 3 Sep 2015, at 14:00, Mike Abdullah wrote: > > Try running with zombies turned on. Almost certainly, the object your actions > are wired up to has been deallocated, and since replaced by the hash table. That fixed it thanks - it was the View Controller I forgot to assign to a strong

Re: Unrecognized Selector Exception from IBAction's?

2015-09-03 Thread Dave
Hi, > It looks like the buttons may be hooked up to an object of the wrong class? > Your actions aren’t defined in NSConcreteHashTable. Check your connections. > > David The Action Handlers are defined in LTWDisclosureViewController and LTWDetailViewController as shown in the original post. T

Swift generics, circular type declarations, and segfaults, oh my!

2015-09-03 Thread has
Hi all, Stuck and looking for ideas here. I need to define a base class whose methods vends instances of its subclasses (thus enabling chained method calls; your basic query builder). Trivial to do in untyped languages like Python (where 'type safety' is a matter of mopping up _after_ the run

Re: Unrecognized Selector Exception from IBAction's?

2015-09-03 Thread David Durkee
It looks like the buttons may be hooked up to an object of the wrong class? Your actions aren’t defined in NSConcreteHashTable. Check your connections. David > On Sep 3, 2015, at 7:09 AM, Dave wrote: > > Hi, > > This is a Mac Project. > > I’m getting an Unrecognized Selector Exceptions when

Autolayout and Scroll Views?

2015-09-03 Thread Dave
Hi, I’m trying to setup a Scroll View for Auto Layout, at the suggestion to someone on the list, I’m looking at: http://natashatherobot.com/ios-autolayout-scrollview/ I have the following View Hierarchy setup in the Window NIB. Window Custom View WindowHeaderView

Re: Unrecognized Selector Exception from IBAction's?

2015-09-03 Thread Mike Abdullah
Try running with zombies turned on. Almost certainly, the object your actions are wired up to has been deallocated, and since replaced by the hash table. > On 3 Sep 2015, at 13:09, Dave wrote: > > Hi, > > This is a Mac Project. > > I’m getting an Unrecognized Selector Exceptions when clicking

Unrecognized Selector Exception from IBAction's?

2015-09-03 Thread Dave
Hi, This is a Mac Project. I’m getting an Unrecognized Selector Exceptions when clicking on a Button Control: 2015-09-03 12:46:04.464 LTWTest1[1970:896242] -[NSConcreteHashTable leftButtonAction:]: unrecognized selector sent to instance 0x601221c0 2015-09-03 12:46:04.464 LTWTest1[1970:8962

Re: NSTableView: Rows from bottom up

2015-09-03 Thread Eric Gorr
I went ahead and used a DTS ticket and the response I got back from Apple is that there is no supported way to do what I want. So, I am left with something custom or attempting to fake it by determining the number of rows I need to fill the table (when there aren’t enough already) and ordering

Re: Mantaining legacy APIs in a framework

2015-09-03 Thread Maxthon Chan
Is it possible to respect the old contract throughout? The extra information can be exposed to the concrete subclasses through private interface. Sent from my iPhone > On Sep 3, 2015, at 07:44, Graham Cox wrote: > > >> On 3 Sep 2015, at 1:34 am, Maxthon Chan wrote: >> >> If this is your use