Re: Newbie (to Cocoa) questions
Re: Newbie (to Cocoa) questions
- Subject: Re: Newbie (to Cocoa) questions
- From: Andrew Pinski <email@hidden>
- Date: Thu, 7 Mar 2002 15:20:58 -0500
On Thursday, March 7, 2002, at 02:12 , Jeff Shulman wrote:
We're starting a new implementation of our product (current a
PowerPlant Carbon app). In addition to the app it consists of a rather
extensive cross-platform C++ framework for our core code. PowerPlant
isn't really keeping up with all the OSX Aqua/CarbonEvent stuff as much
as I would like (say like using sheets). So we have three choices:
1) Continue with PowerPlant and either hope they catch up or implement
missing pieces ourselves;
2) Ditch PowerPlant and write a full Carbon app ourselves;
3) Use ObjC++/Cocoa as our front end (assuming we can drop pre-OSX
support).
Most of our cross-platform framework stuff is using CoreFoundation. One
question is going between CF* stuff and NS* stuff (like strings). I
know that NSString for example uses CFString but can I simply cast them
back and forth (my ideal dream) or do they need to be converted to some
intermediate form? I did search the archives for this answer but never
saw a straight reply. At the very least it would be nice if either
initializers for the NS* stuff can take a CF* or Apple provided some
library to do this.
Your ideal dream is true for most CF objects, but not all. Strings,
Arrays, Dictionaries, Data, Sets are all in your ideal dream.
This has been said before and I thought there as a tech note on it.
Next I assume everything needs to be compiled as Mach-O. We currently
use (and export to third parties) CFM shared libraries. I guess we
would also now have to provide/use a Framework? One problem I see is
that we currently provide a single binary CFM shared library (in a
bundle) which contains several merged sub-libraries. It doesn't look
like you can do this with a Framework unless you use an Umbrella
Framework. Alas the docs I see don't really go into Umbrella Frameworks
and specifically say that third parties shouldn't use them.
With these issues which of the above 3 choices would you make?
-- Jeff
email@hidden
I cannot say anything about PP because I never used it, myself.
I would program a full Carbon app before I got a hold of the Cocoa
Libraries(framework) and I have not looked back yet (except for quick
hacks
where I would need a window for displaying something graphical).
Thanks,
Andrew Pinski
_______________________________________________
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.