Re: All threads in app periodically blocked

2016-05-23 Thread pscott
mp; paste error. and Seth was enlightened. — F You're not alone. Even something as simple as editing a makefile can drive you mad when bitten by the insidious copy & paste error. http://skycoast.us/pscott/archives/71.html - P smime.p7s Description: S/MIME Crypt

Re: Environment woes executing scripts from my OS X app

2015-12-16 Thread pscott
On 12/16/2015 4:32 PM, Jens Alfke wrote: On Dec 16, 2015, at 3:23 PM, pscott <mailto:psc...@skycoast.us>> wrote: I am pretty sure you can do that as one command without semicolons or export. I.e, system("PYTHONPATH=/usr/bin/python PYTHONHOME=/usr/share/python/ /path/to/script

Re: Environment woes executing scripts from my OS X app

2015-12-16 Thread pscott
I am pretty sure you can do that as one command without semicolons or export. I.e, system("PYTHONPATH=/usr/bin/python PYTHONHOME=/usr/share/python/ /path/to/script args"); The script should see the variables. I tested this on OS X, should work on other systems as well. Paul On 12/16/2015

Re: Looking at self = [super init].

2015-06-01 Thread pscott
On 6/1/2015 5:05 PM, Marco S Hyman wrote: ... My feelings on that topic are private, as I feel most religious beliefs should be :) It can be shown in a secular way that there are edge cases where a goto in the C language is appropriate, in no small part because C lacks labelled break and contin

Re: Looking at self = [super init].

2015-06-01 Thread pscott
On 6/1/2015 2:52 PM, Britt Durbrow wrote: I personally find early returns to be very useful, and also make use of forward-jumping goto statements sometimes (i.e, goto bail;). FWIW, while I embrace both early returns and the goto statement where it makes sense, for the case you make, I would u

Re: Where is my bicycle?

2015-04-06 Thread pscott
On 4/6/2015 4:29 PM, pscott wrote: On 4/6/2015 4:03 PM, Greg Parker wrote: On Apr 6, 2015, at 2:20 PM, pscott wrote: On 4/6/2015 12:29 PM, Greg Parker wrote: I'm not an expert here, but my understanding is that when Cocoa says "character" it usually means "UTF-16 code

Re: Where is my bicycle?

2015-04-06 Thread pscott
On 4/6/2015 4:03 PM, Greg Parker wrote: On Apr 6, 2015, at 2:20 PM, pscott wrote: On 4/6/2015 12:29 PM, Greg Parker wrote: I'm not an expert here, but my understanding is that when Cocoa says "character" it usually means "UTF-16 code unit". @"🚲".length ==

Re: Where is my bicycle?

2015-04-06 Thread pscott
On 4/6/2015 12:29 PM, Greg Parker wrote: I'm not an expert here, but my understanding is that when Cocoa says "character" it usually means "UTF-16 code unit". @"🚲".length == 2, for example. Cocoa's string API designed when Unicode was still a true 16-bit character set. That would be UCS-2 enc

Re: Create a NSURL as a way to validate urls - not working

2015-03-02 Thread pscott
On 3/2/2015 2:22 PM, Juanjo Conti wrote: According the docs ( https://developer.apple.com/library/mac/documentation/Cocoa/Reference/Foundation/Classes/NSURL_Class/) NSURL(string: aString) will return nil if aString is malformed. But I've tried this in the a playground and no nil is returned: NS

Re: copyWithZone archive/unarchive

2015-01-30 Thread pscott
Depending on the complexity of the application and amount of core services utilized, converting an existing manual retain/release project to ARC can instigate a battle you may not want to fight. When I attempted that with my medium complexity application, I quickly realized it was a mistake, he

Re: licence key validation method

2015-01-12 Thread pscott
On 1/12/2015 7:30 PM, Gleb Dolgich wrote: This is a fight you cannot win, so don't waste your time. A dedicated cracker will bypass any protection. I use minimal obfuscation and asymmetric key generation, and that's it. Gleb I haven't been following this thread closely, but I do wish to respon