This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-02-03 12:28:56

GP1
Scratcher
Registered: 2009-07-06
Posts: 1000+

Scratch patches help (file it in)

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.


I am currently http://blocks.scratchr.org/API.php?user=GP1&action=onlineStatus&type=imagehttp://blocks.scratchr.org/API.php?user=GP1&action=onlineStatus&type=text and I finally got over 1000 posts.

Offline

 

#2 2012-02-03 16:10:31

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: Scratch patches help (file it in)

If you add a class method in your changeset, it should file in correctly as a class method.


nXIII

Offline

 

#3 2012-02-03 16:13:53

GP1
Scratcher
Registered: 2009-07-06
Posts: 1000+

Re: Scratch patches help (file it in)

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?


I am currently http://blocks.scratchr.org/API.php?user=GP1&action=onlineStatus&type=imagehttp://blocks.scratchr.org/API.php?user=GP1&action=onlineStatus&type=text and I finally got over 1000 posts.

Offline

 

#4 2012-02-03 16:42:41

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: Scratch patches help (file it in)

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  smile


nXIII

Offline

 

#5 2012-02-03 16:43:47

GP1
Scratcher
Registered: 2009-07-06
Posts: 1000+

Re: Scratch patches help (file it in)

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  smile

....................
I'm lost, but I get it now  big_smile


I am currently http://blocks.scratchr.org/API.php?user=GP1&action=onlineStatus&type=imagehttp://blocks.scratchr.org/API.php?user=GP1&action=onlineStatus&type=text and I finally got over 1000 posts.

Offline

 

#6 2012-02-03 17:16:07

GP1
Scratcher
Registered: 2009-07-06
Posts: 1000+

Re: Scratch patches help (file it in)

No, never mind. HHEELLPP! Can you make a patch that I can "file it in" please?


I am currently http://blocks.scratchr.org/API.php?user=GP1&action=onlineStatus&type=imagehttp://blocks.scratchr.org/API.php?user=GP1&action=onlineStatus&type=text and I finally got over 1000 posts.

Offline

 

#7 2012-02-03 18:21:44

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: Scratch patches help (file it in)

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!!'! !

nXIII

Offline

 

#8 2012-02-03 19:12:47

GP1
Scratcher
Registered: 2009-07-06
Posts: 1000+

Re: Scratch patches help (file it in)

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


I am currently http://blocks.scratchr.org/API.php?user=GP1&action=onlineStatus&type=imagehttp://blocks.scratchr.org/API.php?user=GP1&action=onlineStatus&type=text and I finally got over 1000 posts.

Offline

 

Board footer