Re: Custom view and array bindings

2014-05-13 Thread Ken Thomases
On May 13, 2014, at 11:14 PM, Jim Geist wrote: > Can anyone point me at sample code and/or docs around implementing bindings > to an NSArrayController from a custom view (i.e. what a control like > NSTableView might do under the covers?) > > All of my searches are turning up plenty of informati

Re: Custom view and array bindings

2014-05-13 Thread Jim Geist
Ok, thanks. The rest of my UI is set up with bindings to standard views, but it certainly looks easier to do what you suggest. And I assume if I adhere to KVC when I change things, it'll playing nice with the bound controls. Sent from my iPad > On May 13, 2014, at 10:07 PM, Quincey Morris > w

Re: Custom view and array bindings

2014-05-13 Thread Quincey Morris
On May 13, 2014, at 21:14 , Jim Geist wrote: > Can anyone point me at sample code and/or docs around implementing bindings > to an NSArrayController from a custom view (i.e. what a control like > NSTableView might do under the covers?) AFAIK, the only documentation is here: https://d

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

2014-05-13 Thread Maxthon Chan
Or if you don;t mind GNU, you have GNUTLS package that is just as good. GPG can be dissected and used if you understand how licensing works there. On May 14, 2014, at 0:56, Jens Alfke wrote: > > On May 13, 2014, at 9:33 AM, Maxthon Chan wrote: > >> Whatever that is there is, for 100% sure, s

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

2014-05-13 Thread Maxthon Chan
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. You can ditch Apple API entirely and compile your own OpenSSL if you find it difficult to use. On May 14, 2014, at 0:56, Jens Alfke wrote:

Custom view and array bindings

2014-05-13 Thread Jim Geist
Can anyone point me at sample code and/or docs around implementing bindings to an NSArrayController from a custom view (i.e. what a control like NSTableView might do under the covers?) All of my searches are turning up plenty of information I already know on how to programmatically set up a bin

Re: Hang during AESend

2014-05-13 Thread Trygve Inda
> On May 13, 2014, at 13:03 , Trygve Inda wrote: > >> NSAppleEventDescriptor *appleEvent = [NSAppleEventDescriptor >> appleEventWithEventClass: kMyAEClass >> eventID: kMyAEEventID >> targetDescriptor: targetDescriptor >> returnID: kAutoGenerateReturnID >> transactionID: kAnyTransactionID]; > >>

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

