On Mar 16, 2017, at 10:28 PM, David Adams via 4D_Tech <[email protected]> wrote: > > That's not what 4D's "messages" are, they're commands. In fact, the > best names for the new commands are probably these: > > EXECUTE METHOD IN WINDOW > EXECUTE METHOD IN WORKER
I was looking forward to finally having something better than CALL PROCESS available, but it is disappointing to see the level of coupling required to utilize the new commands. Something more similar to Cocoa’s NotificationCenter or javascript custom events would have been far more preferable. If you use a string literal for the method name, does the compiler check that the method exists? It would be nice if the tokenized method name could be used; parenthesis could be required to also allow using the return value of a method as the parameter value. (This would be nice for any command that takes a method name, like New Process.) Since using these will require code to be in project methods instead of object/form methods (I hate the invisibility of object methods, but also hate the pollution of the single namespace with thousands of tiny code snippets relevant to a single item), is there any general recommendation on project method organization? I have not been able to get project method folders to work myself. I’m also not sure if it’s even desirable to have project method folders, considering that there is only a single global namespace maybe it is better to have the hundreds to thousands of project methods in a single list? Is there some sort of “quick open” functionality for project methods that I haven’t found yet? Especially with all methods sharing the same list, if I’ve opened a form method type-ahead is useless until I’ve closed the form methods “folder”. Perhaps something like the 4DPop Commands list, but for opening project methods? Jim Crate ********************************************************************** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:[email protected] **********************************************************************

