开发者

F-Script: Get object reference from object-browser to script-console

I am trying to figure out how to get an object I have found via the object-browser of F-Script to the script console. For example, I found an instance of NSString at adress 0x234243242 as the object explorer tells me. Now, I would like to call an instance method on it via the script-console (I know that I can call a method on it via the object-browser).

开发者_如何学Go

Can anyone give a hint how i could do this? Neither the F-Script documentation, nor Google was able to provide me an answer for this, yet.


You can click the "Name" button in the browser, give it a name, then use that name in the console.


I couldn't find a way to do this directly with F-Script either, but here's a way that integrates Cocoa with F-Script pointers:

ptr := FSPointer objectPointer
scanner := NSScanner scannerWithString:'0x234243242'
scanner scanHexLongLong:ptr
object := ptr at:0
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