"Chris Uppal" <
[hidden email]> wrote in message
news:
[hidden email]...
> Yar Hwee Boon wrote:
>
>> But where do I put the isDateTimeMode instance variable? Do I simply move
>> the whole DateTimePicker class to my own package? Or should I create a
>> subclass instead. In that case, how do I add a view subclass and make it
>> usable with DatePresenter?
>
> I haven't made much (if any) use of DateTimePicker, so I may be missing
> something that's built-in, but in general, for such cases I'd make my own
> subclass. Once you have created it you can execute an expression like:
>
> DatePresenter addView: MyDateTimePicker asResource: 'Default view'.
>
> which will create a new instance of your class, convert it into a
> ViewResource
> and associate it with DatePresenter. During development you'll probably
> end up
> changing the instvars of you new class, if you do then re-executing the
> above
> expression will be easier than messing about with STB conversion methods.
Or simply keep your view resources open in a view composer when modifying
the instance variables, re-saving the view resource after you do so. This
will allow Dolphin's normal schema migration to keep your view resources up
to date in the simplest way, though of course you may need to initialise any
new instance variables you add.
Regards
Blair