OS X app design question
OS X app design question
- Subject: OS X app design question
- From: email@hidden
- Date: Mon, 11 Aug 2003 14:32:03 -0400
Hello all,
I have a design question for the group. I'm working with another person on
a P2P network collaboration app. My partner will be creating a C library
that will contain the calls for file sharing, chat, etc (all the network
stuff). This will be cross platform (OS X, Linux, *BSD, Windows, etc) and
I will be creating an OS X GUI for it (using Cocoa). The thing that I am
looking for opinions on is where to put the callbacks. Should the C
library register callbacks from the GUI side? This would allow the library
to push data out to the client whenever it was necessary (making it easier
to implement things like progress bars, etc), but it adds to the complexity
of the cross-platform idea. On the other hand, if you use a pull model and
just have the client side poll the library for data (NSNotifications?), it
will make the library easier to write, but makes the client less efficient
(polling instead of only getting data when it's there). I don't have a ton
of experience with this, so please bear with me if this is a dumb question,
or if I am missing something. I'd appreciate any comments or experiences
any of you have had in this area.
thanks
Shayne
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.