CFBridgingRetain does not leak memory

2016-04-15 Thread Tamas Nagy
Hello, I have an ongoing project where I’m using a CFMessagePort some sort of IPC communication. The CFMessagePort has a callback, something like this: static CFDataRef Callback(CFMessagePortRef port, SInt32 messageID, CFDataRef data,

Re: CFBridgingRetain does not leak memory

2016-04-15 Thread Ken Thomases
On Apr 15, 2016, at 4:34 AM, Tamas Nagy wrote: > > I have an ongoing project where I’m using a CFMessagePort some sort of IPC > communication. The CFMessagePort has a callback, something like this: > > static CFDataRef Callback(CFMessagePortRef port, > SInt32 messageID,

Re: CFBridgingRetain does not leak memory

2016-04-15 Thread Tamas Nagy
Ohh, I see now, thank you so much Ken! Best, Tamas > On 15 Apr 2016, at 11:57, Ken Thomases wrote: > > On Apr 15, 2016, at 4:34 AM, Tamas Nagy wrote: >> >> I have an ongoing project where I’m using a CFMessagePort some sort of IPC >> communication. The CFMessagePort has a callback, something

Signed App can't retrieve passwords from keychain

2016-04-15 Thread Siddarth Alva
I have an OS x application which attempts to retrieve a stored WiFI password from the Keychain using SecKeychainFindGenericPassword. The expected behaviour is the the application will pop up the system password prompt and if the user enters the credentials correctly it will retrieve the stored

Re: Make a version of NSData "rangeOfData: options: range:" for multiple search parameters

2016-04-15 Thread Jens Alfke
> On Apr 14, 2016, at 9:33 PM, Daryle Walker wrote: > > I need a version of the method listed in the subject that works on multiple > search strings instead of one, stopping at the first & longest match. Any > ideas? Depends on your requirements… If performance isn’t critical, just call -ra

Re: Signed App can't retrieve passwords from keychain

2016-04-15 Thread Jens Alfke
> On Apr 15, 2016, at 3:07 AM, Siddarth Alva > wrote: > > However when i try it with a signed version of the App (using a developer > certificate) It fails to pop up the password prompt. The status received is > "The user name or passphrase you entered is not correct.” I don’t think signing

Re: Proper way to set up constants when building an iOS framework

2016-04-15 Thread Alex Zavatone
Cool. I was thinking of the standard of adding a lowercase k in front of the constants, but wasn't sure if this was canon law or not and wanted to stick with whatever the standard is. One thing though. I did do a #import of "Constants.h" into my framework's header file and that's not filling

Re: Proper way to set up constants when building an iOS framework

2016-04-15 Thread Jens Alfke
> On Apr 15, 2016, at 1:34 PM, Alex Zavatone wrote: > > One thing though. I did do a #import of "Constants.h" into my framework's > header file and that's not filling the role of what a .pch would fill in a > standalone app, even though I thought that someone said it would. > > If I put the