| instance |
instance := spec instance.
instance = #DialogWindowSpec ifTrue: [ instance := SpecDialogWindow new ].
^ instance perform: selector withArguments: args
But then I got: MessageNotUnderstood: ByteSymbol>>changeTableLayout (where the symbol was #Panel)
It seems that #actionToPerformWithSelector:arguments: expects "spec instance" to return an actual instance, but is getting Symbols instead. It seems to be a bug in Spec because none of this has anything to do with my code, and if I change "self new openDialogWithSpec" to "self new openWithSpec" it opens correctly.
On Oct 16, 2013, at 1:01 PM, "Benjamin Van Ryseghem-2 [via Smalltalk]" <
[hidden email]> wrote:
Try replacing it with DlalogWindowModel
Ben
Benjamin Van Ryseghem-2 wrote
Without further information, I can not do much more
I sent #openDialogWithSpec, and the offending symbol is #DialogWindowSpec
-----
Cheers,
Sean
--
View this message in context: http://forum.world.st/Spec-error-tp4714069p4715018.html
Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.