The Artima Developer Community
Sponsored Link

Agile Buzz Forum
Smalltalk Daily 10/29/08: Saving Safely with BOSS

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
James Robertson

Posts: 29924
Nickname: jarober61
Registered: Jun, 2003

David Buck, Smalltalker at large
Smalltalk Daily 10/29/08: Saving Safely with BOSS Posted: Oct 29, 2008 7:26 AM
Reply to this message Reply

This post originated from an RSS feed registered with Agile Buzz by James Robertson.
Original Post: Smalltalk Daily 10/29/08: Saving Safely with BOSS
Feed Title: Cincom Smalltalk Blog - Smalltalk with Rants
Feed URL: http://www.cincomsmalltalk.com/rssBlog/rssBlogView.xml
Feed Description: James Robertson comments on Cincom Smalltalk, the Smalltalk development community, and IT trends and issues in general.
Latest Agile Buzz Posts
Latest Agile Buzz Posts by James Robertson
Latest Posts From Cincom Smalltalk Blog - Smalltalk with Rants

Advertisement

Saving objects with BOSS is fairly simple if you exclude any GUI issues; the code below will suffice:


	file := filename asFilename writeStream.
	[bos := BinaryObjectStorage onNew: file.
	bos nextPut: data.
	file close]
		on: self bossExceptions
		do: [:ex | file close.
			result := false.
			ex return].
	file close.

That will fail if the object(s) you save have any hold on screen objects though; you cannot BOSS out platform speccific GUI objects. The most common way that comes up is via dependency. So - today I go through an example of how to deal with that, using BottomFeeder code to demonstrate. Click on the image below to watch:

You can also watch on YouTube:

Or on Vimeo:


Saving Safely with BOSS from James Robertson on Vimeo.

Read: Smalltalk Daily 10/29/08: Saving Safely with BOSS

Topic: Post-doc / PhD position: Domain-specific modeling languages / metamodeling Previous Topic   Next Topic Topic: Cats and Dogs, Sleeping Together

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use