Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: String Scanner



I'm having trouble understanding the %@ format that the String Scanner wants to use. I'm trying to use the Long User Name in the Host Info Source and input that into the string scanner and pass out each part as a value. I'm doing it with String Components as well, but I'm just trying to see what the String Scanner will do.

What do I put in for a format string in the String Scanner if I wanted to say, split up the string "Laird Daniel Chace Esquire"?

You can only use String Scanner to explode strings with a common format e.g. if you have strings of the type "Name-Title-Company" you can use a format string like "%@-%@-%@" to output the three substrings: "Name", "Title" and "Company".


________________________________________________________
Pierre-Olivier Latour                            email@hidden
Quartz Composer Architect                Graphics & Imaging Team

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/email@hidden

This email sent to email@hidden
References: 
 >String Scanner (From: Daniel Chace <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.