I've got a class inherited from PRPage with some
additional
properties, and I want to hide those properties from all but the page
owner at edit time. The problem is that PREditCommand doesn't pass the
context to the page before requesting its description, so the page
instance doesn't have the necessary information to dynamically change
its description.
You can always get the current context using
PRCurrentContext value
The expression might return nil if there is no current context, but in
case of the execution of a command this should be defined.
I've only just started using Pier in earnest, so
if this question
exposes a lack of understanding of anything fundamental, please feel
free to point this out.
Good question. I added it to the upcoming FAQ:
http://www.lukas-renggli.ch/smalltalk/pier/faq
If you have more things that you would like to see, please let me know.
Cheers,
Lukas
--
Lukas Renggli
http://www.lukas-renggli.ch