On 1/7/06, Mike Abdullah <email@hidden> wrote:
> I suppose it could well be. I have to admit that on the whole I have
> relatively little experience with Cocoa (this is sort of a started project
> for me!).
>
> Basically, I have theResult which is the result of executing an
> NSApplescript. I was then using the following:
>
> NSLog("Result: %d", [theResult stringValue])
>
> This way I figured I could just look at the result in the log window. Does
> this mean that I'm actually just using NSLog incorrectly? Have I
> misunderstood the way this is used, and so in fact I should really be using
> something other than %d?
>
> Either way, muchos gracias for the help!
>
string value returns an NSString. Use %@ to log NSStrings.
-Mark
Learning his way through life
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-studio mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-studio/email@hidden
This email sent to email@hidden