2014-05-13 Thread Devarshi Kulshreshtha
@Jens thanks for informing about apple_cdsa list, I am definitely going to trouble guys over there ;) I am correcting the steps which I wrote before: 1. SecKeyWrapper *keyWrapper = [SecKeyWrapper sharedWrapper]; 2. [keyWrapper generateKeyPair]; 2. NSData *publicKeyData = [keyWrapper getPublicKeyB

Re: Type of text field used by Xcode's "Jump to Line"?

2014-05-13 Thread Graham Cox
On 14 May 2014, at 11:54 am, Ben Golding wrote: > It's the borderless NSWindow with an NSTextField in it. It looks like it might be a popover. --Graham ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or m

Re: Type of text field used by Xcode's "Jump to Line"?

2014-05-13 Thread Ben Golding
On 14 May 2014, at 11:52 am, Kyle Sluder wrote: > On May 13, 2014, at 6:31 PM, Ben Golding wrote: >> >> In an app I'm working on, I'd like to use a very basic text input field just >> like the one used by Xcode's Navigate>"Jump in File" (aka, cmd-L) but I >> don't know what it's called so I

Re: Type of text field used by Xcode's "Jump to Line"?

2014-05-13 Thread Kyle Sluder
On May 13, 2014, at 6:31 PM, Ben Golding wrote: > > > In an app I'm working on, I'd like to use a very basic text input field just > like the one used by Xcode's Navigate>"Jump in File" (aka, cmd-L) but I don't > know what it's called so I can't look it up. Could someone let me know what > i

Re: Type of text field used by Xcode's "Jump to Line"?

2014-05-13 Thread SevenBits
On Tuesday, May 13, 2014, Ben Golding wrote: > > In an app I'm working on, I'd like to use a very basic text input field > just like the one used by Xcode's Navigate>"Jump in File" (aka, cmd-L) but > I don't know what it's called so I can't look it up. Could someone let me > know what it's calle

Type of text field used by Xcode's "Jump to Line"?

2014-05-13 Thread Ben Golding
In an app I'm working on, I'd like to use a very basic text input field just like the one used by Xcode's Navigate>"Jump in File" (aka, cmd-L) but I don't know what it's called so I can't look it up. Could someone let me know what it's called? Thanks, Ben. smime.p7s Description: S/M

Re: Hang during AESend

2014-05-13 Thread Trygve Inda
> On May 13, 2014, at 13:03 , Trygve Inda wrote: > >> NSAppleEventDescriptor *appleEvent = [NSAppleEventDescriptor >> appleEventWithEventClass: kMyAEClass >> eventID: kMyAEEventID >> targetDescriptor: targetDescriptor >> returnID: kAutoGenerateReturnID >> transactionID: kAnyTransactionID]; > >>

Re: Hang during AESend

2014-05-13 Thread Quincey Morris
On May 13, 2014, at 13:03 , Trygve Inda wrote: > NSAppleEventDescriptor *appleEvent = [NSAppleEventDescriptor > appleEventWithEventClass: kMyAEClass > eventID: kMyAEEventID > targetDescriptor: targetDescriptor > returnID: kAutoGenerateReturnID > transactionID: kAnyTransactionID]; > AESendMessage

Hang during AESend

2014-05-13 Thread Trygve Inda
Sometimes, I am getting a hang. I can reproduce it by creating a lot of Apple Events (~100) within a few seconds, but it is not predictable enough to always happen at the same time. Console reports: 5/13/14 12:52:59.290 PM appleeventsd[56]: Got kAELookupClientPort with no criteria:{command=300, }

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

2014-05-13 Thread Jens Alfke
On May 13, 2014, at 9:33 AM, Maxthon Chan wrote: > Whatever that is there is, for 100% sure, some form of standardised format > that iOS, Android and your Java server will be able to deal with with higher > level API. *hollow laugh* There are lots of different standardized formats. It’s just

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

2014-05-13 Thread Jens Alfke
On May 13, 2014, at 22:20, Devarshi Kulshreshtha wrote: > In CyrptoExercise sample provided by apple, we have a wrapper class: > SecKeyWrapper. First, I think CryptoExercise is out of date. It’s not included in Xcode 5.1’s doc set. I found it on Apple’s website, but it looks like it was last

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

2014-05-13 Thread Maxthon Chan
Whatever that is there is, for 100% sure, some form of standardised format that iOS, Android and your Java server will be able to deal with with higher level API. You can just send PEM over and let higher-level API handle it. On May 14, 2014, at 0:29, Jens Alfke wrote: > > On May 13, 2014, a

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

2014-05-13 Thread Jens Alfke
On May 13, 2014, at 8:55 AM, Maxthon Chan wrote: > I am not exactly familiar with using RSA but as long as the format is > followed I believe whatever mechanism here is okay. This is actually kind of problematic. There are a number of formats for encoding public keys, and of course they vary

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

2014-05-13 Thread Maxthon Chan
I am not exactly familiar with using RSA but as long as the format is followed I believe whatever mechanism here is okay. Also if I didn’t made it wrong DER certificates are text files. Try to dump the NSData and try your Android device if it can directly recognise it. On May 13, 2014, at 22:20

Re: Lenient Date Formatter

2014-05-13 Thread Jens Alfke
As far as I know, you have to do it the way you’re doing it — create several different date formatters and try to parse using each one in turn. —Jens ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

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

2014-05-13 Thread Devarshi Kulshreshtha
Thanks for your suggestions. I have one specific question: In CyrptoExercise sample provided by apple, we have a wrapper class: SecKeyWrapper. In this class we have one method: - (NSData *)getPublicKeyBits. Shall I use below code to create and send an encoded string to server: 1. SecKeyWrapper *

Lenient Date Formatter

2014-05-13 Thread Gerriet M. Denkmann
I need a date formatter which can do (10.9.2): NSDate *d1 = [ dateFormatter dateFromString: @"2014-05-13 11:31:03.943 +0700" ]; NSDate *d2 = [ dateFormatter dateFromString: @"2014-05-13 11:31:03 +0700" ]; // no fractional seconds so that both d1 and d2 are non-nil. Is this possible? Cu

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

2014-05-13 Thread ChanMaxthon
Rounding stuff up, there are two broadly-implemented systems: PKCS and PGP. If you are using PKCS system, you need to operate a CA that your app trusts. Your server issue issue new keys as certificates signed by your CA. Clients provide keys using CSR which is confirmed when signed by the server

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

2014-05-13 Thread ChanMaxthon
There are many good container formats for asymmetric keys and public keys can be handled in plain. Good formats to use: Certificate Signing Request, self-signed certificate, PGP, some form of archive formats can also be used like tar(1) or ar(1). You can also integrate this key exchange into pu

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

2014-05-13 Thread Devarshi Kulshreshtha
My requirements are: Requirement 1: Share public key to java server. Steps: 1. Generate public-private keys in iOS app. 2. Store the generated keys in keychain. 3. Send generated public key to java server. 4. Java server shall be able to store shared public key in database. Requirement 2: Store