Xojo considers IMPLICIT INSTANCE “advanced” so they MOVED the property off the main property page onto the “Advanced” tab
A “Window” in 2022r1.1
Exact same window updated to “desktopWindow” in 2022r1.1
Xojo considers IMPLICIT INSTANCE “advanced” so they MOVED the property off the main property page onto the “Advanced” tab
A “Window” in 2022r1.1
Exact same window updated to “desktopWindow” in 2022r1.1
And it’s called “Windows Behavior” which makes you think it’s something that only applies to Windows OS. Great attention to detail
Not to be a Xojo apologist, most of this is alleviated by staying with API1, using an older version of Xojo (I’ve stopped at 2021r2.1) and using the local documentation (whose search function is fine). The IDE has its quirks (more so under Monterey than it had under Mojave, unfortunately), but I rarely if ever encounter a show-stopping bug.
Better be
It is a full text search enabled by the entire thing being a sqlite database
Window Implicit Instance is a subtle evil. Apparently I wrote about in 2016 Xojo Programming – BKeeney Briefs. I think it’s stupid this is under the ‘advanced tab’.
Agreed !
But we CAN turn this OFF (yer welcome)
Create a new document named Window.defaults
In there put
ImplicitInstance=false
Put it in ~/Document/Xojo/Overrides
And you can duplicate it and name it DesktopWindow.defaults to affect the new “DesktopWindow”
You can alter a lot of the default values on new items this way
https://docs.xojo.com/UserGuide:Overriding_System_Class_Defaults
Implizit instance was something I was never really getting to the end how it works. I know the instancing from Java but implicit instance I had no Idea about.
Its just a method that, when referenced, returns a singleton that has been retained using a weak reference
They get folks into all kinds of trouble because they dont realize this
So they write code like
if Window1.PropertyIAdded is true then
and dont realize that THAT is a method call to the Class method which then creates the window if it didnt exist
In many cases it wont matter
But when it does and you start to need to do something else then implicit instance can be a real pain
BUT - for newbies / learners its easy
Interesting. Had no idea this existed.
This is great. Thanks! (you already said “yer welcome” )
Some years ago, I put ‘implicit instance’ on the time-honored evil-list that famously includes global variables. I now have the default behavior I want, and can’t forget to change it.
https://docs.xojo.com/Resources:2017r2_Release_Notes
change 46921
which was really needed since editing signed apps could break signatures
and also break the IDE if you got something wrong
If Paul reads INN we should laud him for doing so.
Appreciated the post over there !
Funny you got my name in there TWICE and the post remains unaltered
SOMEONE QUICK SCREEN SHOT THAT THING !!!
Naw just kidding
I’m more disappointed that no one at Xojo just seems to try & even help anyone out any more
That IS something one of the devs or customer support team should have pointed out
Or the one about whether iOS paths are always closed - not a single reply ?
Disappointing
Well, what you offered was of benefit to the community, and was germane to that thread. It was certainly a revelation to me, and I found it very useful.
In giving attribution, I was not ignorant of the “drama.” I still found it appropriate. I’m getting into my mid-60s now. Of the (limited) things I like about aging, the main thing is that I’m mellowing out. This means I’m getting better at getting along with everybody.
What about:
Is it possible (and how) to set the “Destination” FodlerItem that way ?
This property is Project wide (you have to set it project after project); a way to set it once as a global value is welcome.
Else, the projects (all projects) have to be modified and saved (project miodification date will be saved too…).
I read the current documentation and it is scarce… only one example, interesting, but… how to change the window default size…
Another useful value is the active MenuBar; remember, when adding a window, no MenuBar is set by default ! So if you forget…
No its not - unless someone added this
The overrides are for project classes (windows, timers, etc) that show up in the ilbrary
Trying to get the overrides to work on Linux. Seems the files have to go there => ~/.Xojo/Xojo/Xojo 2022r2/Overrides/ but the overrides don’t work. I tried also to put them under ~/Documents/Xojo (like the documentation stated) but that doesn’t work either.
Can somebody verify i I’m dumb or if it’s a bug?
Edit: Same override files work in Windows. I copied them from there.
On Linux where’s you “user documents”
That should be where it looks but since I dont have source code I cannot confirm that
You might ask Paul or one of Xojo’s other staff directly on