Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Saving a data file



Hi Tassilo,

Unfortunately you can't just copy the event handlers in to the .applescript file. You need to go into the Document.nib (or whatever nib contains your document window) and select the File's Owner object, bring up the AppleScript inspector and add the data representation and load data representation event handlers there.

Tim Bumgarner
AppleScript Engineering


On Tuesday, August 19, 2003, at 05:31 PM, Tassilo Rau wrote:

And hello again.

Yet another problem has arisen: When I try to save my ASKData, a pure nothingness seems to take place.

Save as... is linked to the first responder: SaveDocumentAs

I added, from the examples,

on data representation theObject of type ofType
[...]
end data representation

on load data representation theObject of type ofType with data theData
[...]
end load data representation

as well as an

on choose menu item theObject
-- Set some local variables to various objects in the UI
set theTableView to table view "cards" of scroll view "cards" of window "editor"
set cardDataSource to data source of theTableView
end choose menu item

but when I click on "Save as..." just nothing happens. Does anyone got an idea, why this might be, what I could be missing here?

Thanks again,
Tassilo
_______________________________________________
applescript-studio mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-studio
Do not post admin requests to the list. They will be ignored.
_______________________________________________
applescript-studio mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-studio
Do not post admin requests to the list. They will be ignored.

References: 
 >Saving a data file (From: Tassilo Rau <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.