help about the flat-namespace?

2008-07-29 Thread Leopard x86
Hi everyone. I am going to use a foreign library named graphviz by AT&T research. There is example application written in Cocoa. I am very lucky to build the library from the source and installed the needed libraries and header files. But when I launched the application, the console dumped out

Want to save the content of a NSView with CALayer embedded.

2008-08-03 Thread Leopard x86
Hi everyone. I am ordered to save a NSView hosting the arbitrary number of core animation layers. Although there are many tutorials about how to save the content of a NSView, I can find nothing about saving the content of the layer embedded in a NSVIew. First I tried to use the following c

how to implement the auto-complement function like Xcode 3.x?

2008-08-13 Thread Leopard x86
Hi everyone. After experiment the built-in auto-complement function of Xcode 3.x, I am very impressed really, it is so powerful. Thanks for the hard- working Apple engineers. Then here comes the question: how can we implement this function for our editor-like application? Because I am working

Embed some NSControl in the NSTableView field?

2008-08-20 Thread Leopard x86
Hi everyone. Maybe this idea is rather crazy, I do want to know whether it is practicable or not. The NSTableView is essentially a table to the end user. For example, your application may seem like the following: Tableheader1Tableheader2 MyVolumeValue = 0.

Two questions about cocoa programming...

2008-09-29 Thread Leopard x86
Hi everyone. In the recent development, I need to solve the following two issues: 1. How to distinguish the difference about the inline children count of the XML Node? here is my code: xmlDoc = [[NSXMLDocument alloc] initWithXMLString:[NSString stringWithContentsOfFile:_filePath]