Re: Big picture relationships between NSConnection, NSInputStream, NSOutputStream etc

2008-12-04 Thread Ken Tozier
OK. After reading the docs on NSStream, here's what I came up with. - (BOOL) openStreamsWithMode:(MySQLConnectMode) inMode { [NSStream getStreamsToHost: host port: port inputStream: &inStream outputStream: &outStream]; if ((inStream != nil) && (outStream != nil)) {

Re: indexOfObjectIdenticalTo: problem with NSArrayController

2008-12-04 Thread Ashley Clark
On Dec 4, 2008, at 5:46 PM, Mikael Wämundson wrote: Hi all. Since it is good programming to not access an array's content through its controller when in the model I'm trying to find a way to get to the same object selected in the user interface (i.e. the array controller). In my view I

Re: NSSocketPort == BSD Socket

2008-12-04 Thread Kirk Kerekes
-[NSSocketPort socket] returns a file descriptor. Write to it. Init an NSFileHandle with it. (-[NSFileHandle initWithFileDescriptor:]) It's all just sockets/files/descriptors. But "raw messaging" is not the same as writing raw bytes to a TCP stream. All that means is that you can use the s

core data, refreshObject, multiple threads

2008-12-04 Thread Chris Idou
I've got a main thread that handles a gui, and a worker thread with its own persistentStoreCoordinator and managedObjectContext. The gui notifies the worker thread of a change, passing it an objectID, and the worker thread gets the object, and other objects it is connected to, and calls [manag

Re: Custom Window Resize Image

2008-12-04 Thread Sean McBride
Ron Fleckner ([EMAIL PROTECTED]) on 2008-12-04 12:52 AM said: >> Hello, I'm writing a custom window for my application, but I can't >> figure out how to make a custom resize image... Any help? >> >> Thanks, >> Mr. Gecko > >Unless you actually want a 'custom' resize image, you can use the real >one

Re: How To Deal With Rounding Errors

2008-12-04 Thread Scott Ribe
If the user clicks just off the left of the view, does that give you a negative value? Or do you limit it to 0, then divide by 0? What happens if you use a range of 1->2 instead of 0->1? -- Scott Ribe [EMAIL PROTECTED] http://www.killerbytes.com/ (303) 722-0567 voice ___

Re: NSSocketPort == BSD Socket

2008-12-04 Thread Michael Ash
On Thu, Dec 4, 2008 at 7:52 PM, Kirk Kerekes <[EMAIL PROTECTED]> wrote: > -[NSSocketPort socket] returns a file descriptor. Write to it. > > Init an NSFileHandle with it. (-[NSFileHandle initWithFileDescriptor:]) > > > It's all just sockets/files/descriptors. Well, you're not using NSSocketPort to

Sizing NSDatePicker to reflect chosen date format in System Prefs

2008-12-04 Thread Manoj Patwardhan
How do date format settings in the International pane in System Preferences get reflected in an instance of NSDatePicker? I have a window with a NSDatePicker control. Regardless of what I change the short date format to in System Preferences, the control is not automatically resized. Callin

Re: Custom Window Resize Image

2008-12-04 Thread Mr. Gecko
Ok so I've done some looking around more in the documents, would it be possible to make a button that has a picture of the grow box and than have it send an action when it's dragged using NSLeftMouseDraggedMask. On Dec 4, 2008, at 8:47 PM, Sean McBride wrote: Ron Fleckner ([EMAIL PROTECTED]

Re: NSTimer

2008-12-04 Thread Mahaboob
On 12/4/08 9:41 PM, "Adam R. Maxwell" <[EMAIL PROTECTED]> wrote: > > On Dec 4, 2008, at 4:47 PM, Mahaboob wrote: > >> Hi, >> I need to fire the thread repeatedly in regular time intervals. So I >> used >> the timer like: >> timer = [[NSTimer scheduledTimerWithTimeInterval:(double) >> [txtTim

Re: NSTimer

2008-12-04 Thread Adam R. Maxwell
On Dec 5, 2008, at 10:26 AM, Mahaboob wrote: On 12/4/08 9:41 PM, "Adam R. Maxwell" <[EMAIL PROTECTED]> wrote: On Dec 4, 2008, at 4:47 PM, Mahaboob wrote: Hi, I need to fire the thread repeatedly in regular time intervals. So I used the timer like: timer = [[NSTimer scheduledTimerWithTimeI

Re: "Live" image preview, huge memory usage...

2008-12-04 Thread Jean-Nicolas Jolivet
Thanks for the links! They were pretty much all interesting reading!! However, I still have a problem... Rob Keniger's code for preventing leaks when drawing CIImage off-screen works well, however if I generate my images in an NSOperation, the leaks re-appear... and since Im generating a bu

<    1   2