deprecated BIGNUM replaced by what?

2014-02-26 Thread Gerriet M. Denkmann
I want to multiply two (big) numbers. I found /usr/include/openssl/bn.h which has just what I need. But everything is marked DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER. So what is one expected to do in 10.9.2? There is vBigNum.h in Accelerate.framework, but this does not help with

CIAreaMaximum filter not working

2014-02-26 Thread Kevin Meaney
I've written a command line routine that compares two image files, in the hope of determining if the two files are different. Basically the tool only compares whether the dimensions are different or whether the pixel values are sufficiently different. So the routine has a distance option which

Re: exporting image files to disk using CGImageDestination

2014-02-26 Thread Kevin Meaney
This has fixed itself. I don't know how or why. But after installing 10.9.2 and rebooting the tiff files with varying alpha values look the same as png files. I don't think it was the update to 10.9.2 but I've got no proof, but instead I think it is related to the fact that I've occasionally

Re: tableView - message sent to deallocated instance

2014-02-26 Thread Fritz Anderson
On 25 Feb 2014, at 2:39 PM, Pax 45rpmli...@googlemail.com wrote: This is a really weird problem (in my view, anyway), because it only occurs in a very particular set of circumstances. My application is NSDocument based (just in case it makes a difference), and my application uses ARC.

Re: deprecated BIGNUM replaced by what?

2014-02-26 Thread Uli Kusterer
On 26 Feb 2014, at 09:51, Gerriet M. Denkmann gerr...@mdenkmann.de wrote: I want to multiply two (big) numbers. I found /usr/include/openssl/bn.h which has just what I need. But everything is marked DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER. So what is one expected to do in 10.9.2?

Re: deprecated BIGNUM replaced by what?

2014-02-26 Thread Jens Alfke
On Feb 26, 2014, at 8:14 AM, Uli Kusterer witness.of.teacht...@gmx.net wrote: NSDecimalNumber ? That’s not a proper bignum; it has a limited precision of 38 decimal digits (sounds like 128 bits?) Gerriet: There must be a whole bunch of bignum libraries for C or C++; find one of those and

Re: CIAreaMaximum filter not working

2014-02-26 Thread Kevin Meaney
Well I've worked something out. If the CGContext supplied buffer that the CIContext draws the results of the CIAreaMaximum filter to uses float components it doesn't work. Providing a context which is 8 bit ints per component with 4 components RGBA works. Not the result I wanted, but at least

Re: deprecated BIGNUM replaced by what?

2014-02-26 Thread Maxthon Chan
That NSDecimalNumber is essentially the 128-bit quadruple-percision float number, in an non-IEEE-754 fashion. You can still use OpenSSL, either ignore the deprecation or compile and carry your own copy. Apple deprecated it because OpenSSL API isn’t stable enough. Alternatively, you can use

Re: tableView - message sent to deallocated instance

2014-02-26 Thread Pax
Thanks for your help. The problem is now solved - although I'm still none the wiser as to why the problem only manifested when the file was opened and then the document closed before the file was closed. I'm kind of curious to understand what was going on under the hood that might explain this

Re: tableView - message sent to deallocated instance

2014-02-26 Thread Kyle Sluder
On Wed, Feb 26, 2014, at 12:42 PM, Pax wrote: Thanks for your help. The problem is now solved - although I'm still none the wiser as to why the problem only manifested when the file was opened and then the document closed before the file was closed. I'm kind of curious to understand what was

Re: tableView - message sent to deallocated instance

2014-02-26 Thread Pax
The thing that I love about this site is that it always encourages developers to be better, to do better. Awesome stuff. I also like the phrase 'programming by chance'! Your spidey sense is oddly aligned with mine - that's the first thing that I thought and the first thing that I fixed

How to avoid exceptions when decoding incomprehensible archives

2014-02-26 Thread Markus Spoettl
Hello, is there a way to stop NSKeyedArchiver from bombing out with an exception, crashing the app along with it, when it tries to decode an archive that it deems incomprehensible? From time to time we get support requests about crashes that originate basically in damaged archives (binary

notification when device change in /dev

2014-02-26 Thread Roland King
Is there an NSNotification or some other kind of notification you can subscribe to when there's a change in /dev? I'm dealing with an old USB-serial device which creates a cu/tty when inserted (and removed when removed) and I'd like to get a notification when that happens so I can update UI.

Re: notification when device change in /dev

2014-02-26 Thread Kyle Sluder
On Wed, Feb 26, 2014, at 03:19 PM, Roland King wrote: Is there an NSNotification or some other kind of notification you can subscribe to when there's a change in /dev? I'm dealing with an old USB-serial device which creates a cu/tty when inserted (and removed when removed) and I'd like to get

Re: notification when device change in /dev

2014-02-26 Thread Graham Cox
On 27 Feb 2014, at 10:19 am, Roland King r...@rols.org wrote: Is there an NSNotification or some other kind of notification you can subscribe to when there's a change in /dev? I'm dealing with an old USB-serial device which creates a cu/tty when inserted (and removed when removed) and

Debugging insight needed for NSKeyedUnarchiver

2014-02-26 Thread Graham Cox
I've got a weird bug I'm having a hard time tracking down. In an archive, I have an array of objects. In an earlier version of my app, these are dearchived fine. In a recent build, they do not. The array is returned, but it contains 0 objects. Using a delegate on the unarchiver, I can see that

Re: notification when device change in /dev

2014-02-26 Thread Roland King
That's an idea. Not an Arduino, but not dissimilar, it's a UART mapped through a Segger chip which presents as a USB CDC which the kernel grabs and turns into /dev/cu.usbmodem* which required learning about termios and lots of other things I've not had to think about in 20 years. Kyle, the

Re: deprecated BIGNUM replaced by what?

2014-02-26 Thread Gerriet M. Denkmann
On 27 Feb 2014, at 02:03, Uli Kusterer witness.of.teacht...@gmx.net wrote: On 26 Feb 2014, at 09:51, Gerriet M. Denkmann gerr...@mdenkmann.de wrote: I want to multiply two (big) numbers. I found /usr/include/openssl/bn.h which has just what I need. But everything is marked

NSFetchedResultsController sort on synthesized property?

2014-02-26 Thread Rick Mann
It seems that I can't sort on a read-only synthesized property in my NSManagedObject subclass. I'd like to sort a bunch of stuff into some sections, but the definition of a section is somewhat complex, depending on multiple other properties. So, I defined a property section like this: -

Re: How to avoid exceptions when decoding incomprehensible archives

2014-02-26 Thread Jerry Krinock
On 2014 Feb 26, at 13:44, Markus Spoettl ms_li...@shiftoption.com wrote: Is an exception handler the only way to do that? Yes. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the

Re: notification when device change in /dev

2014-02-26 Thread Scott Ribe
On Feb 26, 2014, at 6:47 PM, Roland King r...@rols.org wrote: Kyle, the IOUSB stuff works too, I have that but find there's a delay before the /dev gets created, a random one, and I haven't yet figured out how to work out what device it gets mapped to... Well, somewhere in the attributes