Re: NSNumber stringValue

2009-12-12 Thread RedleX Support
You should not compare floating point numbers for equality in most cases. This is true of any language on any platform. Indeed, some floating-point numbers (such as the one represented by the integer 0x7fc0) will compare as not equal to themselves: I think what the OP really wanted to

NSNumber stringValue

2009-12-11 Thread RedleX Support
Hi, I need to output a double into a text file and then read it back with 100% accuracy, will using NSNumber stringValue and then using NSString doubleValue give me good results? For example, if I write the following: double a,b; a=some number; b=[[[NSNumber numberWithDouble:a]

Two controllers in a window, how do I get one to run a function in another?

2009-08-27 Thread Support
I'm writing an application which has one window, with an NSTableView and a WebView in it. The NSTableView will contain a list of URLs and site descriptions and the WebView will display the URL when it's clicked on in the NSTableView. So far, so simple - especially if the NSTableView and

NSTableView drag from Finder Problem

2009-08-26 Thread Support
I fear that I may be asking a daft question here - but I've been puzzling over this for a while now and it's confusing the hell out of me. Probably only a quick fix too! I'm trying to implement NSTableView so that files can be dragged in from Finder. The NSTableView is within an NSSplitView