NSHost and NSStream question

2010-01-21 Thread Mathieu Coursolle
Hi Cocoa developers, I am writing a small application that acts as a TCP client for another application (TCP server). The client nows the IP address and port of the server. I then use NSStream to create an output stream from an NSHost (see code bellow). If I initialize the IP address as 127.0.

Re: NSHost and NSStream question

2010-01-22 Thread Mathieu Coursolle
Hi, I finally fixed my problem. The server was not opening the port properly, so the client could not connect. It as error 61 of POSIX domain. Seems to work fine now. Thanks, Mathieu On 2010-01-21, at 4:37 PM, Jens Alfke wrote: > > On Jan 21, 2010, at 6:43 AM, Mathieu Coursolle

Layer-backed view issue with isOpaque

2010-02-26 Thread Mathieu Coursolle
Hi Cocoa developers, I have a small application that consists of a NSTabView, in which all tabs contain a single custom NSView. That custom view is layer-backed (setWantsLayer:YES in awakeFromNib). So far, the view layer doesn't draw anything, and the NSView drawRect method fills its content

NSInputStream Overflow?

2010-09-07 Thread Mathieu Coursolle
Hi Cocoa Developers, I have an application that connects to a TCP server and exchanges data using NSInputStream. I am using the run-loop scheduling approach. Everything works fine most of the time. However, when my application becomes busy processing other stuff, it seems like I am loosing some

How to read the z-buffer in a layer-backed openGL view?

2008-08-13 Thread Mathieu Coursolle
Hi Cocoa developers, I've been playing with this example for a while now: http://developer.apple.com/samplecode/LayerBackedOpenGLView/listing2.html and I was wondering if someone knew the answer to that question: Is is possible to read the z-buffer (using glReadPixels) in a mouseDown procedur

Changing tab in NSTabView with wantsLayer and Garbage collection problem.

2008-03-07 Thread Mathieu Coursolle
Hi Cocoa dev, I would like to use core animation in an application, so I am investigation on how to use the wantsLayer property of an NSView, but I got confused with some behavior so far... I created a simple window, in which there is a tab view. In the first tab, I added a custom view, a

Removing subviews that are layer backed problem.

2008-04-23 Thread Mathieu Coursolle
Hi Cocoa developers, I have a custom view (let's call this one the main view) which shows some UI controls and another custom subview which is layer backed (wantsLayer = YES). I created my own CAOpenGLLayer subclass to perform specific OpenGL drawing in it. The main view needs to change i

Re: Endless Hang on Saving a Core Data Document

2008-11-04 Thread Mathieu Coursolle
Hi, We have a Core Data/ Leopard/Garbage collection/SQLite application that is never returning from save. I found your post, and changing to XML did solve the issue. Is there a rdar for this? We do have a 100% repro case, and we'd like to use SQLite... Thanks! Mathieu On 28-Feb-08, at

Garbage collection leak in simple Core Data application

2008-11-27 Thread Mathieu Coursolle
! Mathieu _______ Mathieu Coursolle Rogue Research Inc. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscr

Re: Garbage collection leak in simple Core Data application

2008-11-28 Thread Mathieu Coursolle
Hi, Here is the result from gc-roots for a window controller that was not collected: (gdb) info gc-roots 0x1048c10 Number of roots: 1 Root: 0 Kind: stack rc: 0 Address: 0xbfffee24 Frame level: 3 Symbol: 1 Kind: object rc: 0 Address: 0x01047be0 Class: NSWindow ivar: NSR

Re: Garbage collection leak in simple Core Data application

2008-11-28 Thread Mathieu Coursolle
ging issue. Thanks! Mathieu On 28-Nov-08, at 1:10 PM, Bill Bumgarner wrote: On Nov 28, 2008, at 8:49 AM, Mathieu Coursolle wrote: Here is the result from gc-roots for a window controller that was not collected: (gdb) info gc-roots 0x1048c10 Number of roots: 1 Root: 0 Kind: stack rc: 0