Posted: Tue Jan 17, 2006 10:15 pm Post subject: Understanding the source
Is there any documentation anywhere as to where in the sources various things are implemented?
In particular, I was hoping to take a look at how the NeoOffice word processor text view is implemented, because looking at other people's examples is much easier than trying to find anything in Apple's docs.
Joined: May 25, 2003 Posts: 4752 Location: Santa Barbara, CA
Posted: Tue Jan 17, 2006 10:30 pm Post subject:
Well, a lot of the question is somewhat loaded...
The entire point of Cocoa is that you should be taking a framework view. As an application developer, you never should be asking how exactly it is how something is done, but rather using what it is the thing does to build your own application.
OOo (and Neo, by extension) tries to implement an abstraction for "how it is done" and then reimplement that "how it is done" exactly on other platforms. As it turns out this is easier than it seems.
If you're trying to understand academically how one implements such a platform-agnostic framework, Neo may provide an interesting test case. If it's for understanding the real-world failings of such an idealistic approach, you may experience equivalent luck (from an academic perspective).
The documentation is scattered across projects, in either case, but it may be best to start with UDK/the UNO Development Kit as a broad starting point for learning the application architecture.
I'm trying to write a text editor that uses vi keys, and what I want to do is write my own view to allow me to do this. However, I also want to be able to support proper Mac text input methods, and NeoOffice seems to do that.
So I'd like to see what's going on in the code there, in case it'll help me out. But, I checked out the NeoOffice sources (but not the OpenOffice sources), and I can't make out what all that stuff is.
I'm just looking for hints here as to how to get certain things done in Cocoa. I'm not looking for "cross-platform" anything.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum