F
Fergus_S
Guest
If I define and register a procedure for the dd preObjAccess trigger:
procedure(myPreObjAccess(lib cell view file contextId mode )
printf("lib:%L cell:%L view:%L file:%L contextId:%L mode:%L\n"
lib cell view file contextId mode )
); procedure myPreObjAccess
ddRegTrigger( "preObjAccess" 'myPreObjAccess )
and open an existing cellview for edit:
cvId = dbOpenCellViewByType("myLib" "myCell" "layout" "" "a")
I expect myPreObjAccess to be called with mode "a", but it prints:
lib:"myLib" cell:"myCell" view:"layout" file:"layout.cdb"
contextId:nil mode:"r"
So my question is - why is preObjAccess being called with mode "r" and
not "a"?
Can I change that behaviour?
Thanks,
fergus
procedure(myPreObjAccess(lib cell view file contextId mode )
printf("lib:%L cell:%L view:%L file:%L contextId:%L mode:%L\n"
lib cell view file contextId mode )
); procedure myPreObjAccess
ddRegTrigger( "preObjAccess" 'myPreObjAccess )
and open an existing cellview for edit:
cvId = dbOpenCellViewByType("myLib" "myCell" "layout" "" "a")
I expect myPreObjAccess to be called with mode "a", but it prints:
lib:"myLib" cell:"myCell" view:"layout" file:"layout.cdb"
contextId:nil mode:"r"
So my question is - why is preObjAccess being called with mode "r" and
not "a"?
Can I change that behaviour?
Thanks,
fergus