Carbon Documents

Member
Posts: 567
Joined: 2004.07
Post: #1
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?

It's not magic, it's Ruby.
Quote this message in a reply
Member
Posts: 156
Joined: 2002.11
Post: #2
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.
Quote this message in a reply
Member
Posts: 567
Joined: 2004.07
Post: #3
no. as in NSDocument for carbon.

*sighs* I Love LOVE Love quick replies... Smile Grin

It's not magic, it's Ruby.
Quote this message in a reply
Luminary
Posts: 5,125
Joined: 2002.04
Post: #4
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.
Quote this message in a reply
Member
Posts: 567
Joined: 2004.07
Post: #5
damn. ii though it was the c equivalent of cocoa... Sad

It's not magic, it's Ruby.
Quote this message in a reply
Luminary
Posts: 5,125
Joined: 2002.04
Post: #6
"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.
Quote this message in a reply
Member
Posts: 156
Joined: 2002.11
Post: #7
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.
Quote this message in a reply
Moderator
Posts: 3,551
Joined: 2003.06
Post: #8
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.
Quote this message in a reply
Member
Posts: 156
Joined: 2002.11
Post: #9
Yeah, but they are all very basic data types, in a way. Nothing on the complexity level of NSDocument. I am not complaining though.
Quote this message in a reply
Member
Posts: 567
Joined: 2004.07
Post: #10
how does one create a toll-free bridge?

It's not magic, it's Ruby.
Quote this message in a reply
Member
Posts: 156
Joined: 2002.11
Post: #11
Quote this message in a reply
Moderator
Posts: 365
Joined: 2002.04
Post: #12
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.

Neil Carter
Nether - Mac games and comic art
Quote this message in a reply
Post Reply