• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Required Packages in Distributions?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Required Packages in Distributions?


  • Subject: Re: Required Packages in Distributions?
  • From: Christopher Ryan <email@hidden>
  • Date: Wed, 30 Nov 2005 07:21:39 -0800

There is no "required" bit in distributions, but it is rather a combination of setting the enabled and selected bits correctly.

For example:

<choice id='requiredChoice'
		start_enabled='false'
		start_selected='true'
		title='required choice'/>

This would create a choice named "required choice" that is selected (checked), but disabled, which has the same behavior of "required."

Of course, enabled and selected can be javascript and only require an item "dynamically."

	<choice id='requiredChoice'
		start_selected='choiceSelected()'
		start_enabled='choiceEnabled()'
		title='required choice'/>

	<script>
		function checkRAMRequirement(RAM) {
			var requiredRAM = (RAM * 1024 * 1024);
      			var actualRAM = system.sysctl('hw.memsize');

			return (actualRAM > requiredRAM);
	   	 }

		function choiceEnabled(){
			if(checkRAMRequirement(2048))
				return false;

			return true;
		}

		function choiceSelected(){
			if(checkRAMRequirement(2048))
				return true;

			return false;
		}

	</script>


Chris

Hi,


I've been following the thread on required packages in metapackages and was wondering if the same can be done with distributions.


Thanks!
Karl Schramm

_______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Required Packages in Distributions? (From: Karl Schramm <email@hidden>)

  • Prev by Date: Re: Required Packages in Metapackage (Metapackage not required)
  • Next by Date: Admin vs Root Authorization
  • Previous by thread: Required Packages in Distributions?
  • Next by thread: Re: Required Packages in Metapackage (Metapackage not required)
  • Index(es):
    • Date
    • Thread