Obtain an NSDate object from any casually entered user string

2014-05-14 Thread Jonathan Mitchell
Is there a way to obtain an NSDate object from a casually entered user string, say: 1 1 2015 or 25 jul 15? I have looked at the various NSDateFormatter and NSDate API and cannot spot what I am after. Jonathan ___ Cocoa-dev mailing list

Re: Share and store RSA - public key in java server and vice versa

2014-05-14 Thread Jens Alfke
On May 13, 2014, at 9:20 PM, Maxthon Chan xcvi...@me.com wrote: I am saying ignore the details of the format, treat certificates as binary blobs or plain strings or whatever that is opaque, and let crypto API parse it. And I am saying that’s naïve, at least where Apple’s crypto API is

Re: Share and store RSA - public key in java server and vice versa

2014-05-14 Thread Jens Alfke
On May 13, 2014, at 8:47 PM, Devarshi Kulshreshtha devarshi.bluec...@gmail.com wrote: if CryptoExample is out of date, then what is the other best other option for me, I don’t know, actually; it doesn’t look like they replaced it with any newer iOS-compatible sample. :( from the previous

Re: Obtain an NSDate object from any casually entered user string

2014-05-14 Thread Jens Alfke
On May 14, 2014, at 6:41 AM, Jonathan Mitchell jonat...@mugginsoft.com wrote: Is there a way to obtain an NSDate object from a casually entered user string, say: 1 1 2015 or 25 jul 15? There’s no easy way. You can create a whole bunch of format strings for every exact format you expect, and

Re: Share and store RSA - public key in java server and vice versa

2014-05-14 Thread Roland King
On 14 May, 2014, at 9:55 pm, Jens Alfke j...@mooseyard.com wrote: On May 13, 2014, at 9:20 PM, Maxthon Chan xcvi...@me.com wrote: I am saying ignore the details of the format, treat certificates as binary blobs or plain strings or whatever that is opaque, and let crypto API parse it.

Re: Cocoa-dev Digest, Vol 11, Issue 267

2014-05-14 Thread Jim McGowan
On 14 May, 2014, at 10:08:39 pm HKT, Jens Alfke j...@mooseyard.com On May 14, 2014, at 6:41 AM, Jonathan Mitchell jonat...@mugginsoft.com wrote: Is there a way to obtain an NSDate object from a casually entered user string, say: 1 1 2015 or 25 jul 15? There’s no easy way. You can

Re: Share and store RSA - public key in java server and vice versa

2014-05-14 Thread Jens Alfke
On May 14, 2014, at 7:15 AM, Roland King r...@rols.org wrote: If you ask a similar question to the original poster on any of the Apple Developer Forums you'll be advised not to generate key pairs on a device but to do it on a server (the advice will probably come from Quinn) That’s a weird

Re: Share and store RSA - public key in java server and vice versa

2014-05-14 Thread Devarshi Kulshreshtha
I agree with Jens, that's why we opted for creating public-private key pair on device itself. On Wed, May 14, 2014 at 8:02 PM, Jens Alfke j...@mooseyard.com wrote: On May 14, 2014, at 7:15 AM, Roland King r...@rols.org wrote: If you ask a similar question to the original poster on any of the

Re: Obtain an NSDate object from any casually entered user string

2014-05-14 Thread Ken Thomases
On May 14, 2014, at 8:41 AM, Jonathan Mitchell wrote: Is there a way to obtain an NSDate object from a casually entered user string, say: 1 1 2015 or 25 jul 15? I have looked at the various NSDateFormatter and NSDate API and cannot spot what I am after. You might try NSDataDetector with

ARC clean up?

2014-05-14 Thread William Squires
Okay, in non-ARC code, one would override dealloc to put clean-up code (to release retained objects, close open streams/files, etc...). But where do we put this in ARC code? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

Re: ARC clean up?

2014-05-14 Thread Jeffrey Robert Kelley
You can still override -dealloc, just don’t call [super dealloc] anywhere in it. Jeff Kelley slauncha...@gmail.com | @SlaunchaMan | jeffkelley.org On May 14, 2014, at 12:12 PM, William Squires wsqui...@satx.rr.com wrote: Okay, in non-ARC code, one would override dealloc to put clean-up code

Re: ARC clean up?

2014-05-14 Thread Kyle Sluder
On May 14, 2014, at 9:12 AM, William Squires wsqui...@satx.rr.com wrote: Okay, in non-ARC code, one would override dealloc to put clean-up code (to release retained objects, close open streams/files, etc...). But where do we put this in ARC code? You can still override -dealloc in ARC. You

Re: Subclassing and private methods

2014-05-14 Thread Michelangelo Chasseur
I would also consider forking the original project and modifying the pod. Then you would be able to include the pod in you Podfile by just specifying the URL of the forked git repo. Just my 2 cents. Mike -- Michelangelo Chasseur Il giorno mercoledì 7 maggio 2014, alle ore 21:38, Rick

Bug with Airlocate

2014-05-14 Thread Jerry.li
Hi All, I want to calibrate my beacon with AirLocate(download from https://developer.apple.com/library/ios/samplecode/AirLocate/Introduction/Intro.html), If I set my beacon proximity UUID as B9407F30-F5F8-466E-AFF9-25556B57FE6D (my own Proximity UUID, generate by ‘uuidgen’), it doesn’t work,

NSSharingService with Animated GIFs?

2014-05-14 Thread Charles Carver
I'm pretty new to Objective-C, but have been mostly understanding everything so far. I am stuck, however, on trying to share an animated GIF through NSSharingService. I am attaching the image like so, where “image is a string containing the URL of an animated GIF

Re: Share and store RSA - public key in java server and vice versa

2014-05-14 Thread Roland King
I'm just pointing out the advice which is constantly and consistently given by Apple (particularly Quinn) on the developer forum that getting the bits of a private key on iOS is unsupported and subject to change, and to do the job on a server which you trust and return the information. Here's

DTS: how long for response?

2014-05-14 Thread Trygve Inda
I used a DTS incident and have not heard back in 24 hours. Does anyone know about how long it normally takes these days (Mac OS X)? It's been several years since I have used one. Thanks, Trygve ___ Cocoa-dev mailing list

Re: Share and store RSA - public key in java server and vice versa

2014-05-14 Thread Jens Alfke
On May 14, 2014, at 3:48 PM, Roland King r...@rols.org wrote: I'm just pointing out the advice which is constantly and consistently given by Apple (particularly Quinn) on the developer forum that getting the bits of a private key on iOS is unsupported and subject to change, and to do the

Re: DTS: how long for response?

2014-05-14 Thread David Duncan
On May 14, 2014, at 4:21 PM, Trygve Inda cocoa...@xericdesign.com wrote: I used a DTS incident and have not heard back in 24 hours. Does anyone know about how long it normally takes these days (Mac OS X)? DTS typically responds within 3 business days. It's been several years since I have

How to speak Chinese on 10.9.2

2014-05-14 Thread Gerriet M. Denkmann
My iPhone can speak in 36 languages, from German, to Thai and Chinese, using AVSpeechSynthesisVoice. But the only thing in 10.9.2 I found was NSSpeechSynthesizer, which has 24 voices (which is nice) but all 24 have VoiceLanguage = VoiceLocaleIdentifier = en_US (which seems rather odd). What

Re: How to speak Chinese on 10.9.2

2014-05-14 Thread Jens Alfke
On May 14, 2014, at 6:24 PM, Gerriet M. Denkmann gerr...@mdenkmann.de wrote: But the only thing in 10.9.2 I found was NSSpeechSynthesizer, which has 24 voices (which is nice) but all 24 have VoiceLanguage = VoiceLocaleIdentifier = en_US (which seems rather odd). The non-English voices are

Re: Obtain an NSDate object from any casually entered user string

2014-05-14 Thread Gerriet M. Denkmann
On 15 May 2014, at 02:00, Ken Thomases k...@codeweavers.com wrote: On May 14, 2014, at 8:41 AM, Jonathan Mitchell wrote: Is there a way to obtain an NSDate object from a casually entered user string, say: 1 1 2015 or 25 jul 15? I have looked at the various NSDateFormatter and NSDate

Re: Share and store RSA - public key in java server and vice versa

2014-05-14 Thread Roland King
On 15 May, 2014, at 7:25 am, Jens Alfke j...@mooseyard.com wrote: On May 14, 2014, at 3:48 PM, Roland King r...@rols.org wrote: I'm just pointing out the advice which is constantly and consistently given by Apple (particularly Quinn) on the developer forum that getting the bits of a