%d is the formatting character for an integer, not a string.
James P. Spencer
Rochester, MN
email@hidden
"Badges?? We don't need no stinkin badges!"
On Jan 7, 2006, at 11:53 AM, Mike Abdullah 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!
Mike A.
On 7 Jan 2006, at 17:34, Andy Armstrong wrote:
On 7 Jan 2006, at 17:21, Mike Abdullah wrote:
With a lot of experimentation, I have been able to get both
integers and booleans to work. However, still every time I try
to do
[theResult stringValue]
I just get a large, random number. I've found plenty of examples
on the Web using this stringValue method, but no mention of the
problem I'm having.
Is the 'large random number' actually a pointer to the string
object by any chance? How are you displaying its value?
--
Andy Armstrong, hexten.net
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-studio mailing list (Applescript-
email@hidden)
Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/applescript-studio/
email@hidden