Jump to content

6 posts in this topic

Recommended Posts

Posted

Hi Guys,

 

Im trying to make a preference bundle and i am not quite sure how to check for multiple if statements.

 

I have this:

 

if(GetPrefBool(@"instaKill")) & if(GetPrefBool(@"randomThing")) {

-- stuff here

}

 

what characters would i use to achieve this?

 

also if there are any good reference sheets anyone could recommend that would be great!

Posted

first u should use k"name" for example ::  if(GetPrefBool(@"kinstakill")) and not  if(GetPrefBool(@"instaKill"))

always use k - key

 

and can u try to explain a little better what u want exactly?

Posted

i wanted to make (in settings.app) a preference bundle, 2 switches one called kinstaKill and kotherName.

 

if i enable kinstaKill. kotherName can no longer be enabled, and vice-versa

 

in other words, i only want one of the switches to be enabled at a time until disabled

Posted

first u should use k"name" for example ::  if(GetPrefBool(@"kinstakill")) and not  if(GetPrefBool(@"instaKill"))

always use k - key

 

and can u try to explain a little better what u want exactly?

That's wrong. It doesn't have to begin with a "k".

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines