• 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: Writing out a BOOL value to a .plist
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Writing out a BOOL value to a .plist


  • Subject: Re: Writing out a BOOL value to a .plist
  • From: "Marcus S. Zarra" <email@hidden>
  • Date: Fri, 26 May 2006 14:00:55 -0600

[dictInfo setObject:[NSNumber numberWithBool:YES] forKey:BBDM_gadget];

On 5/26/06, Scott Mitchell <email@hidden> wrote:
I am trying to write out a BOOL value to a .plist file. I thought at
first just making it a NSString. bUt that does not work correctly. It
has to be a BOOL(Boolean) value. I can not seem to figure this out. I
thought I had done it once but can't seem to figure it out again.

Here is what I have so far:

[dictInfo setObject:[NSStirng stringWithString:@"YES"]
                                                                   forKey:BBDM_gadget];


Thanks in advance for nay help.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Writing out a BOOL value to a .plist (From: Scott Mitchell <email@hidden>)

  • Prev by Date: Re: generating the event
  • Next by Date: Re: Determining how the app is run (intel/ppc/rosetta/os version)?
  • Previous by thread: Re: Writing out a BOOL value to a .plist
  • Next by thread: Deleting multiple NSCells in NSTableColumn
  • Index(es):
    • Date
    • Thread