• 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
Encoding BOOL Objects?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Encoding BOOL Objects?


  • Subject: Encoding BOOL Objects?
  • From: Michael Briscoe <email@hidden>
  • Date: Tue, 19 Mar 2002 11:54:24 -0800

Hello List,

I'm trying to encode/decode boolean properties from within my class. I used:
[coder encodeValueOfObjCType:@encode(BOOL) at:&animating];

It appears to work (no errors at compile or runtime), but when the object is decoded it returns (null).

I also tried encoding/decoding the boolean values using int, and char as the encode type, but that didn't work either.

What am I doing wrong?


Best Regards,
Michael Briscoe
SkyRocket Multimedia
http://www.digitalfireworks.com/SkyRocket/index.html
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Encoding BOOL Objects?
      • From: "Clark S. Cox III" <email@hidden>
    • Re: Encoding BOOL Objects?
      • From: Matt Judy <email@hidden>
  • Prev by Date: Re: Coordinate system question
  • Next by Date: Re: Need clarification on categories
  • Previous by thread: RE: NSString drawAtPoint under non-identity CTM doesn't draw anyt hing
  • Next by thread: Re: Encoding BOOL Objects?
  • Index(es):
    • Date
    • Thread