Re: Using Bindings with C++ objects
Re: Using Bindings with C++ objects
- Subject: Re: Using Bindings with C++ objects
- From: Mike Rossetti <email@hidden>
- Date: Thu, 27 Dec 2007 09:44:17 -0700
On Mon, 24 Dec 2007 11:59:35 +0530, Shripada Hebbar <email@hidden
> wrote:
Rick,
I doubt you'd gain anything from using bindings in your case. The
code you'd have to write to bridge your C++ objects would
essentially be the same as you'd have to write to implement your
master-detail-view without bindings.
But I think writing obj-C wrapper to the C++ class or module and
binding against that is a good alternative than glue code. Its a one
time job and definitely would make the app more cleaner. Also in
future if its decided to port that stuff to objective C, then you
dont have to mess up again with your view classes.
Yes, absolutely (if I understand completely what you are suggesting
Shripada): one of the motivations for dropping in the NSMutableArray
wrappers and light-weight NSObject proxies was for future migration of
the 'engine' portion of the application to Cocoa/Obj-C (should we
ultimately decide to make that transition). There would be no need to
change the bindings or update the nibs (except, perhaps to update
class names)--just swap in the new NSMutableArray and 'real'
replacements for the proxies.
Mike
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden