Retired Document
Important: This sample code may not represent best practices for current development. The project may use deprecated symbols and illustrate technologies and techniques that are no longer recommended.
After/Contents/Parts/setup.js
// This file was generated by Dashcode from Apple Computer, Inc. |
// DO NOT EDIT - This file is maintained automatically by Dashcode. |
function setupParts() { |
if (setupParts.called) return; |
setupParts.called = true; |
CreateGlassButton('done', { text: 'Done', onclick: 'showFront' }); |
CreateText('text', { text: 'String in Preferences:' }); |
CreateText('text1', { text: 'Change String:' }); |
CreateButton('button', { rightImageWidth: 10, text: 'Set Preference', onclick: 'setString', leftImageWidth: 10 }); |
CreateText('syncedString', { text: '[ string from prefs ]' }); |
CreateText('syncIndicator', { text: 'STRING FROM SYNC' }); |
CreateInfoButton('infobutton', { foregroundStyle: 'white', onclick: 'showBack', backgroundStyle: 'white', frontID: 'front' }); |
} |
window.addEventListener('load', setupParts, false); |
Copyright © 2006 Apple Computer, Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2006-08-01