Aspect class missing method?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Aspect class missing method?

Ted Bracht-2
Hi Andy and Blair,

Trying to add #publishedAspects to one of my classes, I noticed that
the Aspect class doesn't have a #time: method. Copying it from the
#date: method I came up with the following.

Aspect class>>time: aSymbol
        "Answer an instance of the receiver for accessing a <Time> aspect
        of an object with accessor, aSymbol.
        The aspect is viewable and editable using a DatePresenter."

        ^self name: aSymbol
                presenterBlock: (MessageSend
                                receiver: TimePresenter
                                selector: #createIn:on:
                                arguments: #(nil nil))

Could that be added to the core?

Thanks,

Ted


Reply | Threaded
Open this post in threaded view
|

Re: Aspect class missing method?

Andy Bower
Ted,

> Trying to add #publishedAspects to one of my classes, I noticed that
> the Aspect class doesn't have a #time: method.

[snip]

> Could that be added to the core?

Thanks. This is now enhancement #1069.

Best Regards,

Andy Bower
Dolphin Support
http://www.object-arts.com
---
Are you trying too hard?
http://www.object-arts.com/Relax.htm
---