• 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
NSArrays comparison
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSArrays comparison


  • Subject: NSArrays comparison
  • From: XTAL <email@hidden>
  • Date: Sat, 4 Mar 2006 22:10:41 +0100


hi,

I'm building a bus analyzer for an in-car CD-changer, and I store the binary messages in NSArrays as 'char' NSValues. now my question would be: can I store "wildcards" in NSArrays, so that the compare function can handle them?

a short example, why I need this:
18 0A 68 39 00 02 00 3F 00 01 01 7E

this message contains parameters and a checksum, which change all the time. so I'd like to store an array with wildcards:

XX 0A XX 39 00 02 00 3F 00 XX XX XX

my goal would be, to store such arrays, and compare them to incoming messages, so I can easily recognize commands. is this possible? (this would be much more easier than to examine the byte values one by one.)

XTAL


_______________________________________________ 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
  • Follow-Ups:
    • Re: NSArrays comparison
      • From: Ricky Sharp <email@hidden>
References: 
 >NSXMLDocument question (From: malcom <email@hidden>)
 >Re: NSXMLDocument question (From: Ilan Volow <email@hidden>)
 >Re: NSXMLDocument question (From: Robert Walker <email@hidden>)
 >Re: NSXMLDocument question (From: John Stiles <email@hidden>)
 >Re: NSXMLDocument question (From: malcom <email@hidden>)
 >Re: NSXMLDocument question (From: John Stiles <email@hidden>)
 >Re: NSXMLDocument question (From: malcom <email@hidden>)
 >Re: NSXMLDocument question (From: Sarah Wilkin <email@hidden>)
 >Re: NSXMLDocument question (From: malcom <email@hidden>)

  • Prev by Date: Nib XML format question
  • Next by Date: Unable to access customized NSView's accessor method
  • Previous by thread: Re: NSXMLDocument question
  • Next by thread: Re: NSArrays comparison
  • Index(es):
    • Date
    • Thread