[sword-devel] [bt-devel] Compatibility break: Sword 1.6RC1->RC2 API change
Manfred Bergmann
bergmannmd at web.de
Fri Apr 24 04:45:49 MST 2009
Instead of the need for subclassing, Objective-C or actually Cocoa
(also some other frameworks) use the concept of delegation.
In Objective-C this can be easily done through late binding. Methods
on objects can be called, or tried to call, even if it is unsure if
they are implemented.
But in other languages something similar can be achieved through
interface definitions.
However in this case, in this virtual method a delegate method could
be called which can be any class implementing a certain defined method
or interface.
The delegate could be the UI controller that handles the disclaimer
dialog.
Regards,
Manfred
Am 24.04.2009 um 11:14 schrieb Matthew Talbert:
> If I could also please request that the previous function be added
> back in. Like Manfred, subclassing InstallMgr to call a gui function
> is violating the separation we try to have between frontend and
> backend code. Already, we simply provide our own warning, always
> returning true to the function. We would do the same if we had to
> subclass, because attempting to provide a function there violates both
> our code separation and our workflow. My personal opinion is that
> doing some education here on the list as to what the dangers are to
> believers in persecuted countries would be far more effective than
> this addition to the library.
>
> The primary reason it would be nice to have the previous function back
> is that except for this issue, Xiphos 3.0.1 is compatible with the
> next release of sword. If this api change is made now, we will need to
> have another release just to keep compatibility.
>
> Matthew
>
> _______________________________________________
> sword-devel mailing list: sword-devel at crosswire.org
> http://www.crosswire.org/mailman/listinfo/sword-devel
> Instructions to unsubscribe/change your settings at above page
More information about the sword-devel
mailing list