Carbon Documents
Dow does onecreate a Carbon Document? does it use FILE pointers?
Another thing; does .obj use only tiangles? if not, do you know one that does?
Another thing; does .obj use only tiangles? if not, do you know one that does?
It's not magic, it's Ruby.
The 3DS format uses only triangle meshes, AFAIK. The OBJ format uses all sorts of polygons.
What do you mean by Carbon document? Just a binary file? You can save your data to disk in a text file, binary file, XML file, and so on.
What do you mean by Carbon document? Just a binary file? You can save your data to disk in a text file, binary file, XML file, and so on.
no. as in NSDocument for carbon.
*sighs* I
LOVE
quick replies...
*sighs* I
LOVE
quick replies...
It's not magic, it's Ruby.
Carbon ain't an application framework. It doesn't do any of that kind of stuff for you. This is why people don't use Carbon.
damn. ii though it was the c equivalent of cocoa...
It's not magic, it's Ruby.
"equivalent" in the sense that roughly the same things are possible using either API. Not "equivalent" in the sense of requiring equally much work to do said things.
Indeed, there's a bunch of stuff you can probably code a lot faster with Cocoa. There are some CoreFoundation types that are compatible with NS objects, such as CFStringRef and NSString, but that's pretty much it.
If you are trying to open and save your model data, I suggest your use CFURLRef and associated functions to create files and save your data.
If you are trying to open and save your model data, I suggest your use CFURLRef and associated functions to create files and save your data.
FCCovett Wrote:There are some CoreFoundation types that are compatible with NS objects, such as CFStringRef and NSString, but that's pretty much it.If you're talking about toll-free bridging then there's a bunch more than that.
Yeah, but they are all very basic data types, in a way. Nothing on the complexity level of NSDocument. I am not complaining though.
how does one create a toll-free bridge?
It's not magic, it's Ruby.
Dude, it's right there: http://www.cocoadev.com/index.pl?TollFreeBridging
Nayr Wrote:how does one create a toll-free bridge?You don't. Some NS/CF classes are toll-free bridged (that is, you can use them interchangeably) and some aren't. You don't need to do anything to make it work.

