Client certificate extraction out of SSL/TLS Connection on server side

2014-05-15 Thread Bastian Hafer
Hey Developers, I am currently writing an client and a server that are communicating via SSL/TLS. Both of them have self signed certificates. The connection works fine and as far as I checked the traffic is encrypted. Now I want to extract the certificates from the working stream that are

Re: How to speak Chinese on 10.9.2

2014-05-15 Thread Gerriet M. Denkmann
On 15 May 2014, at 08:41, Jens Alfke j...@mooseyard.com wrote: 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 =

Re: How to speak Chinese on 10.9.2

2014-05-15 Thread Gary L. Wade
German Anna, Chinese Mei-Jia, and Korean Yuna all speak my English text (Shakespeare, actually, in my test case) with accents from each language. I also verified Mei-Jia speaks Chinese from a Chinese play in my app, too. Do you get any calls in your delegate methods (you have set the delegate on

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

2014-05-15 Thread ChanMaxthon
Eh screw the OS X/iOS crypto libraries... I would just embed my own copy of OpenSSL or GNUTLS myself. (My toolkit library have already included GNU MP, the library GNUTLS is based on) Or if I really have the time reimplement RSA algorithms and key generation using Acceleration.framework Sent

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

2014-05-15 Thread ChanMaxthon
* Correction: GNUTLS depends on GNU MP which is already included. Sent from my iPad On May 15, 2014, at 7:46 PM, ChanMaxthon xcvi...@me.com wrote: Eh screw the OS X/iOS crypto libraries... I would just embed my own copy of OpenSSL or GNUTLS myself. (My toolkit library have already included

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

2014-05-15 Thread Roland King
I try not to 'screw' the Apple crypto libraries, I use them where possible and file bug reports to improve them where they are lacking. Lots of people do end up embedding OpenSSL, a fact not lost on the recipients of bug reports I'm sure, I've thus far managed not to have to. I'd prefer Apple

Re: How to speak Chinese on 10.9.2

2014-05-15 Thread Gerriet M. Denkmann
On 15 May 2014, at 15:53, Gary L. Wade garyw...@desisoftsystems.com wrote: German Anna, Chinese Mei-Jia, and Korean Yuna all speak my English text (Shakespeare, actually, in my test case) with accents from each language. I also verified Mei-Jia speaks Chinese from a Chinese play in my app,

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

2014-05-15 Thread Charles Srstka
On May 14, 2014, at 10:38 PM, Gerriet M. Denkmann gerr...@mdenkmann.de wrote: 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

Re: How to speak Chinese on 10.9.2

2014-05-15 Thread Gerriet M. Denkmann
On 15 May 2014, at 15:53, Gary L. Wade garyw...@desisoftsystems.com wrote: Also, I haven’t tried this sequence myself, but I noticed in your sample code you’re calling phonemesFromText: right after startSpeakingString:. Maybe phonemesFromText: is short-circuiting the speaking? Right on!

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

2014-05-15 Thread Gerriet M. Denkmann
On 15 May 2014, at 19:53, Charles Srstka cocoa...@charlessoft.com wrote: On May 14, 2014, at 10:38 PM, Gerriet M. Denkmann gerr...@mdenkmann.de wrote: 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

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

2014-05-15 Thread Charles Srstka
On May 15, 2014, at 8:03 AM, Gerriet M. Denkmann gerr...@mdenkmann.de wrote: I always use a 24-hour clock. Your users may not, though. In the US, at least, 24-hour clocks are definitely a minority. Is there a way, to make NSDataDetector aware of this fact? Some options I might set?

DNS Lookup

2014-05-15 Thread Appa Rao Mulpuri
Hi List, In Webkit, do we have any provision to provide application level DNS lookup map to route the particular URLs to a IP address? Similar like /private/etc/hosts file, trying to maintain a map at application level with DNS name as key and array of IP addresses, which will provide the

Re: How to speak Chinese on 10.9.2

2014-05-15 Thread Gary L. Wade
If you need the phonemes, look at the willSpeakPhoneme delegate method. You can use it in conjunction with the other delegates in a manner like NSString enumerates sentences and words―not a perfect comparison, but it should help you conceptually. If I recall, the feedback window solves a very

White rectangle behind UIAlertView when subview clipsToBounds

2014-05-15 Thread Diederik Meijer | Ten Horses
Dear list, I implemented a very straightforward UIAlertView. For some reason, on iPad, a light rectangular appears behind the alertview, here is what it looks like: http://www.tenhorses.com/apps/alertScreenshot.jpg What makes it strange is that that light rectangle is not visible when I take

Re: How to speak Chinese on 10.9.2

2014-05-15 Thread Gerriet M. Denkmann
On 15 May 2014, at 22:12, Gary L. Wade garyw...@desisoftsystems.com wrote: If you need the phonemes, look at the willSpeakPhoneme delegate method. You can use it in conjunction with the other delegates in a manner like NSString enumerates sentences and words—not a perfect comparison, but it

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

2014-05-15 Thread Sean McBride
On Thu, 15 May 2014 07:53:01 -0500, Charles Srstka said: 3. But sometimes the date of NSDataDetector is 12h ahead (again ignoring fractions of a second): 2014-05-15 07:52:18.658 → 2014-05-15 19:52:18 +0700 2014-05-14 05:59:46.490 +0700 → 2014-05-14 17:59:46.490 +0700 But not always -

Re: How to speak Chinese on 10.9.2

2014-05-15 Thread Gary L. Wade
Well, that's not fun. It's been a while since I tried it out, though. Well, write up some bugs, and if you have a sample app showing what you need, it'll at least get addressed. Speech is a priority although the forms of that priority might be different than we expect. And, if you are one of us

Not getting mouseDown: called when control-clicking in view in menu item

2014-05-15 Thread Tim Hewett
I have a NSMenuItem with a custom view (inheriting from NSImageView) which needs to react to mouseDown: events. An NSTrackingArea has been setup for the view’s frame to enable this. When getting the events the modifierFlags are used to change behaviour, but this doesn’t work when control is

Re: White rectangle behind UIAlertView when subview clipsToBounds

2014-05-15 Thread David Duncan
On May 15, 2014, at 8:42 AM, Diederik Meijer | Ten Horses diede...@tenhorses.com wrote: Dear list, I implemented a very straightforward UIAlertView. For some reason, on iPad, a light rectangular appears behind the alertview, here is what it looks like:

Re: Client certificate extraction out of SSL/TLS Connection on server side

2014-05-15 Thread Jens Alfke
I went back and looked into some earlier code of mine that can do this (the MYNetwork framework, available on Github). The good news is that I know what stream property to set. The bad news is that it’s not in any public header, even though this omission has been known for five years or more.

Re: White rectangle behind UIAlertView when subview clipsToBounds

2014-05-15 Thread Diederik Meijer | Ten Horses
Hi David, Many thanks for your quick response! UIAlertView is called here: -(void)welcomeAlert { if (![[NSUserDefaults standardUserDefaults] objectForKey:@welcomeAlertShown] || [[[NSUserDefaults standardUserDefaults] valueForKey:@welcomeAlertShown] isEqual:@NO]) { UIAlertView *av

Re: White rectangle behind UIAlertView when subview clipsToBounds

2014-05-15 Thread Alex Zavatone
It appears as if you're doing this on iOS (even though you didn't mention the platform). In this case, can't you run this through the Simulator and turn on the coloring options under the Debug menu? On May 15, 2014, at 2:23 PM, Diederik Meijer | Ten Horses wrote: Hi David, Many thanks for

Re: White rectangle behind UIAlertView when subview clipsToBounds

2014-05-15 Thread Kyle Sluder
On Thu, May 15, 2014, at 12:10 PM, Alex Zavatone wrote: It appears as if you're doing this on iOS (even though you didn't mention the platform). Considering UIAlertView only exists on iOS, along with any other UI* prefixed class names, I would think that iOS would be obvious. --Kyle Sluder

Re: White rectangle behind UIAlertView when subview clipsToBounds

2014-05-15 Thread Diederik Meijer | Ten Horses
Update: this sequence of steps is a workaround that avoids the problem: 1. Setting the view that should remain invisible hidden; 2. Setting clipsToBounds on its parent to NO; 3. Now create and show the alert; 4. On a tap on the 'OK' button, reverse 1 and 2, meaning: 5. Set clipsToBounds on the

Re: Client certificate extraction out of SSL/TLS Connection on server side

2014-05-15 Thread Ben Kennedy
As a workaround, couldn't you just empirically determine the value of that constant (presuming it hasn't changed in five years and is not expected to change), and then define a new constant of your own accordingly? b Sent from my iPhone On May 15, 2014, at 1:06 PM, Jens Alfke

NSDatePicker : Displaying and binding to nil.

2014-05-15 Thread Jonathan Mitchell
NSDatePicker cannot display or bind to a nil dateValue so I have put together something that might be of use when binding to NSDate instances that might be nil. https://github.com/ThesaurusSoftware/TFDatePicker Subclassing NSDatePickerCell is made difficult because NSDatePickerCell does not

Re: DNS Lookup

2014-05-15 Thread Mike Abdullah
On 15 May 2014, at 14:15, Appa Rao Mulpuri appar...@ivycomptech.com wrote: Hi List, In Webkit, do we have any provision to provide application level DNS lookup map to route the particular URLs to a IP address? Similar like /private/etc/hosts file, trying to maintain a map at application

Re: White rectangle behind UIAlertView when subview clipsToBounds

2014-05-15 Thread Alex Zavatone
Of course. That's why I said it appears you're doing this on iOS. But it's always nice to not have to read in and figure out which platform the person is targeting. If anyone's ever been on a dev team and had a back and forth with QA continually asking for more info, you know what I'm

Question on NSTableViewDataSource Protocol

2014-05-15 Thread Varun Chandramohan
Hi All, I was playing around with dragging items into NSTableView and I ran into a interesting problem. When I drag an item into my table, the following delegate gets called. - (BOOL)tableView:(NSTableView *)tableView acceptDrop:(idNSDraggingInfo)info row:(NSInteger)row

where to put persistent storage for command-line app

2014-05-15 Thread William Squires
Should I put it in /Library/Application\ Support/ or /Library/Preferences, or somewhere else? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at

Re: where to put persistent storage for command-line app

2014-05-15 Thread Kyle Sluder
On May 15, 2014, at 8:47 PM, William Squires wsqui...@satx.rr.com wrote: Should I put it in /Library/Application\ Support/ or /Library/Preferences, or somewhere else? Definitely not in ~/Library/Preferences, unless you are using NSUserDefaults. What kind of persistent storage are you

Re: Question on NSTableViewDataSource Protocol

2014-05-15 Thread Jerry Krinock
On 2014 May 15, at 18:18, Varun Chandramohan varun.chandramo...@wontok.com wrote: This is bad idea as I am doing this inside performInsertWithDragInfo before I return from tableView:(NSTableView *)tableView acceptDrop:(idNSDraggingInfo)info row:(NSInteger)row