Kitcat 1.3 has an auto-updater, and it uses the Squeak file it in stuff. I'm making patches and hosting them on dopbox for Kitcat to read, but I have a problem. I only know how to put things in the instance side of Squeak, and to add blocks, I need the class side of it.
How do you file something into Squeak under "class" instead of instance.
Offline
GP1 wrote:
nXIII wrote:
If you add a class method in your changeset, it should file in correctly as a class method.
Could you give me an example please?
Sure. Open a new simple change sorter from the world menu. Make a new changeset called "Class Method" and make sure it is receiving changes. Open a browser, navigate to a class, and add/change a method. File-out the changeset and quit Squeak without saving. Open Squeak back up and file in the changeset. The class method should be there
Offline
nXIII wrote:
GP1 wrote:
nXIII wrote:
If you add a class method in your changeset, it should file in correctly as a class method.
Could you give me an example please?
Sure. Open a new simple change sorter from the world menu. Make a new changeset called "Class Method" and make sure it is receiving changes. Open a browser, navigate to a class, and add/change a method. File-out the changeset and quit Squeak without saving. Open Squeak back up and file in the changeset. The class method should be there
![]()
....................
I'm lost, but I get it now
Offline
Adds a method to (Object class)
'From Squeak4.2 of 4 February 2011 [latest update: #10966] on 3 February 2012 at 6:18:44 pm'!
!Object class methodsFor: 'as yet unclassified' stamp: 'xxx 2/3/2012 18:18'!
testMethod
Transcript show: 'It works!!'! !Offline
nXIII wrote:
Adds a method to (Object class)
Code:
'From Squeak4.2 of 4 February 2011 [latest update: #10966] on 3 February 2012 at 6:18:44 pm'! !Object class methodsFor: 'as yet unclassified' stamp: 'xxx 2/3/2012 18:18'! testMethod Transcript show: 'It works!!'! !
Thanks! I'm going to give you credit for helping with the auto-updater
Offline